Guilds AI / Blog

,

OpenAI Assistants API: Shutdown and Responses Migration

Illustrative laptop showing the transition from the Assistants API to the Responses API.

The OpenAI Assistants API is no longer available. It shut down on August 26, 2026, and the recommended migration is to the Responses API and, where appropriate, the Conversations API. This guide explains how to recover existing configuration, convert saved text history, and test a replacement without depending on retired endpoints or hosted prompt objects.

For creating a new supported project and making a first Responses request, see our OpenAI API platform guide.

To distinguish a retired endpoint from a temporary service problem, see our OpenAI API status and troubleshooting guide.

Is the OpenAI Assistants API still available?

No. OpenAI ended the Assistants API on August 26, 2026. Applications must use a supported replacement, such as the Responses API. OpenAI also retired hosted reusable prompt objects on November 30, 2026. Its deprecations page now recommends managing prompt configuration in application code. These dates were checked on December 4, 2026.

Older tutorials that create an Assistant, append messages to a Thread and start a Run describe a retired interface. Treat them as historical explanations, not executable setup instructions. Do not attempt to fix an unavailable endpoint by rotating an otherwise valid API key.

What replaces Assistants, Threads and Runs?

A migration needs to preserve behavior, not simply rename API objects. Record what your old integration did and decide where the equivalent responsibility belongs now.

Legacy componentNew responsibility
AssistantVersioned instructions and tool configuration in your application
ThreadConversation object or application-managed history
RunResponses API request and associated application workflow
Run stepResponse output items, tool calls and execution records

Update every component that depends on legacy IDs or response formats. For instance, a support interface may store a thread ID against a customer record and expect a run status before displaying a reply. Replace both assumptions in the application and its database layer.

Recover your old configuration and conversation history

Look in your authorized code repositories, backups and application databases for the original instructions, model settings, tool definitions and saved messages. The retired Assistants endpoints cannot be relied on to export history now. If you did not preserve old content, disclose that limitation instead of generating fictional replacement conversations.

For a text-only support application, the following original conversion helper accepts a deliberately simple archive format. It rejects roles and data types it does not support rather than silently treating tool outputs as user messages.

def convert_history(messages):
    items = []
    for m in messages:
        if m["role"] not in ("user", "assistant") or not isinstance(m["text"], str):
            raise ValueError("Unsupported saved message")
        items.append({"role": m["role"], "content": m["text"]})
    return items

Three local checks passed: conversion of a two-message transcript, an empty transcript, and rejection of an unsupported tool role. This does not migrate files, images or tool-call records. Those require separate format-specific conversion and access checks. Apply your retention rules before restoring any customer data. Our AI-ready data guide covers preparation and access boundaries.

Build a replacement Responses API request

Install a supported OpenAI SDK release and configure an authorized API credential through your environment or secret manager. Select a model that is currently available to your project and supports the features your workflow needs. Keep the model configurable so later deprecations do not require rewriting every call.

import os
from openai import OpenAI

client = OpenAI()
history = [
    {"role": "user", "content": "What are your support hours?"},
    {"role": "assistant", "content": "Please check our support page."}
]
response = client.responses.create(
    model=os.environ["OPENAI_MODEL"],
    instructions="Answer using approved support information. Say when information is missing.",
    input=history + [
        {"role": "user", "content": "Are you open on Saturday?"}
    ],
    store=False
)
print(response.output_text)

This illustrative request sends the selected transcript and instructions explicitly. It uses application-managed context rather than a hosted conversation. It does not contain real support hours, so a compliant answer should acknowledge that Saturday availability is unknown. Set OPENAI_MODEL to a suitable model identifier and use your approved API key. The live SDK request was not executed and no billable call was made.

If you need a local application interface around the provider request, follow our chatbot API example for input validation and endpoint tests.

Migrate tools and state deliberately

For an application that manages multiple turns, select an authorized state strategy: a stored conversation, response chaining where supported, or explicit input history. Consider who can access the stored records and how they are removed. Setting store to false is not a blanket guarantee that every type of provider log or tool resource is immediately deleted.

Custom functions need an application-side dispatcher. Validate the function name and arguments, execute only allowed operations, and send results associated with the correct call identifier. Do not retry a side-effecting action just because a model response timed out. Keep an independent action record so a retry cannot duplicate a refund, email or account change.

Review file search resources and code execution settings separately. Recreate only resources you are authorized to use and verify that retrieval returns the intended documents. See our generative AI API security guide for retention, permissions and logging considerations.

Migration acceptance checklist

A replacement is ready for production only when it behaves correctly under representative requests. Test a normal question, a missing-history case, an invalid tool argument, an interrupted request and a request for data the user cannot access. Record the expected outcome for each case.

Compare latency, request volume, costs and failure recovery against the application’s own requirements. If you run a staged deployment, keep the fallback independent of the discontinued service. You cannot roll traffic back to a shut-down Assistants endpoint. Disable the affected feature or use another verified supported implementation if a rollback is necessary.

Update old automation modules as well as direct API code. A 2025 Make community discussion illustrates the difficulty of replacing assistant modules and preserving document handling. It predates both shutdowns, so its suggestion to use hosted prompt IDs is no longer a suitable long-term setup. TryFormatter’s May 2026 migration checklist is useful for its operational focus but also predates the retirement dates. Verify older advice against current official documentation.

No production migration or live model evaluation was performed for this guide. The local conversion helper was tested; provider access, streaming, retrieval and tool execution remain application-specific tests.

For a comparison of the current prompt experimentation workflow and the conversational product, read our ChatGPT vs OpenAI Playground guide.

Frequently asked questions

Can I still create an OpenAI Assistant using the old API? No. The API was retired on August 26, 2026.

Can I convert an old thread ID into a conversation ID? Do not assume the identifiers are interchangeable. Create a new supported conversation and import authorized saved content where required.

Do I need a hosted prompt ID? No. Reusable prompt objects were retired on November 30, 2026. Keep the instructions and tool configuration under application version control.

Does the replacement API cost the same? Not necessarily. Costs depend on the model, token usage, tools and storage arrangements. Check current pricing and test representative workloads before switching traffic.