Endpoints
Responses
Generate text using the stateless Responses request format.
POST
Responses
This endpoint accepts Responses-style text input and returns Responses-style output. Every request must contain the context needed for that turn.
The JSON response contains
Clients should handle
string
required
Bearer followed by your derestricted API key.string
default:"derestricted-llm"
Use
derestricted-llm.string or array
required
A text prompt or an array of input/history items. Arrays are limited to 2,000
items.
string
Optional instructions for the current request.
integer
Output allowance. The shared 65,536-token hard cap and credit reservation
rules apply.
boolean
default:"false"
Set to
true for Responses SSE events.array
Client-provided tool definitions. Hosted OpenAI tools are not provided.
Example
output items and usage. SDK helpers such as output_text collect text from the output items. Check response status and incomplete/error information before treating the result as complete.
Streaming
response.completed, response.incomplete, and response.failed terminal events, as well as error events and transport failures. Keepalive comments do not contain output.
Conversation state and unsupported controls
previous_response_id is ignored. Send prior messages, function calls, and function outputs explicitly in input; a response ID does not let the server reconstruct a previous turn.
store, background, include, reasoning, prompt_cache_key, prompt_cache_retention, truncation, and text.verbosity are ignored. There are no response retrieval, deletion, background polling, or separate cancellation endpoints. To stop a stream, close its HTTP connection.
Web search, file search, code interpreter, image generation, and other provider-hosted tools are not offered. Tool definitions being accepted by the request parser does not guarantee that provider-specific or freeform tool types work with the deployed model. Prefer ordinary client-executed functions and validate model outputs. text.format.type: "json_schema" is rejected while structured output is disabled.