Skip to main content
POST
System One
System One models answer typed questions about a piece of content instead of generating text. Each answer is a calibrated probability, a choice among options, or a level on a scale, so software can act on it directly. The endpoint follows the TypeSafe System One protocol, so the official TypeSafe SDKs work with RedPill by changing the base URL. System One models list decisions in output_modalities in GET /v1/models. They do not serve chat: a chat completion request to one returns 404 model_not_found. Responses are never streamed.

Request body

string
required
Id of a model whose output_modalities include decisions, for example jaredpalmer/kev-4b.
string | object | array
required
The content the questions are about: a message, a document, or any JSON value.
object
required
Questions keyed by an id you choose. Each answer is returned under the same id. Every question has a type and usually instructions that state the question.
object
The same provider routing block as chat completions. It is used for routing and is not sent to the upstream.
Other fields are not forwarded.

Example

The SDKs append /v1/systemone themselves, so set their base URL to https://api.redpill.ai without /v1. Install them with pip install typesafe-sdk or npm install @typesafe-ai/sdk.

Response

object
One answer per question id, in the same type as the question:
  • noul: noul is the probability that the answer is true.
  • choice: choice is the most likely option, with probabilities per option and a 0 to 1 confidence.
  • score: score is the probability-weighted level index, with probabilities per level, legend mapping each index to its level, and a 0 to 1 confidence.
object
input_tokens, output_tokens, and cost, the charge for this request in USD.
The response carries x-typesafe-request-id, which the SDKs read, and the gateway’s x-receipt-id for receipt verification. Errors use the same error format as the other endpoints.