Add to request header:
Authorization: Bearer YOUR_API_KEY
Model name
"gpt-4o"
Text input or list of messages to generate a response for
Whether to stream the response
Sampling temperature (0-2)
0 <= x <= 2Maximum number of output tokens to generate
Nucleus sampling parameter (0-1)
0 <= x <= 1The ID of a previous response to use as context for multi-turn conversations
System-level instructions that guide the model's behavior
A list of tools the model may call
Configuration for structured text output
Response API success
Unique response ID
"resp-abc123"
Object type
response Creation timestamp
1757165031
Model used
List of output items
The status of the response
completed, failed, in_progress, cancelled "completed"
Token usage statistics