SunsetDiff

The model has been deprecated

On October 23, 2026 those model ids stop being accessible. OpenAI's deprecations page does not print the error sentence. A public GitHub issue records one for a model that was already removed.

Error text

The model `gpt-4-vision-preview` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations

Quoted from GitHub issue excalidraw/excalidraw#8209, checked October 20, 2026.

OpenAI's deprecations page says: at the time of the shut down, the model or endpoint will no longer be accessible. The October 23, 2026 table names gpt-3.5-turbo-0125 (and gpt-3.5-turbo), gpt-4-0613 (and gpt-4), gpt-4-1106-preview, gpt-4-turbo, gpt-4.1-nano, gpt-4o-2024-05-13, o1, o1-pro, o3-mini, and o4-mini. The error sentence in the block above is copied from a GitHub issue about gpt-4-vision-preview, not from the October 23 table. A comment on https://github.com/BerriAI/litellm/pull/23747 records the same shape for an already removed snapshot: The model `gpt-4-0314` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations The Python error guide lists NotFoundError as "Requested resource does not exist." It does not tie that type to this shutdown. Source: OpenAI deprecations, checked October 20, 2026.

Affected models

October 23, 2026 model ids on OpenAI's deprecations page. The quoted sentence was recorded for gpt-4-vision-preview.
Model idWhat the source says
gpt-4 Shuts down October 23, 2026. Recommended replacement on the deprecations page: gpt-5.6-sol.
gpt-4-0613 Snapshot in the same October 23, 2026 row as gpt-4. Replacement: gpt-5.6-sol.
gpt-3.5-turbo Shuts down October 23, 2026. Recommended replacement: gpt-5.6-terra.
gpt-3.5-turbo-0125 Snapshot in the same row as gpt-3.5-turbo. Replacement: gpt-5.6-terra.
gpt-4-turbo Shuts down October 23, 2026. Recommended replacement: gpt-5.6-sol.
gpt-4-turbo-2024-04-09 Snapshot in the gpt-4-turbo row. Replacement: gpt-5.6-sol.
gpt-4-1106-preview Shuts down October 23, 2026. Recommended replacement: gpt-5.6-sol.
gpt-4.1-nano Shuts down October 23, 2026. Recommended replacement: gpt-5.6-luna.
gpt-4.1-nano-2025-04-14 Snapshot in the gpt-4.1-nano row. Replacement: gpt-5.6-luna.
gpt-4o-2024-05-13 Shuts down October 23, 2026. Recommended replacement: gpt-5.6-sol.
o1 Shuts down October 23, 2026. Recommended replacement: gpt-5.6-sol.
o1-2024-12-17 Snapshot in the o1 row. Replacement: gpt-5.6-sol.
o3-mini Shuts down October 23, 2026. Recommended replacement: gpt-5.6-sol.
o4-mini Shuts down October 23, 2026. Recommended replacement: gpt-5.6-terra.
gpt-5.6-sol Replacement named for gpt-4, gpt-4-turbo, gpt-4o-2024-05-13, o1, and o3-mini.
gpt-5.6-terra Replacement named for gpt-3.5-turbo and o4-mini.
gpt-5.6-luna Replacement named for gpt-4.1-nano.

Fix

Raw SDK

Change the model id to the replacement on the deprecations page. The sample uses gpt-4 to gpt-5.6-sol. Other ids in the table use gpt-5.6-terra or gpt-5.6-luna. This page does not claim the new model accepts every parameter the old one accepted.

Before

from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
    model="gpt-4",
    messages=[{"role": "user", "content": "Hello"}],
)

After

from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
    model="gpt-5.6-sol",
    messages=[{"role": "user", "content": "Hello"}],
)

Source: OpenAI deprecations, checked October 20, 2026.

LiteLLM

Change the model string. LiteLLM's OpenAI route uses an openai/ prefix plus the model id.

Python

import litellm
response = litellm.completion(
    model="openai/gpt-5.6-sol",
    messages=[{"role": "user", "content": "Hello"}],
)

Source: LiteLLM OpenAI provider, checked October 20, 2026.

Vercel AI SDK

Pass the replacement id to openai(). The AI SDK OpenAI guide is the provider page for that helper.

TypeScript

import { openai } from "@ai-sdk/openai";
import { generateText } from "ai";

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  prompt: "Hello",
});

Source: AI SDK OpenAI guide, checked October 20, 2026.

Shutdown pages

Switch guides

More request errors

All request errors

Questions

Does OpenAI print the error sentence for the October 23 models?

Not on the deprecations page checked October 20, 2026. That page says the model will no longer be accessible. The sentence in the Error text block was recorded for gpt-4-vision-preview in a GitHub issue.

Deprecation alerts

We email you before models shut down. Unsubscribe anytime.

Deprecation alert signup
Providers (optional)