Creates a model response for the given input. Some OpenAI models only support the Responses format.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Model ID
gpt-5.2-chat "gpt-5.2-chat"
Text or images for the model to generate a response.
1[{ "role": "user", "content": "Hello!" }]
If true, stream partial response deltas using SSE.
Sampling temperature. Higher values make output more random.
0 <= x <= 21
Nucleus sampling threshold.
0 <= x <= 1Penalizes repeated tokens based on their frequency in the text so far.
-2 <= x <= 2Penalizes tokens that have already appeared in the text.
-2 <= x <= 2The maximum number of output tokens to generate.
x >= 1Sequences where the model will stop generating further tokens.
How many response choices to generate.
x >= 1Configuration options for model text response.
Configuration for model reasoning / thinking.
A list of tools the model may call.
Controls which (if any) tool is called by the model.
Whether to store the generated model response for later retrieval via API.
A unique identifier representing your end-user.
Response generated successfully
"resp_0ed94fe7ec73cf560169afd97bba648194b8661d445cfa4244"
"response"
Unix timestamp when the response was created.
1773132155
"gpt-5.2-chat"
completed, failed, in_progress, incomplete "completed"
Unix timestamp when the response was completed.
1773132156