The calendar
- Nov 30, 2026 (Anthropic): claude-sonnet-4-5-20250929 and claude-sonnet-4-5 retire on the Claude API. Replacement: claude-sonnet-5-5. Bedrock and Google-managed Claude set their own dates.
- Nov 30, 2026 (OpenAI): /v1/prompts and Agent Builder deprecated; Evals goes read-only.
- Dec 1, 2026 (Google): Gemini 4 Argon and Carbon introductory pricing ends. Input $2 → $4, output $10 → $20, cached input $0.10 → $0.20 per 1M tokens.
- Dec 1, 2026 (OpenAI): gpt-image-1-mini, gpt-image-1.5 and chatgpt-image-latest shut down. Replacement: gpt-image-2.6-sunburst or gpt-image-2.6-flare.
- Dec 11, 2026 (OpenAI): gpt-5 and o3 → gpt-6.1-sol; gpt-5-mini → gpt-6.1-terra; gpt-5-nano → gpt-6-luna; gpt-5-pro and o3-pro → gpt-6.1-sol with reasoning.mode pro in the Responses API.
- Dec 15, 2026 (OpenAI): no new self-serve fine-tuning jobs.
- Jan 1, 2027 (Google): Gemini 3.8 Flash goes from $0.75/$3.75 to $1.50/$7.50.
- Jan 22, 2027 (Anthropic): claude-opus-4-5 retires. Replacement: claude-opus-5-5.
Run the scanner
One Python file, no dependencies. It matches exact model IDs in code, config and env files, sorts them by days left, and lists the request settings that break when a Claude file moves to Sonnet 5.5.
git clone https://github.com/seyiayeni/acadaai
cd acadaai/examples/ai-api-sunset-scan
python3 sunset_scan.py legacy-app --today 2026-11-28
python3 sunset_scan.py /path/to/your/repo # exit 1 if anything is due in 14 daysDAYS DATE WHAT VENDOR MODEL WHERE
2 2026-11-30 RETIRES Anthropic claude-sonnet-4-5 config/models.yaml:2
2 2026-11-30 RETIRES Anthropic claude-sonnet-4-5-20250929 src/summarize.py:9
3 2026-12-01 PRICE x2 Google gemini-4-argon config/models.yaml:6
13 2026-12-11 RETIRES OpenAI o3 src/agent.ts:9
...
Claude Sonnet 4.5 -> 5.5 breaking settings: 9
src/summarize.py:11 400: sampling parameters are rejected; remove them
src/summarize.py:12 400: thinking budgets are rejected; use output_config.effort
src/summarize.py:15 400 if this is the last turn: assistant prefill is rejected
9 model references, 8 due within 14 days, 9 settings to fix.What breaks on Claude Sonnet 5.5
- temperature, top_p, top_k: 400. Remove them.
- thinking: {type: enabled, budget_tokens}: 400. Use output_config.effort (low, medium, high, xhigh, max).
- Assistant prefill (a last assistant turn): 400. Use structured outputs via output_config.format.
- tool_choice any or tool: 400. Use auto and mark the tool strict: true.
- output_format: 400 without the structured-outputs-2025-11-13 beta header. Move it to output_config.format.
- No error, still broken: thinking runs by default, so content[0] can be a thinking block. Read blocks by type.
- No error, still broken: to keep no up-front thinking, send thinking: {type: between_tools}. disabled is a 400 on Sonnet 5.5.
Also: remove the interleaved-thinking-2025-05-14 beta header, replace fine-grained-tool-streaming-2025-05-14 with eager_input_streaming on the tool, parse tool inputs with a real JSON parser, and revisit max_tokens because it now covers thinking too.
def text_of(resp) -> str:
# Responses can start with thinking blocks: read blocks by type, never by index.
return "".join(b.text for b in resp.content if b.type == "text")
def summarize(doc: str) -> str:
resp = client.messages.create(
model="claude-sonnet-5-5",
max_tokens=4096, # covers thinking + text now
output_config={"effort": "medium", "format": {"type": "json_schema", "schema": SUMMARY_SCHEMA}},
messages=[{"role": "user", "content": f"Summarize this document:\n{doc}"}],
)
return text_of(resp)The cost trap
Sonnet 5.5 lists at $2/$10 per 1M tokens against Sonnet 4.5's $3/$15. But Anthropic's migration guide says the same text produces about 30% more tokens. On an example workload of 100M input and 10M output tokens a month (measured today):
Claude Sonnet 4.5 -> 5.5 (4.5 retires Nov 30)
Sonnet 4.5 $3/$15 $450
Sonnet 5.5 $2/$10 x1.3 tokens $390 (-13%, no up-front thinking)
Thinking is ON by default and billed as output. Break-even: 6M extra
thinking tokens / month (46% on top of your output).
Gemini 4 Argon / Carbon (intro price ends Nov 30)
until Nov 30 $2/$10 $300
from Dec 1 $4/$20 $600 (+100%)
Gemini 3.8 Flash (intro price ends Dec 31)
until Dec 31 $0.75/$3.75 $112
from Jan 1 $1.50/$7.50 $225 (+100%)The order to do it in
- Scan every repo that calls a model, including config and .env files.
- Fix Nov 30 first: it is a hard 404, not a price change.
- Re-baseline cost with token counting on the new model and real thinking usage.
- Before flipping production, run old and new side by side on real inputs and diff the outputs.