Some AI model IDs hardcoded inside your production agents already have a hard shutdown date, and the first two major cutoffs hit on November 30 and December 1, 2026. AI model deprecation is the quietest failure mode in production AI engineering: nobody deploys buggy code, nothing changes in your infrastructure, and one morning your agent starts returning HTTP 404 or 400 errors, or silently reroutes onto a different model with different billing and behaviour.

I audited the official deprecation pages from Anthropic, OpenAI, and Google on November 27, 2026, and pulled together every active retirement date, silent auto-routing rule, breaking API parameter change, and vendor-recommended replacement that affects live agents, n8n automations, and voice pipelines. Always check the official vendor docs right before cutover, as providers occasionally adjust notice windows.

Master AI model deprecation schedule (Nov 2026 - May 2027)

Triage your codebase by calendar urgency first rather than going vendor by vendor:

Cutoff DateVendorRetiring Model or FeatureWhat HappensOfficial Replacement
Nov 17, 2026 (earliest)Googlegemini-3.1-flash-live-preview, gemini-2.5-flash-native-audio-preview-12-2025Shutdowngemini-3.8-live
Nov 30, 2026Anthropicclaude-sonnet-4-5-20250929 (and claude-sonnet-4-5)Returns 404 not_found_errorclaude-sonnet-5-5
Nov 30, 2026OpenAIAgent Builder, /v1/prompts, Evals dashboard & APIFeature & endpoint shutdownAgents SDK / Workspace Agents, in-code prompts, Promptfoo
Dec 1, 2026Googlegemini-2.5-pro, gemini-2.5-flashAuto-routes to Gemini 3.x + new billinggemini-3.8-flash (from 2.5 Pro), gemini-3.5-flash-lite (from 2.5 Flash)
Dec 11, 2026OpenAIgpt-5, gpt-5-mini, gpt-5-nano, gpt-5-pro, o3, o3-proModel shutdowngpt-6.1-sol, gpt-6.1-terra, gpt-6-luna
Dec 18, 2026Googlegemini-2.5-flash-preview-tts, gemini-2.5-pro-preview-ttsPreview shutdowngemini-3.8-flash-tts or gemini-3.8-flash-lite-tts
Jan 14, 2027OpenAIGPT-4o, GPT-4o mini, GPT-4.1, GPT-4.1 mini, GPT-4.1 nanoModel + fine-tune shutdowngpt-6-luna
Jan 20, 2027OpenAIgpt-realtime, gpt-4o-realtime, gpt-realtime-mini, audio modelsRealtime & audio shutdowngpt-realtime-2.1, gpt-realtime-2.1-mini, gpt-audio-1.5
Jan 22, 2027Anthropicclaude-opus-4-5-20251101 (and claude-opus-4-5)Returns 404 not_found_errorclaude-opus-5-5
Feb 26, 2027OpenAIwhisper-1, gpt-4o-transcribe, related STT modelsTranscription shutdowngpt-live-transcribe or gpt-transcribe
Mar 15, 2027 (earliest)Googlegemini-2.5-flash-imageModel shutdowngemini-3.1-flash-lite-image
Apr 1, 2027OpenAIgpt-5.4-nano-2026-03-17, gpt-5.3-chat-latestModel shutdownLatest GPT-6 family
May 7, 2027 (earliest)Googlegemini-3.1-flash-liteModel shutdowngemini-3.5-flash-lite

What AI model deprecation actually breaks in live agents

When a chatbot UI fails, a human sees an error message and clicks retry. Autonomous workflows, scheduled background jobs, and multi-agent routers fail in far subtler ways:

  • Immediate hard failures (404 / 400): Once a model reaches its retired state, requests fail at the API gateway. Anthropic's Messages API returns a 404 not_found_error, while passing removed sampling parameters triggers an HTTP 400 bad request.
  • Silent rerouting and billing shifts: Google's December 1, 2026 policy does not immediately throw a 404 for gemini-2.5-pro and gemini-2.5-flash. Instead, it automatically reroutes traffic to newer Gemini 3 models and bills you at the target model's rates, while applying stricter Gemini 3 API validation rules.
  • Orphaned copies in staging and workflow tools: Updating your primary .env file rarely fixes everything. Model strings frequently survive inside exported n8n workflow JSONs, fallback model routers, Docker Compose overrides, LangChain configs, and evaluation scripts.
  • Fine-tuned model inheritance: Developers often assume fine-tuned checkpoints live indefinitely. On OpenAI, fine-tuned snapshots follow the exact same shutdown date as their base model.
  • Downstream parser and tool-call drift: Even a clean model upgrade can change JSON formatting consistency, verbosity, tool-calling cadence, and latency. Swapping an ID without replaying real production prompts often breaks strict Pydantic or Zod output parsers.

Anthropic: Claude retirements and breaking parameter removals

Anthropic tracks every model across four formal lifecycle stages: Active (fully supported), Legacy (no further updates), Deprecated (functional with an assigned retirement date), and Retired (requests fail with 404 not_found_error). Anthropic provides at least 60 days' notice for publicly released models and emails accounts with active deployments.

Confirmed Claude retirements

Model ID (Pinned & Alias)Deprecated OnRetirement DateRecommended Replacement
claude-sonnet-4-5-20250929 (claude-sonnet-4-5)Sep 30, 2026Nov 30, 2026claude-sonnet-5-5 (Active; not sooner than Sep 28, 2027)
claude-opus-4-5-20251101 (claude-opus-4-5)Nov 23, 2026Jan 22, 2027claude-opus-5-5 (Active; not sooner than Sep 22, 2027)

Both the date-pinned ID and the unpinned alias (e.g., claude-sonnet-4-5) retire together. Looking ahead to Q1 2027, Anthropic also lists tentative earliest retirement windows for claude-opus-4-6 (not sooner than Feb 5, 2027) and claude-sonnet-4-6 (not sooner than Feb 17, 2027), meaning any new production build today should target the Claude 5.5 tier directly.

Critical API break: temperature, top_p, and top_k removed

Even if your model ID is already on Claude 5.5, Anthropic's deprecation table flags a major schema change: temperature, top_p, and top_k are removed in API version 2026-10-21 and return an HTTP 400 error. Earlier API versions also return a 400 error if you pass non-default values on Claude 4.7+ models or Claude Mythos Preview.

Check every SDK wrapper and HTTP Request node that injects temperature: 0 globally, remove those fields, and control output consistency through explicit system instructions:

json
// FAILS on Anthropic API version 2026-10-21 (returns HTTP 400)
{
  "model": "claude-sonnet-5-5",
  "max_tokens": 1024,
  "temperature": 0,
  "top_p": 0.9,
  "messages": [{ "role": "user", "content": "Extract GSTIN and total amount as JSON." }]
}

// VALID on Anthropic API version 2026-10-21
{
  "model": "claude-sonnet-5-5",
  "max_tokens": 1024,
  "system": "Return strict RFC 8259 JSON only with keys 'gstin' and 'total'. Do not add prose or vary key names.",
  "messages": [{ "role": "user", "content": "Extract GSTIN and total amount as JSON." }]
}

OpenAI: five shutdown waves across models, evals, and voice

OpenAI's deprecation calendar hits platform tooling first, followed by flagship reasoning models, legacy GPT-4 endpoints, and voice/audio infrastructure across early 2027:

Shutdown DateAffected Models or Platform FeaturesRecommended Replacement
Nov 30, 2026Agent Builder, /v1/prompts reusable prompt objects, Evals dashboard & API (read-only prior to shutdown)Agents SDK or ChatGPT Workspace Agents, version-controlled prompts in your repo, Promptfoo
Dec 11, 2026gpt-5, gpt-5-2025-08-07, gpt-5-mini, gpt-5-nano, gpt-5-pro, o3, o3-progpt-6.1-sol, gpt-6.1-terra, gpt-6-luna
Jan 14, 2027GPT-4o (2024-05-13, 2024-08-06, 2024-11-20), GPT-4o mini, gpt-4.1, gpt-4.1-mini, gpt-4.1-nanogpt-6-luna
Jan 20, 2027gpt-realtime, gpt-4o-realtime, gpt-realtime-mini, gpt-audio-mini, gpt-4o-audio-previewgpt-realtime-2.1, gpt-realtime-2.1-mini, gpt-audio-1.5
Feb 26, 2027whisper-1, gpt-4o-transcribe, related speech-to-text modelsgpt-live-transcribe or gpt-transcribe
Apr 1, 2027gpt-5.4-nano-2026-03-17, gpt-5.3-chat-latestCurrent GPT-6 tier

Three OpenAI details teams frequently miss

  1. Nov 30 breaks platform glue, not just model calls: If your workflow fetches stored prompts from /v1/prompts at runtime or pushes CI benchmarks to the legacy Evals API, your pipeline will fail on Nov 30 even if your chat completion model is current. (Note: OpenAI confirms ChatKit remains available.)
  2. Fine-tuned checkpoints share their base shutdown date: Any fine-tuned gpt-4o or gpt-4.1 classifier stops serving on Jan 14, 2027. Start dataset validation and retraining at least three weeks ahead of time.
  3. Voice AI agents face back-to-back cutoffs: Realtime voice sockets retire on Jan 20, 2027, and Whisper/transcription models retire on Feb 26, 2027. Audit your WebRTC/WebSocket audio layer and offline transcription jobs in a single sprint so you do not regress twice.

Google: Gemini Dec 1 auto-routing and breaking API changes

Google's Gemini API handles deprecations differently from Anthropic and OpenAI. Two mechanisms demand immediate attention right now: automatic rerouting on December 1, 2026, and strict request validation on Gemini 3.5/3.6+ models.

1. December 1, 2026 automatic rerouting (Gemini 2.5 Pro & Flash)

Both gemini-2.5-pro and gemini-2.5-flash are deprecated and removed from Google AI Studio selection. Effective December 1, 2026:

  • All API requests to gemini-2.5-pro automatically route to gemini-3.8-flash and are billed at Gemini 3.8 Flash rates.
  • All API requests to gemini-2.5-flash automatically route to gemini-3.5-flash-lite and are billed at Gemini 3.5 Flash-Lite rates.
  • gemini-2.5-flash-lite is not deprecated yet and stays available via the API until further notice.

2. Breaking request changes when traffic shifts to Gemini 3.5/3.6+

If you let Google auto-route your legacy Gemini 2.5 traffic on Dec 1 without updating your code, two Gemini 3 API changes can silently degrade or break your agent:

  • Prefilled model turns return HTTP 400: Starting with Gemini 3.6 Flash and Gemini 3.5 Flash-Lite (and all subsequent models), ending a request with a model role turn to force JSON prefixing (e.g., prefilling {) is no longer supported and immediately throws a 400 error. Switch to structured output schemas (response_mime_type: "application/json" with a schema) instead.
  • Sampling parameters deprecated (temperature, top_p, top_k): Like Anthropic, Google has deprecated temperature, top_p, and top_k starting with Gemini 3.6 Flash and 3.5 Flash-Lite. They are currently ignored and will return an HTTP 400 error in future model generations. Strip them from generation_config now and rely on clear system instructions.

3. Additional Gemini shutdown dates to track

Google documents listed dates as the earliest possible shutdown date (with exact final notice communicated ahead of time), treat every date below as a firm engineering deadline:

  • Nov 17, 2026 (earliest): Live audio preview models (gemini-3.1-flash-live-preview, gemini-2.5-flash-native-audio-preview-12-2025) → migrate to gemini-3.8-live.
  • Dec 18, 2026: TTS preview models (gemini-2.5-flash-preview-tts, gemini-2.5-pro-preview-tts) → migrate to gemini-3.8-flash-tts or gemini-3.8-flash-lite-tts.
  • Mar 15, 2027 (earliest): gemini-2.5-flash-image → migrate to gemini-3.1-flash-lite-image.
  • May 7, 2027 (earliest): gemini-3.1-flash-lite → migrate to gemini-3.5-flash-lite.

(Note: Preview embedding model gemini-embedding-2-preview already began routing to stable gemini-embedding-2 on Nov 6, 2026.)


5-step audit and migration playbook for your agents

StepWhat to DoWhat to Catch
1. Scan every repo and workflowRun a recursive search across Git repos, .env files, Dockerfiles, and exported n8n JSONsExact retiring model IDs (both pinned date suffixes and aliases) plus /v1/prompts
2. Audit staging and fallback pathsMap model assignments per service, background worker, and retry routerForgotten legacy IDs inside error fallbacks or staging environments
3. Strip deprecated sampling & prefill logicInspect Anthropic and Gemini payload builderstemperature, top_p, top_k on Claude/Gemini and prefilled model turns on Gemini
4. Isolate voice, audio, and fine-tunesReview Realtime sockets, STT jobs, TTS pipelines, and OpenAI fine-tuned checkpoints separatelygpt-realtime*, whisper-1, gpt-4o-transcribe, Gemini TTS/live previews, ft:gpt-4o*
5. Run prompt regression tests & set alertsReplay 15-20 real production inputs against the replacement model and add 14-day calendar alertsJSON schema breaks, tool-call argument mismatches, and token-cost spikes

Run this 30-second codebase scan

Use ripgrep (rg) from your root projects folder (including exported n8n workflow directories) to surface every retiring model string in one pass:

bash
rg -n -i \
  "claude-sonnet-4-5|claude-opus-4-5|gpt-5|o3-pro|\bo3\b|gpt-4o|gpt-4\.1|gpt-realtime|whisper-1|gpt-4o-transcribe|/v1/prompts|gemini-2\.5-pro|gemini-2\.5-flash|gemini-3\.1-flash-live-preview|gemini-3\.1-flash-lite" \
  . --glob '!node_modules/**' --glob '!.git/**' --glob '!venv/**'

Run a second pass to flag deprecated sampling parameters in your Claude and Gemini integrations:

bash
rg -n -i "(temperature|top_p|top_k)" . --glob '!node_modules/**' --glob '!.git/**' --glob '!venv/**'

Eliminate hardcoded model strings permanently

Stop scattering raw model names across 20 files. Route every agent, worker, and script through one environment-driven registry so future migrations become a single configuration update and smoke test:

python
import os

MODEL_REGISTRY = {
    "reasoning_primary": os.getenv("LLM_REASONING_PRIMARY", "claude-sonnet-5-5"),
    "coding_heavy": os.getenv("LLM_CODING_HEAVY", "claude-opus-5-5"),
    "fast_general": os.getenv("LLM_FAST_GENERAL", "gpt-6-luna"),
    "gemini_fast": os.getenv("LLM_GEMINI_FAST", "gemini-3.8-flash"),
    "gemini_lite": os.getenv("LLM_GEMINI_LITE", "gemini-3.5-flash-lite"),
    "voice_realtime": os.getenv("LLM_VOICE_REALTIME", "gpt-realtime-2.1"),
    "stt_transcribe": os.getenv("LLM_STT_TRANSCRIBE", "gpt-transcribe"),
}

def get_model(role: str) -> str:
    if role not in MODEL_REGISTRY:
        raise ValueError(f"Unknown model role: {role}")
    return MODEL_REGISTRY[role]

If you run automated schedules in n8n, pair this deprecation check with our breakdown of the n8n Schedule Trigger durable scheduler change so you clear both silent failure points in the same maintenance window. For quick definitions of API terms like structured outputs, fallback routing, and model aliasing, browse our AI Engineering Glossary.


Priority order: what to fix right now

  1. Immediate (before Nov 30 - Dec 1, 2026): Migrate claude-sonnet-4-5 to claude-sonnet-5-5, strip temperature/top_p/top_k from Anthropic 2026-10-21 calls, move off OpenAI Agent Builder, /v1/prompts, and the legacy Evals API, and explicitly migrate gemini-2.5-pro / gemini-2.5-flash (removing any prefilled model turns) before Dec 1 auto-routing kicks in.
  2. Early December (before Dec 11 - Dec 18, 2026): Move gpt-5* and o3* flows onto gpt-6.1-sol, gpt-6.1-terra, or gpt-6-luna, and shift Gemini TTS previews to gemini-3.8-flash-tts / gemini-3.8-flash-lite-tts.
  3. January - February 2027: Schedule dedicated sprints for legacy GPT-4o / GPT-4.1 apps (especially fine-tuned models), claude-opus-4-5, OpenAI Realtime/audio endpoints, and Whisper transcription pipelines.

Frequently asked questions

What happens when an AI model ID reaches its retirement date?

On Anthropic and OpenAI, API requests to a retired model ID fail immediately (for example, Anthropic's Messages API returns a 404 not_found_error). On Google's Gemini API, deprecated 2.5 models (gemini-2.5-pro and gemini-2.5-flash) automatically reroute to Gemini 3 models starting December 1, 2026, applying the target model's pricing and stricter API validation rules.

Why are my Claude or Gemini calls returning a 400 error even with a new model?

Both Anthropic (API version 2026-10-21) and Google (Gemini 3.5/3.6+) have moved away from manual sampling parameters (temperature, top_p, top_k). Sending them on Anthropic 2026-10-21 returns an HTTP 400 error, and sending prefilled model turns on Gemini 3.5/3.6+ also returns an HTTP 400 error. Remove those fields and use explicit system prompts or structured JSON schemas instead.

Do OpenAI fine-tuned models keep working after the base model shuts down?

No. OpenAI's deprecation policy applies the base model's shutdown schedule to all fine-tuned derivatives. Any fine-tuned GPT-4o or GPT-4.1 model must be retrained and migrated before January 14, 2027.

Should I pin dated model snapshots or use unpinned aliases?

Use a centralised environment-variable registry pointing to stable aliases for standard workloads, and reserve date-pinned IDs only for compliance-sensitive workflows where you also track vendor retirement dates in a shared team calendar.


Conclusion

AI model deprecations are no longer rare annual events, they are a recurring quarterly maintenance cycle across every major LLM provider. Between November 30 (claude-sonnet-4-5 and OpenAI's /v1/prompts, Agent Builder, and Evals shutdowns), December 1 (gemini-2.5-pro and gemini-2.5-flash auto-routing with stricter Gemini 3 validation), and December 11 (gpt-5 and o3), waiting until production alerts fire is the costliest way to discover a hardcoded model string.

Run the ripgrep scan across your repositories and n8n workflows today, move your model names into a single environment-driven registry, strip deprecated sampling parameters and prefilled turns, and replay a real prompt test suite before flipping traffic. If you want help auditing production AI agents, upgrading n8n pipelines, or setting up zero-downtime model routing, check out our AI engineering and automation services.

Sources verified on Nov 27, 2026: Anthropic Model Deprecations, OpenAI Deprecations, and Google Gemini API Deprecations.

NEXT IN SERIES

n8n 2.45 Schedule Trigger Change: Check Yours

n8n 2.45 makes the durable scheduler default. Learn how Schedule Trigger intervals change, which workflows to check, and how to keep fixed-time jobs on cron.

Continue Reading