Skip to main content
POST
Create a stateless OpenAI Responses-compatible response

Headers

Authorization
string | null

Bearer API key.

x-api-key
string | null

API key alternative for Anthropic-compatible clients. Authorization takes precedence when both headers are present.

Body

application/json

OpenAI Responses-compatible request.

model
string
required

Public model ID.

Minimum string length: 1
input
required
instructions
string | null
stream
boolean
default:false
store
boolean | null
background
boolean | null
previous_response_id
string | null
max_output_tokens
integer | null
Required range: 1 <= x <= 999990
max_tool_calls
integer | null
Required range: 1 <= x <= 128
temperature
number | null
Required range: 0 <= x <= 2
top_p
number | null
Required range: 0 <= x <= 1
presence_penalty
number | null
Required range: -2 <= x <= 2
frequency_penalty
number | null
Required range: -2 <= x <= 2
tools
Tools · object[]
tool_choice
Available options:
none,
auto,
required
parallel_tool_calls
boolean | null
reasoning
ResponsesReasoning · object | null

Native reasoning.effort plus the reviewed compatibility aliases.

The accepted profile decision requires Responses to take enablement, budget, and visibility aliases, not effort alone, so an OpenRouter- or Codex-shaped client resolves the same intent here that it already resolves on Chat Completions and Messages. max_tokens is the budget alias; the total output cap remains max_output_tokens.

include_reasoning
boolean | null
text
ResponsesTextConfig · object | null
include
enum<string>[] | null
Available options:
message.input_image.image_url,
message.output_text.logprobs,
reasoning.encrypted_content
truncation
enum<string> | null
Available options:
auto,
disabled
metadata
Metadata · object | null
client_metadata
Client Metadata · object | null
prompt_cache_key
string | null
service_tier
enum<string> | null
Available options:
auto,
default,
flex,
scale,
priority
user
string | null
Maximum string length: 512
safety_identifier
string | null
Maximum string length: 64
flagged_categories
enum<string>[]
Available options:
harassment,
harassment/threatening,
hate,
hate/threatening,
illicit,
illicit/violent,
self-harm,
self-harm/intent,
self-harm/instructions,
sexual,
sexual/minors,
violence,
violence/graphic

Response

Successful Response

Native response object with required billing/public identity fields.

id
string
required
Pattern: ^resp_
status
enum<string>
required
Available options:
completed,
failed,
in_progress,
incomplete,
queued
model
string
required
output
Output · object[]
required
object
string
default:response
Allowed value: "response"
usage
ResponseUsage · object | null
Last modified on August 11, 2026