Responses
Creates a model response from text, image, or file input. Supports structured output, tool calls, conversation state, background processing, and streaming.
Authorizations
You can obtain your API key from the TTAPI Dashboard.
Body
Request body for the OpenAI-compatible Responses API.
Model ID used to generate the response. See Supported Models.
"gpt-5.4-mini"
Text, image, or file input to the model. A string is treated as a user message.
"Explain quantum computing in simple terms."
A system or developer message inserted into the model context. It is not carried over when previous_response_id is used.
ID of the previous response for multi-turn interactions. Cannot be used together with conversation.
Conversation that this response belongs to.
Whether to run the response in the background.
Additional output data to include in the response.
file_search_call.results, web_search_call.results, web_search_call.action.sources, message.input_image.image_url, computer_call_output.output.image_url, code_interpreter_call.outputs, reasoning.encrypted_content, message.output_text.logprobs Maximum number of generated tokens, including visible output and reasoning tokens.
x >= 1Maximum total number of built-in tool calls processed for this response.
x >= 1Up to 16 string key-value pairs attached to the response.
Whether the model may call tools in parallel.
Reference to a reusable prompt template.
Stable key used to improve prompt cache hit rates.
Prompt cache retention policy.
in-memory, 24h Reasoning configuration for supported models.
Stable identifier for the end user, used for abuse detection.
auto, default, flex, scale, priority Whether to store the generated response for later retrieval.
Whether to stream response events using server-sent events.
Streaming options. Set only when stream is true.
Sampling temperature. Change this or top_p, but generally not both.
0 <= x <= 2Controls which tool or tools the model may call.
none, auto, required Tools available to the model, including function and supported built-in tools.
0 <= x <= 200 <= x <= 1auto, disabled Response
Successful response. When stream is true, the endpoint returns server-sent events.
"resp_67ccd2bed1ec8190b14f964abc0542670bb6a6b452d3795b"
"response"1741476542
completed, failed, in_progress, cancelled, queued, incomplete SDK convenience property containing aggregated text output.