model?string
glm-5 (vibe coding), gpt-5.1-codex, gpt-5.1-codex-max or gpt-5.2-codex.
input?|array<>
Text, image, file, or chat-style inputs. The Responses API accepts a string or an array of input items/messages.
instructions?string
A system (or developer) message inserted into the model's context.
background?boolean
Whether to run the model response in the background.
store?boolean
Whether to store the generated model response for later retrieval via API.
previous_response_id?string
The unique ID of the previous response to the model. Cannot be used with 'conversation'.
conversation?|
Conversation that this response belongs to. Items are prepended to the request. Cannot be used with 'previous_response_id'.
include?array<>
Additional output data to include in the response.
max_output_tokens?integer
Upper bound for generated tokens (includes visible output tokens and reasoning tokens).
max_tool_calls?integer
Maximum total built-in tool calls processed in a response.
parallel_tool_calls?boolean
Whether to allow tool calls in parallel.
tools?array<>
Tools the model may call (built-in tools, MCP tools, or developer-defined function tools).
tool_choice?|
How the model should select which tool(s) to use.
text?
Configuration options for a text response from the model (plain text or structured JSON).
reasoning?
Reasoning configuration (gpt-5 and o-series models).
top_logprobs?integer
Number of most likely tokens to return per position with logprobs.
truncation?string
Truncation strategy when input exceeds the model context window.
Default"disabled"
Value in"auto" | "disabled"
stream?boolean
If true, stream the response via server-sent events.
stream_options?
Options for streaming responses (only when stream=true).
metadata?
Up to 16 key/value pairs for storing structured metadata.
prompt?
Reference to a prompt template and its variables.
prompt_cache_key?string
Cache key used to help optimize prompt caching.
prompt_cache_retention?string
Retention policy for prompt cache (e.g. '24h').
safety_identifier?string
Stable identifier for abuse detection (recommended to hash username/email).
service_tier?string
Processing tier (e.g., auto/default/flex/priority).
user_id?string
Hashed user indentify for improved monitoring and abuse detection.