v40

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-01108178385.8 KB
responses

Create a model response (Responses API)

post/v1/responses

Request body

{"stackTrail":"components:schemas:core.ResponsesRequest:properties:context_management","oasType":"schema","type":"unknown"}
includestring[]
instructionsstring
max_output_tokensinteger
metadataobject
modelstring
parallel_tool_callsboolean
previous_response_idstring
{"stackTrail":"components:schemas:core.ResponsesRequest:properties:prompt","oasType":"schema","type":"unknown"}
prompt_cache_retentionstring
providerstring

Gateway routing hint; stripped before upstream execution.

safety_identifierstring
service_tierstring
storeboolean
streamboolean
temperaturenumber
{"stackTrail":"components:schemas:core.ResponsesRequest:properties:text","oasType":"schema","type":"unknown"}
{"stackTrail":"components:schemas:core.ResponsesRequest:properties:tool_choice","oasType":"schema","type":"unknown","description":"string or object"}
toolsobject[]
top_logprobsinteger
top_pnumber
truncationstring
userstring

Response

JSON response or SSE stream when stream=true

created_atinteger
idstring
modelstring
objectstring

"response"

providerstring
statusstring

"completed", "failed", "in_progress"