OpenAI API comparison

Assistants API vs Responses API: what changed and how to migrate

If you built on OpenAI's Assistants API, the Responses API asks you to think about your app differently. That is the real story behind Assistants API vs Responses API. Threads, runs and polling give way to input items, output items and a stream of events. I wrote a full migration guide after moving a production app across, and this page is the short version: what maps to what, what actually gets better, and how to decide when the move is worth doing.

Plan your migration

The short answer

The Assistants API is built around objects you create and then poll: an assistant, a thread, messages on that thread, and a run that you check until it finishes. The Responses API is built around a single call. You send input items and you get back output items, either as one response or as a stream of granular events.

That change in mental model is the heart of Assistants API vs Responses API. Once you stop thinking in runs and start thinking in items and events, most of the migration becomes mechanical. The full code for both Next.js and Node (Express) is in my Assistants API to Responses API migration guide.

What maps to what

Assistants APIResponses API
Threads and MessagesConversations, plus responses.create() with input items
Runs and pollingStreaming responses and streamed tool calls
Function callingFunction tools (same JSON Schema, better streaming)
File and image attachmentsInput items: input_text, input_file, input_image
Vector store and file searchThe File Search tool
Third-party APIsConnectors (MCP servers)

This table reflects the API as it was when I wrote the guide in October 2025. OpenAI's own migration documentation is the place to confirm current details before you start.

What gets better with Responses

Streaming that includes tool calls

With Assistants, you start a run and poll until it completes or asks for a tool output. With Responses, the stream carries text deltas and function call arguments as they are generated. In practice that means your handler can buffer the arguments for each call_id, run the function the moment the arguments are complete, and then resume the same turn with the tool output. If the model asks for several tools at once, you can run them in parallel and send all the results back together.

Simpler state

You have two options for multi-turn state. The Conversations API gives you durable, long-lived conversations, which suits chat products where users come back to old threads. Chaining with previous_response_id is lighter, and fits cases where you don't need a stored conversation. One detail worth knowing: previous_response_id only carries context forward as long as you keep chaining it.

Tools and connectors in one place

Built-in tools (web search, file search, image generation, code interpreter), your own function tools, and connectors over the Model Context Protocol all go into the same tools array. That makes it straightforward to build the tool list per request, for example adding a Gmail connector only when the user has opted in and you hold a valid token. If you are new to how tools fit into a larger loop, my page on what an agentic workflow is explains the wider pattern.

When to migrate

Migrate sooner if any of these apply:

  • Your UX suffers from polling. Users wait for a run to finish before anything appears on screen. Streaming fixes that directly.
  • You rely heavily on tools. Streamed function call arguments and parallel execution make tool-heavy assistants feel much faster.
  • You want connectors. MCP connectors live naturally in the Responses tool surface.
  • You are starting a new feature. New work is the cheapest place to adopt the new model.

It can wait a little if your assistant is simple, rarely calls tools and works well today. Even then, I would plan the move rather than ignore it, because new capabilities land on the Responses side.

How I approach the migration

This is the order I followed, and the order I recommend:

  1. Replace runs and polling with a streaming route. One server route that calls responses.stream() and returns a readable stream to the browser.
  2. Build a custom streaming hook. Listen for response.output_text.delta for text, response.output_item.added to detect a function call, response.function_call_arguments.delta to buffer arguments, and response.function_call_arguments.done to run the handler.
  3. Migrate thread IDs. Create a Conversation for each old thread on first use, store the mapping from old ID to the new conv_ ID, and keep the original ID in metadata.
  4. Transform attachments. Upload files once, persist the file IDs, and build input_file and input_image items on the server, never in the browser.
  5. Register tools deliberately. Built-ins, connectors with an approval policy that matches the data risk, and custom functions with tight JSON Schemas.
  6. Harden the edges. Timeouts, retries, stream cleanup, and a cap on tool output size so a large payload can't break the stream or the UI.

Gotchas I hit

  • Tool outputs are data, not UI. Cap their size, sanitise them and log carefully. In our build we capped response JSON at around a few hundred KB.
  • Approvals on connectors. Connector calls can be set to require approval or not. Choose deliberately and never log OAuth tokens or personal data.
  • Markdown formatting. At the time of writing, OpenAI's cookbook noted that GPT-5 in the API does not format answers in Markdown by default. If your UI renders Markdown, ask for it explicitly in your instructions.
  • Model behaviour still matters. A cleaner API doesn't change how the model reasons. If you want to understand why prompts and context size behave the way they do, I explain tokens, embeddings and inference in Inside the Black Box.

Getting help

I build AI features on the OpenAI Responses API, from streaming chat interfaces to tool-calling assistants and RAG over company data. If you want a hand planning or doing the move, see my OpenAI Responses API integration service, or if retrieval is the core of your product, my RAG chatbot development page. You can also get in touch and tell me what you are running today.

Frequently asked questions

Is the Responses API a replacement for the Assistants API?

OpenAI publishes migration guidance from Assistants to Responses, and the concepts map across closely: threads become Conversations, runs become streamed responses, and attachments become input items. For new work I build on Responses. Check OpenAI's current documentation for any timelines before you plan.

Do I need the Conversations API or is previous_response_id enough?

Use Conversations when you need durable threads that users return to, or analytics on conversation history. Use previous_response_id for lightweight chaining where a stored conversation isn't needed. Remember that it only carries context while you keep chaining it.

Can I keep my existing function definitions?

Mostly, yes. Function tools use the same JSON Schema approach, so the definitions carry over. What changes is how you receive the calls: arguments stream in per call_id, and you send outputs back to resume the turn.

How long does a migration take?

It depends on how many routes, tools and attachment types your app has, so I won't quote a number without seeing it. The steps on this page are the same for small and large apps; larger apps simply have more tools and more stored threads to map.

Let's talk about your project

Software Architect, AI Native. Google Certified Generative AI Leader with 14+ years of experience.

Plan your migration
Assistants API vs Responses API | Muhammad Asim