o3-pro
Model Overview
How to Make a Call
API Schema
Text, image, or file inputs to the model, used to generate a response.
A text input to the model, equivalent to a text input with the user role.
Whether to run the model response in the background.
falseA system (or developer) message inserted into the model's context.
When using along with previous_response_id, the instructions from a previous response will not be carried over to the next response. This makes it simple to swap out system (or developer) messages in new responses.
An upper bound for the number of tokens that can be generated for a response, including visible output tokens and reasoning tokens.
The unique ID of the previous response to the model. Use this to create multi-turn conversations.
Whether to store the generated model response for later retrieval via API.
falseIf set to true, the model response data will be streamed to the client as it is generated using server-sent events.
falseThe truncation strategy to use for the model response.
- auto: If the context of this response and previous ones exceeds the model's context window size, the model will truncate the response to fit the context window by dropping input items in the middle of the conversation.
- disabled (default): If a model response will exceed the context window size for a model, the request will fail with a 400 error.
disabledPossible values: How the model should select which tool (or tools) to use when generating a response.
Controls which (if any) tool is called by the model.
none means the model will not call any tool and instead generates a message.
auto means the model can pick between generating a message or calling one or more tools.
required means the model must call one or more tools.
Whether to run the model response in the background.
falseUnix timestamp (in seconds) of when this Response was created.
1762343744Unique identifier for this Response.
resp_68963fb142d08197b4d3ae3ad852542c054845c6ea84caa2A system (or developer) message inserted into the model's context.
A text input to the model, equivalent to a text input with the developer role.
An upper bound for the number of tokens that can be generated for a response, including visible output tokens and reasoning tokens.
Model ID used to generate the response.
openai/o3-proThe object type of this resource - always set to response.
responsePossible values: SDK-only convenience property that contains the aggregated text output from all output_text items in the output array, if any are present. Supported in the Python and JavaScript SDKs.
Hi! How’s your day going?Whether to allow the model to run tool calls in parallel.
falseThe unique ID of the previous response to the model. Use this to create multi-turn conversations.
Specifies the processing type used for serving the request.
The status of the response generation.
completedPossible values: What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or top_p but not both.
How the model should select which tool (or tools) to use when generating a response.
Controls which (if any) tool is called by the model.
none means the model will not call any tool and instead generates a message.
auto means the model can pick between generating a message or calling one or more tools.
required means the model must call one or more tools.
An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
We generally recommend altering this or temperature but not both.
The truncation strategy to use for the model response.
- auto: If the context of this response and previous ones exceeds the model's context window size, the model will truncate the response to fit the context window by dropping input items in the middle of the conversation.
- disabled (default): If a model response will exceed the context window size for a model, the request will fail with a 400 error.
Code Example
Last updated
Was this helpful?