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) andinstructions- Output
- A typed
outputarray;output_textin the SDKs - State at OpenAI
- Stored by default;
previous_response_idchains 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/responsestakes the same base URL and key as chat; Codex CLI calls it (Responses API).- Responses are not stored. Send the whole conversation in
inputevery turn: your messages, and theoutputitems of the earlier answers as they came.previous_response_id,conversation,backgroundand stored prompts get a 400unsupported_parameter. - To carry a model's reasoning into the next turn, add
reasoning.encrypted_contenttoincludeand 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 404model_not_found, naming the API it answers on. - A request is billed per token at the channel's prices.
usage.input_tokensincludes the cached tokens, whichusage.input_tokens_details.cached_tokenscounts.
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.