Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Responses API request

context_management
any
conversation

Conversation accepts either a conversation ID string or an object with id.

include
string[]
input

string or []ResponsesInputElement — see docs for array form

instructions
string
max_output_tokens
integer
metadata
object
model
string
parallel_tool_calls
boolean
previous_response_id
string
prompt
any
prompt_cache_retention
string
provider
string

Gateway routing hint; stripped before upstream execution.

reasoning
object
safety_identifier
string
service_tier
string
store
boolean
stream
boolean
stream_options
object
temperature
number
text
any
tool_choice
any

string or object

tools
object[]
top_logprobs
integer
top_p
number
truncation
string
user
string

Response

JSON response or SSE stream when stream=true

created_at
integer
error
object
id
string
model
string
object
string

"response"

output
object[]
provider
string
status
string

"completed", "failed", "in_progress"

usage
object