Skip to main content
POST
Responses API V2 (guarded)

Error Reference: Responses

Common errors: guardrail block (403), unsupported model, unsupported sampling parameter, context window exceeded, provider timeout, provider unavailable.

Authorizations

Authorization
string
header
default:<api-key>
required

Bearer authentication header of the form Bearer <api-key>, where <api-key> is your API key.

Headers

X-Cache-TTL
string | null

Body

application/json

Responses API request for the guarded v2 endpoint. model is required (pinned-model routing only — no model_family/auto_routing on this shape).

model
string
required
input
required

String prompt or array of input items

instructions
string | null
max_output_tokens
integer | null
temperature
number | null
top_p
number | null
frequency_penalty
number | null
presence_penalty
number | null
stop
unknown
tools
Tools · object[] | null
tool_choice
unknown
stream
boolean
default:false
reasoning
Reasoning · object | null
response_format
Response Format · object | null
text
Text · object | null

Text options, as on OpenAI's Responses API. text.format requests structured output — {"type": "json_schema", "name": ..., "schema": {...}, "strict": true}, {"type": "json_object"}, or {"type": "text"}. If response_format is also supplied it takes precedence. Other keys, such as verbosity, are accepted and ignored.

parallel_tool_calls
boolean | null
prompt_cache_key
string | null
image_generation
Image Generation · object | null

Image generation options (quality, size) mapped onto OpenAI's image_generation tool; ignored by providers without quality controls.

tradition
string | null

Optional tradition for guardrail static responses and personalization (catholic, evangelical, mainline, not_faith_specific). Invalid values are ignored gracefully.

Response

Successful Responses API result. If stream is false or omitted, the response is JSON. If stream=true, the response is a named Server-Sent Events stream.

A non-streaming Responses API result.

id
string
required
object
string
default:response
required
Allowed value: "response"
created_at
integer
required

Unix timestamp when the response was created.

model
string
required
status
enum<string>
required
Available options:
completed,
failed,
in_progress,
incomplete
output
(Message · object | Image Generation · object | Function Call · object | Reasoning · object)[]
required

Items generated by the model, such as assistant messages, images, function calls, or reasoning summaries.

An assistant message produced by the model.

usage
Usage · object

Token usage for the response.

instructions
string
max_output_tokens
integer
metadata
object
parallel_tool_calls
boolean
prompt_cache_key
string
reasoning
object
temperature
number
text
object
tool_choice
any
tools
object[]
top_p
number
ignored_params
Ignored Parameters · object

Sampling parameters ignored because the selected model does not support them.