Skip to main content
POST
Create a response
OpenAI models get the request as sent; other models get it translated. See Responses API for what each model accepts.

Authorizations

Authorization
string
header
required

Your Atlaso key in Authorization: Bearer sk-at-.... Send one Authorization header. A request that also sends x-atlaso-key is refused with 401.

Headers

x-atlaso-memory
enum<string>

Lowers memory for this one call. off: no recall and no learning, and the reply's x-atlaso-memory header says status=off with reason=request_off. use: recall as usual, but nothing from this call is learned. Letter case and spaces around the value are ignored; any other value is ignored too. It never turns memory or learning on for a key whose settings are lower.

Available options:
off,
use
x-atlaso-user
string

Your app user's id, set by your server. A key set to memory for each user of your app reads the user only from this header. 1 to 256 printable characters, not only spaces, with no API key or token in it. Send it once. Used exactly as sent.

Required string length: 1 - 256
x-atlaso-session-id
string

Your own id for a group of related calls (a chat session). Only printable ASCII is kept: other characters are removed and a longer value is cut to 128 characters. Ignored when the call comes from Claude Code or Codex through the Gateway (coming soon), which will send their own.

x-atlaso-client
string

The name of your app or tool, shown with the call in Activity. Only printable ASCII is kept: other characters are removed and a longer value is cut to 64 characters.

x-atlaso-tags
string

Your own labels for this call, as comma-separated key=value pairs. At most 10 tags per call (header and body together). A key is lowercase letters, digits, _ and -, at most 32 characters. A value is printable ASCII, 1 to 64 characters. A tag that breaks a rule is dropped and named in x-atlaso-tags-dropped; the call still goes ahead. A header over 2048 characters is not read at all: none of its tags is used, and x-atlaso-tags-dropped names it as x-atlaso-tags too_long. See Tags.

Body

application/json

The OpenAI Responses request. OpenAI models get the body as sent; other models get it translated, and a field the translation does not know is refused with 400. At most 32 MiB.

model
string
required

An exact model id from GET /models.

Example:

"openai/gpt-5.4-mini"

input

A string, or an array of Responses input items.

instructions
string

System instructions.

stream
boolean

Send true for Server-Sent Events.

tools
any

Passed to the provider, or mapped to the provider's own field. A provider that cannot take it refuses the call with 400.

tool_choice
any

Passed to the provider, or mapped to the provider's own field. A provider that cannot take it refuses the call with 400.

parallel_tool_calls
any

Passed to the provider, or mapped to the provider's own field. A provider that cannot take it refuses the call with 400.

max_output_tokens
any

Passed to the provider, or mapped to the provider's own field. A provider that cannot take it refuses the call with 400.

temperature
any

Passed to the provider, or mapped to the provider's own field. A provider that cannot take it refuses the call with 400.

top_p
any

Passed to the provider, or mapped to the provider's own field. A provider that cannot take it refuses the call with 400.

reasoning
any

Passed to the provider, or mapped to the provider's own field. A provider that cannot take it refuses the call with 400.

text
any

Passed to the provider, or mapped to the provider's own field. A provider that cannot take it refuses the call with 400.

service_tier
any

Passed to the provider, or mapped to the provider's own field. A provider that cannot take it refuses the call with 400.

prompt_cache_options
any

Passed to the provider, or mapped to the provider's own field. A provider that cannot take it refuses the call with 400.

prompt_cache_retention
any

Passed to the provider, or mapped to the provider's own field. A provider that cannot take it refuses the call with 400.

user
any

Never fails a call. OpenAI and OpenAI-compatible hosts get it as sent. Where Atlaso knows the provider does not take it, it is left out of the provider request and named in x-atlaso-ignored-params. On a key that keeps your own memory, Atlaso also reads it to label cost by app user (x-atlaso-user first, then safety_identifier, then user). On a key with memory for each user of your app, a value that differs from x-atlaso-user is refused with 400 user_id_conflict. On Google models the value is sent as a label, which allows at most 63 characters of lowercase letters, digits, _ or -. A value those rules do not allow is left out and named in x-atlaso-ignored-params; it is never rewritten. When user and safety_identifier are both sent with different values, safety_identifier is the label (or user, when only its value is allowed) and the other is left out and named.

safety_identifier
any

Never fails a call. OpenAI and OpenAI-compatible hosts get it as sent. Where Atlaso knows the provider does not take it, it is left out of the provider request and named in x-atlaso-ignored-params. On a key that keeps your own memory, Atlaso also reads it to label cost by app user (x-atlaso-user first, then safety_identifier, then user). On a key with memory for each user of your app, a value that differs from x-atlaso-user is refused with 400 user_id_conflict. On Google models the value is sent as a label, which allows at most 63 characters of lowercase letters, digits, _ or -. A value those rules do not allow is left out and named in x-atlaso-ignored-params; it is never rewritten. When user and safety_identifier are both sent with different values, safety_identifier is the label (or user, when only its value is allowed) and the other is left out and named.

metadata
any

Never fails a call. OpenAI and OpenAI-compatible hosts get it as sent. Where Atlaso knows the provider does not take it, it is left out of the provider request and named in x-atlaso-ignored-params.

store
boolean

On models other than OpenAI, true is refused with 400; Atlaso does not store conversations.

previous_response_id
string

OpenAI models only. Refused with 400 on other models.

conversation
any

OpenAI models only. Refused with 400 on other models.

background
boolean

true is refused with 400 on OpenAI models.

provider
object

Atlaso's routing choice for a model several hosts serve. Taken out of the body before the provider call. Any other sub-field is refused with 400.

Example:
atlaso
object

Atlaso's own body field, always taken out before the provider call. Its tags object holds your labels for the call; a body tag replaces a header tag with the same key.

Example:

Response

The response in the OpenAI Responses shape. Atlaso adds reply headers.

The provider's reply in the OpenAI shape, unchanged for OpenAI models.