ResponsesRequest schema

FieldType and description
model
Required
string

Model id of any text model in the catalog (e.g., openai/gpt-5.6-luna, deepseek-ai/DeepSeek-V4-Pro).

inputschema

The input prompt or items for the model. When the last message in the conversation is from the assistant, the model answers with a new assistant message.

oneOf
string
array of object
Array itemsobject
instructionsstring

System or developer instructions directing the model's behavior.

max_output_tokensinteger

Maximum number of output tokens to generate: a whole number from 1 to the model's own max_output_tokens in GET /v1/models. A larger value, or one that is not a whole number, returns HTTP 400 invalid_max_tokens. When omitted, the reply is limited to the model's default output length, which is at most its max_output_tokens.

minimum: 1

reasoningobject

Reasoning configuration object.

FieldType and description
effortstring

Desired effort level for model reasoning.

Allowed values: ["none","low","medium","high","xhigh"]

temperaturenumber

Sampling temperature.

top_pnumber

Nucleus sampling probability.

presence_penaltynumber

Presence penalty parameter.

frequency_penaltynumber

Frequency penalty parameter.

userstring

A unique identifier representing your end-user.

textschema

Text configuration or content.

oneOf
string
object
metadataobject

Developer-assigned metadata for the response.

toolsarray of object

Tools the model may call. Supported tool types: function and namespace (a named group of function tools). A call to a function declared in a namespace tool is returned with a separate namespace field.

Array itemsobject
FieldType and description
type
Required
string

function or namespace.

tool_choiceschema

auto, none, required, or { "type": "function", "name": "..." } to require one function.

oneOf
string

Allowed values: ["auto","none","required"]

object
FieldType and description
type
Required
string

Allowed values: ["function"]

name
Required
string
parallel_tool_callsboolean

Whether the model may call several tools in one turn.

service_tierstring

Service tier.

truncationschema

Truncation strategy for the conversation.

oneOf
string
object
storeboolean

store is always treated as false.

default: false

streamboolean

Set to true to receive the response as Server-Sent Events.

default: false