Schemas
ChatCompletionRequest
modelA chat model id from GET /models.
The conversation so far, oldest first.
max_tokensThe most tokens the reply may use, reasoning included. Defaults to
8,192, or the model's max_output_tokens if lower. A value above the
model's maximum is rejected. Also accepted as max_completion_tokens,
which wins if both are sent.
max_completion_tokensSame as max_tokens.
temperaturetop_pUp to 4 sequences where the model stops generating.
seedpresence_penaltyfrequency_penaltynone, auto, required, or a named function. Only allowed together
with tools.
parallel_tool_callsOnly allowed together with tools.
reasoning_effortHow much the model reasons before answering. none is refused by
models that always reason (see reasoning_can_be_disabled). Omit it
to use the model's default.
streamOnly allowed with stream: true.
userAn id for your end user. It is hashed before it reaches the model provider and helps attribute abuse to one user instead of your whole account.
nOnly one choice is supported.
logprobsLog probabilities are not supported.
Message
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: role, content | |
| type = object · requires: role, content | |
| type = object · requires: role | |
| type = object · requires: role, tool_call_id, content |
roledeveloper is treated as system.
nameSystemMessage
roledeveloper is treated as system.
nameAssistantMessage
roleTextContent
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = string | |
| type = array |
ResponseFormat
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: type | |
| type = object · requires: type | |
| type = object · requires: type, json_schema |
typeChatCompletion
idobjectcreatedmodelsystem_fingerprintReplyMessage
rolecontentrefusalreasoning_contentThe model's readable reasoning, when it shares it.
Opaque reasoning blocks to send back on the next request.
ChatCompletionChunk
idobjectcreatedmodelEmpty in the final usage chunk.
system_fingerprintUsage
prompt_tokenscompletion_tokensOutput tokens, reasoning included.
total_tokenscost_creditsThe exact cost of this request in credits.
ModelList
objectModel
idobjectcreatedowned_bynamecontext_lengthThe most input tokens the model accepts.
max_output_tokensThe largest max_tokens this model accepts.
input_modalitiesreasoning_can_be_disabledWhether reasoning_effort accepts none.
supports_json_schemaWhether response_format accepts json_schema.
supported_parametersnotesDecisionRequest
modelA decision model id.
The content to evaluate, as a string or a JSON object or array.
Questions keyed by a name you choose, 1 to 128 characters. Each answer comes back under the same name.
Images keyed by the reference string you write wherever the image
belongs in state, instructions or criteria. Every asset must
be referenced at least once.
userAn id for your end user. It is hashed before it reaches the model provider.
Guidance
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = string | |
| type = object | |
| type = array |
DecisionQuestion
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: type, instructions | |
| type = object · requires: type, instructions, criteria | |
| type = object · requires: type, instructions, criteria | |
| type = object · requires: type, instructions |
typeA plain string, or a JSON object or array of structured guidance.
What makes the answer yes and what makes it no.
NoulQuestion
typeA plain string, or a JSON object or array of structured guidance.
What makes the answer yes and what makes it no.
ChoiceQuestion
typeA plain string, or a JSON object or array of structured guidance.
Each option, mapped to what it means.
ScoreQuestion
typeA plain string, or a JSON object or array of structured guidance.
The levels of the scale, lowest first.
BoxQuestion
typeA plain string, or a JSON object or array of structured guidance.
ImageAsset
formatdata_base64The file in standard base64, without a data URL prefix.
typeDecision
idmodelOne answer per question, keyed by the question's name.
DecisionAnswer
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: type, noul | |
| type = object · requires: type, choice | |
| type = object · requires: type, score | |
| type = object · requires: type, box |
typenoulThe probability that the statement is true, 0 to 1.
NoulAnswer
typenoulThe probability that the statement is true, 0 to 1.
ChoiceAnswer
typechoiceconfidenceScoreAnswer
typescoreThe expected level, from 0 for the first level.
confidencelegendEach level's index mapped to its criterion.