Create a response
/v1/responsesGenerate a model response with the OpenAI Responses API format. Set stream to receive server-sent events.
Authorization
bearerAuth Your API key from the console: Authorization: Bearer sk-...
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
A model ID from List models.
Text, or an array of input items.
System instructions for the model.
false1 <= value0 <= value <= 20 <= value <= 1Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/responses" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek-v4-1-flash", "input": "Write one sentence about the sea." }'{ "id": "string", "object": "response", "created_at": 0, "model": "string", "status": "string", "output": [ {} ], "usage": { "input_tokens": 0, "output_tokens": 0, "total_tokens": 0 }}Create a chat completion POST
Generate the next message in a conversation with the OpenAI Chat Completions format. Set `stream` to receive server-sent events.
Create a message POST
Generate a message with the Anthropic Messages format. Authenticate with `x-api-key` or `Authorization: Bearer`. Only models whose catalog entry lists `/v1/messages` are supported here.