Responses API
Create responses using OpenAI-style format
The Responses API provides OpenAI-compatible response endpoints.
Create Response
POST /responses
Create a text response using OpenAI’s response format.
Request Body
The model to use for response (e.g., “gpt-4o”)
The input text or array of messages to generate responses for
System instructions for the model
Maximum number of output tokens to generate
Temperature for randomness (default: 1.0)
Nucleus sampling parameter (default: 1.0)
Whether to stream back partial progress (default: false)
Array of tools available to the model
Tool choice preference (“auto”, “none”, or specific tool object)
Enable web search capabilities (default: false)
Reasoning configuration with effort level and summary options
Additional metadata as key-value pairs
Response
Returns a response object with the generated text.
Example
Authorizations
Enter your API key (starts with 'ek-')
Body
Response
Success
The response is of type object
.