Responses API vs Chat Completions: what changes in your code and when you have to migrate
ComparisonBy Lucas Matías García TorresUpdated Data checked 4 min read
Reviewed on . How we work.

Short answer
Responses API vs Chat Completions on October 29, 2026: OpenAI still supports Chat Completions and recommends Responses for all new projects, and its deprecations page gives Chat Completions no shutdown date, so working code does not have to move. The Assistants API is the one that must: OpenAI listed its removal for August 26, 2026, with Responses and the Conversations API as the replacement. Responses adds hosted tools that Chat Completions lacks, such as file search, code interpreter, computer use, remote MCP servers and image generation, plus three ways to keep state between turns; audio is still listed as coming soon.
Prices and limits change often: check the vendor's page before you pay. How we make money.
Responses API vs Chat Completions is a choice between two OpenAI endpoints that do the same basic job: you send text, images or tool results and get the model's answer back. Chat Completions (POST /v1/chat/completions) is the older format that most tutorials and libraries copied. Responses (POST /v1/responses) arrived in March 2025 and is the one OpenAI now recommends. On October 29, 2026 we read OpenAI's migration guide and its deprecations page to answer the question most developers actually have: do I need to change my code?
Do you have to migrate?
It depends on which API you use today.
- Chat Completions: no. OpenAI's guide says Chat Completions remains supported and recommends Responses for all new projects. Its deprecations page, read the same day, gave Chat Completions no shutdown date, and the guide suggests moving one user flow at a time if you do switch.
- Assistants API: yes, and you are late. OpenAI announced its deprecation on August 26, 2025 and listed its removal from the API for August 26, 2026. The replacement is the Responses API plus the Conversations API, which keeps a persistent conversation object.
- A new project: start on Responses. That is OpenAI's recommendation. In its internal evals, reasoning models scored 3% better on SWE-bench through Responses with the same prompt and setup, and the hosted tools in the table below only work there.
The differences in one table
Table: Chat Completions vs Responses (OpenAI migration guide, checked October 29, 2026)
| Item | Chat Completions | Responses |
|---|---|---|
| Endpoint | POST /v1/chat/completions |
POST /v1/responses |
| Input | A messages array |
input (text or Items) plus top-level instructions |
| Output | choices[0].message.content |
Typed Items; the SDK adds output_text |
| Several answers per call | Yes, with n |
No, one generation |
| Conversation state | You resend the whole history | previous_response_id, Items you pass back, or the Conversations API |
| Stored by default | Yes, for new accounts | Yes |
| Structured outputs | response_format |
text.format |
| Function schemas | Non-strict unless you ask | Tries strict mode when strict is omitted |
| Text, vision, structured outputs, function calling, web search | Yes | Yes |
| Audio | Yes | Coming soon |
| File search, code interpreter, computer use, remote MCP, image generation, reasoning summaries | No | Yes |
The same request in both APIs
The smallest call already shows most of the change. In Chat Completions the system prompt is one more message and the answer sits inside choices:
from openai import OpenAI
client = OpenAI()
completion = client.chat.completions.create(
model="gpt-6-astra",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"},
],
)
print(completion.choices[0].message.content)
In Responses the system prompt becomes instructions, the user text goes in input and the SDK hands you the text directly:
response = client.responses.create(
model="gpt-6-astra",
instructions="You are a helpful assistant.",
input="Hello!",
)
print(response.output_text)
Both examples follow OpenAI's migration guide. output_text is enough when you only need the final text; when a response contains reasoning, tool calls or other outputs, OpenAI's advice is to loop over response.output and handle each Item by its type. Function calls change shape too: a tool result, which in Chat Completions is one more message, goes back as a function_call_output Item linked to the call by call_id. Tool schemas are covered in our guide to function calling, and JSON schemas in our guide to structured outputs.
Conversation state and what it costs
With Chat Completions your app keeps the transcript and sends the whole messages array on every turn. Responses gives you three options: pass previous_response_id and let OpenAI recall the earlier context, append the previous output Items to your next input yourself, or keep a persistent conversation in the Conversations API.
Two details catch people out. First, previous_response_id does not carry over the earlier response's instructions, so resend them on every request. Second, it does not make long chats cheaper: OpenAI says every earlier input token in the chain is still billed as input. What lowers the bill is caching. In OpenAI's internal tests, Responses used the cache 40% to 80% better than Chat Completions, and our guide to prompt caching explains how cached tokens are priced. The prices per model are in our OpenAI API pricing guide.
Storage, privacy and strict mode
Responses are stored by default, and Chat Completions are stored by default for new accounts. Set store: false in either API if you do not want OpenAI to keep them. Organizations with Zero Data Retention (ZDR) get store: false enforced automatically and can still carry reasoning across turns with encrypted reasoning items, which OpenAI decrypts in memory and then discards.
Function calling changes in two ways. In Chat Completions, function schemas are non-strict by default; in Responses, leaving out strict makes the API try strict mode first and, if your schema cannot be made compatible, fall back to best-effort calling and return strict: false. And starting with GPT-5.4, Chat Completions does not support tool calling with reasoning_effort set to anything other than none, so an agent that needs a reasoning model and tools at the same time has to use Responses.
Outside OpenAI
Other servers copy the format. Ollama's OpenAI-compatible server has accepted POST /v1/responses since version 0.13.3, but only without state: there is no previous_response_id and no conversation support, so your app keeps the history as it would with Chat Completions. Its cloud API also lacks built-in web search through that endpoint. Our guide to Ollama commands covers the local server.
How we checked
On October 29, 2026 we read OpenAI's guide to migrating to the Responses API, including its capability table, OpenAI's deprecations page and Ollama's page on OpenAI compatibility. The two code examples follow OpenAI's guide; we did not run them, and we did not measure the performance or cache gains that OpenAI reports from its internal tests.
What we checked
- OpenAI's guide to migrating to the Responses API says that while Chat Completions remains supported, Responses is recommended for all new projects, and that because Chat Completions remains supported you can migrate one user flow at a time; it lists as benefits a 3% SWE-bench improvement with reasoning models in OpenAI's internal evals with the same prompt and setup, an agentic loop that can call several tools such as web search, image generation, file search, code interpreter, remote MCP servers and custom functions within one request, 40% to 80% better cache utilization than Chat Completions in internal tests, stateful context with store: true and encrypted reasoning. (OpenAI, )
- The guide's capability table marks text generation, vision, Structured Outputs, function calling and web search as available in both APIs; audio as available in Chat Completions and coming soon in Responses; and file search, computer use, code interpreter, MCP, image generation and reasoning summaries as available only in Responses. (OpenAI, )
- According to the guide, Chat Completions uses messages as both input and output while Responses uses arrays of typed Items such as message, reasoning, function_call and function_call_output; system or developer guidance moves to top-level instructions; a tool result becomes a function_call_output Item linked to the call with call_id; Responses omits the n parameter and returns one generation; the Responses SDK has an output_text helper; and Structured Outputs move from response_format to text.format. (OpenAI, )
- The guide says Chat Completions conversation state must be managed manually, while Responses offers previous_response_id, passing prior output Items back, or the Conversations API for a persistent conversation object; previous_response_id does not carry over the previous response's top-level instructions; all previous input tokens for responses in a chain are billed as input tokens; Responses are stored by default and Chat Completions are stored by default for new accounts, with store: false disabling storage in either API; and for Zero Data Retention organizations OpenAI enforces store: false automatically and supports encrypted reasoning items that are decrypted in memory and then discarded. (OpenAI, )
- The guide says functions are non-strict by default in Chat Completions, while in Responses omitting strict attempts strict mode and falls back to non-strict, best-effort function calling, returning strict: false, if the schema cannot be made compatible; and that starting with GPT-5.4, Chat Completions does not support tool calling with reasoning_effort values other than none. (OpenAI, )
- OpenAI's deprecations page says the Responses API was released in March 2025, that developers using the Assistants API were notified on August 26, 2025 of its deprecation and removal from the API on August 26, 2026, and that the Responses API and the Conversations API replace it; on October 29, 2026 the page listed no shutdown date for Chat Completions. (OpenAI, )
- Ollama's OpenAI compatibility page says POST /v1/responses was added in Ollama v0.13.3 and that only the non-stateful flavor is supported, with no previous_response_id or conversation support; its direct cloud API does not support stateful Responses, built-in web search through /v1/responses or custom or freeform tool-call replay. (Ollama, )
What may change
- OpenAI changes its APIs often: the capability table, the storage defaults and the deprecation dates on this page can move. This page is reviewed every quarter.
Frequently asked questions
Is Chat Completions deprecated?
No. OpenAI's migration guide, read on October 29, 2026, says Chat Completions remains supported, and its deprecations page gave the endpoint no shutdown date. OpenAI recommends Responses for new projects.
Do I have to migrate from the Assistants API?
Yes. OpenAI's deprecations page lists the removal of the Assistants API for August 26, 2026 and points to the Responses API and the Conversations API as its replacement.
What do I gain by moving to the Responses API?
Hosted tools such as file search, code interpreter, computer use, remote MCP servers and image generation in one request, built-in conversation state, reasoning summaries and, in OpenAI's internal tests, 40% to 80% better cache use.
Does previous_response_id make long conversations cheaper?
No. OpenAI says every earlier input token in the chain is still billed as input. It saves you resending the history yourself, not paying for it; caching is what lowers the bill.
Does the Responses API support audio?
Not yet. OpenAI's capability table, checked on October 29, 2026, marks audio as supported in Chat Completions and as coming soon in Responses.
Sources
- Migrate to the Responses API: benefits, capability table, Items, conversation state, storage, functions and Structured Outputs, OpenAI. Accessed October 29, 2026.
- Deprecations: Assistants API removal on August 26, 2026 and model shutdown dates, OpenAI. Accessed October 29, 2026.
- Ollama: OpenAI compatibility (chat completions, stateless Responses API, embeddings, models and audio), Ollama. Accessed October 29, 2026.
Spotted an error or an outdated price? Tell us and we will fix it.
Change history
- : First published. Checked against OpenAI's migration guide and deprecations page and Ollama's OpenAI compatibility page on October 29, 2026.
Next review: .
Part of our LLM APIs & Costs guide.
Keep reading
- OpenAI API pricing: what GPT-6 costs per token and how to pay less
OpenAI API prices per million tokens for GPT-6 Astra, GPT-6.1 Sol, GPT-6.1 Terra and GPT-6 Luna, with caching, long prompts, Batch, Fast and tools.
- Structured outputs: getting valid JSON from a language model
How structured outputs force a model to return JSON that matches your schema in OpenAI, Claude, Gemini and Ollama, what JSON Schema they accept and the limits.
- Function calling: how a language model uses your tools
Function calling explained: how a model asks your code to run a tool, the settings OpenAI, Anthropic and Google offer, what it costs and how many tools to give.
- Prompt caching explained: how it works and how much it saves
What prompt caching is, how OpenAI, Anthropic, Google and DeepSeek do it, minimum lengths, lifetimes, prices and how to structure prompts to cut your API bill.
- Batch APIs: how to pay half for model requests that can wait
How batch APIs work in OpenAI, Claude, Gemini and Mistral: the 50% discount, 24-hour windows, size limits, retention and when a batch is the wrong choice.
- LLM API pricing compared, with a cost calculator
API prices for OpenAI, Anthropic, Google and DeepSeek models per million tokens, plus a calculator with caching, batch discounts and tokenizer differences.
Other topics

Assistants & Chatbots
21 guides

Agents & Automation
13 guides

Local Models & Hardware
16 guides

Language Models Explained
18 guides