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. Append -serv-kronos or -serv-multipath to enable Kronos or Multipath.
string | array
required
The prompt — a string, or an array of input items.
string
The system prompt. SERV requires a system prompt on every request except one that sets previous_response_id: set instructions, or include a system or developer message in input.
object
Reasoning controls, for example { "effort": "medium", "summary": "auto" }.
integer
Maximum number of tokens to generate. SERV may lower it when your balance is low; see low balance.
array
Function definitions, in OpenAI format.
boolean
default:"false"
Stream the response as server-sent events.
Other OpenAI Responses parameters are forwarded to the model, with these exceptions:
  • service_tier is removed, since requests are billed at the standard rate.
  • metadata is read for SERV options such as prompt_cache and is not forwarded.
  • store is always sent as false, so responses are not stored for later retrieval or for OpenAI’s distillation and evals products. Unless zero data retention is enabled, OpenAI may still retain inputs and outputs for abuse monitoring for up to 30 days, or longer when required by law or reasonably necessary to protect its services or others from harm. See continuing a conversation.
  • web_search_options, plugins, models, route and mcp_servers are rejected with a 400.
  • tools accepts function, custom, web_search, local_shell, shell (local environment only) and apply_patch, with at most one web search tool. Other types, such as file_search, code_interpreter, mcp and web_search_preview, return a 400.

Continuing a conversation

Because store is always false, OpenAI does not keep the response for later retrieval, so previous_response_id and GET /v1/responses/{id} usually fail upstream. Carry the conversation yourself instead: send the earlier output items back in input. SERV adds reasoning.encrypted_content to include so reasoning items can be replayed this way.
Send instructions again on every follow-up, because nothing carries it over and SERV requires a system prompt. You can leave it out only when the replayed input already contains a system or developer message. You don’t need to set include yourself: SERV adds reasoning.encrypted_content to any include you send, so the reasoning items in output can be replayed as they are. A request that does set previous_response_id skips the system prompt check, and SERV does not apply its reasoning prompt, prompt guard, or shadow agent to it.

Response

string
Unique identifier for the response.
string
Always "response".
string
The model used.
array
The full output items, including reasoning items when reasoning is enabled.
string
OpenAI SDK convenience property that joins the text from output. Raw HTTP responses may omit it, so read output when calling the API directly.
object
Token counts: input_tokens, output_tokens, total_tokens.