Skip to main content
OpenAI Responses format. Use it to receive the reasoning trace alongside the answer. OpenAI models only — other models are not supported on this endpoint. Use chat completions for everything else.

Request

string
required
Bearer $SERV_API_KEY.
string
required
An OpenAI model ID from the catalog, for example gpt-5.4.
string | array
required
The prompt — a string, or an array of input items.
string
required
The system prompt. SERV requires one.
object
Reasoning controls, for example { "effort": "medium", "summary": "auto" }.
integer
Maximum number of tokens to generate.
array
Function definitions, in OpenAI format.
boolean
default:"false"
Stream the response as server-sent events.
All other OpenAI Responses parameters are accepted and forwarded to the model.

Response

string
Unique identifier for the response.
string
Always "response".
string
The model used.
string
Convenience field with the generated text.
array
The full output items, including reasoning items when reasoning is enabled.
object
Token counts: input_tokens, output_tokens, total_tokens.