APIs and setup

Responses API

The Responses API is OpenAI's newer API for generating model output, which OpenAI calls an evolution of Chat Completions. A request takes input and instructions, and the answer is a list of typed output items.

Also called OpenAI Responses API, /v1/responses

Checked November 29, 2026

At a glance

Endpoint
POST /v1/responses
Made by
OpenAI, which recommends it for new projects
Input
input (a string or a list of items) and instructions
Output
A typed output array; output_text in the SDKs
State at OpenAI
Stored by default; previous_response_id chains turns
On /model
Not stored: send the whole conversation every turn

OpenAI recommends it for all new projects, while Chat Completions remains supported (OpenAI). Where Chat Completions answers with choices holding a message, a response is an object with its own id and a typed output array: messages, function calls, reasoning items. The SDKs' output_text helper gives the text.

Stored or stateless

At OpenAI, responses are stored by default. A turn can point to the last one with previous_response_id, or keep its conversation with the Conversations API, and store: false turns storage off (OpenAI). Without storage, your app sends the conversation itself every turn, as with Chat Completions; encrypted reasoning carries the model's reasoning from turn to turn without storing it.

Instructions and developer messages

The top-level instructions give the model high-level guidance for one response, and take priority over user messages. Guidance meant for every turn goes in the first developer message of the input instead (OpenAI). See system prompt.

The Responses API on /model

  • POST /v1/responses takes the same base URL and key as chat; Codex CLI calls it (Responses API).
  • Responses are not stored. Send the whole conversation in input every turn: your messages, and the output items of the earlier answers as they came. previous_response_id, conversation, background and stored prompts get a 400 unsupported_parameter.
  • To carry a model's reasoning into the next turn, add reasoning.encrypted_content to include and send the reasoning items back with the rest of the output.
  • Function tools, images, reasoning settings and JSON output (text.format) work as at OpenAI. A model that isn't on this API answers 404 model_not_found, naming the API it answers on.
  • A request is billed per token at the channel's prices. usage.input_tokens includes the cached tokens, which usage.input_tokens_details.cached_tokens counts.
A response with curl
curl https://api.slashmodel.com/v1/responses \
  -H "Authorization: Bearer $SLASHMODEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-6.1-sol",
    "instructions": "You are a concise assistant.",
    "input": "Hello!"
  }'

Where it applies on /model

Questions

Which tools need the Responses API?

Codex CLI calls only this API. Some libraries can call either: LangChain's ChatOpenAI with use_responses_api, and the Vercel AI SDK's openai() provider (Which API your app uses).

Why does previous_response_id fail on /model?

Responses aren't stored here, so there is no earlier response to point to. Send the earlier output items back in input instead.

Sources

The makers' own pages, each opened on November 29, 2026.

One key for every model here.

Top up from $10, change one URL, and pay only for the tokens you use.