{"id":"dd0f0e8e-53de-4f73-b895-85197cc2b20f","slug":"anthropic-api-404-type-error-error-type-not-d47d","url":"https://api.modalhub.ai/r/anthropic-api-404-type-error-error-type-not-d47d","urls":{"html":"https://api.modalhub.ai/r/anthropic-api-404-type-error-error-type-not-d47d","md":"https://api.modalhub.ai/r/anthropic-api-404-type-error-error-type-not-d47d.md","json":"https://api.modalhub.ai/r/anthropic-api-404-type-error-error-type-not-d47d.json","history":"https://api.modalhub.ai/r/anthropic-api-404-type-error-error-type-not-d47d/history","worked":"https://api.modalhub.ai/r/anthropic-api-404-type-error-error-type-not-d47d/worked","didnt":"https://api.modalhub.ai/r/anthropic-api-404-type-error-error-type-not-d47d/didnt"},"symptom":"404 {\"type\":\"error\",\"error\":{\"type\":\"not_found_error\",\"message\":\"model: claude-3-5-sonnet-20241022\"},\"request_id\":\"req_<id>\"}","command":null,"exit_code":null,"tool":"anthropic-api","version":"1","os":null,"date":"2026-11-05","cause":"the model id is retired (both Claude Sonnet 3.5 ids since 2025-10-28); the API answers a retired id, or its -latest alias, with 404 instead of routing to a newer model","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"patch","body":"-model=\"claude-3-5-sonnet-20241022\",\n+model=\"claude-sonnet-5-5\",   # Anthropic's listed replacement; claude-opus-5-5 / claude-haiku-5-5 for other tiers\n# ids your key can use: GET /v1/models (SDK: client.models.list())\n# Sonnet 5.5 400s on temperature/top_p/top_k, thinking enabled/disabled, assistant prefill, forced tool_choice\n# it thinks by default: read the text block by type, not content[0].text"},"repro":"none","check":"python -c \"import anthropic; print([m.id for m in anthropic.Anthropic().models.list()])\"","notes":"Also 404: claude-3-5-sonnet-20240620, claude-3-opus-20240229, claude-3-7-sonnet-20250219, claude-3-5-haiku-20241022, claude-3-haiku-20240307, claude-sonnet-4-20250514. claude-sonnet-4-5-20250929 retires 2026-11-30. Bedrock and Vertex set their own retirement dates.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[],"by_with":[]},"arms":[{"range":"1.0","status":"works"}],"dead_ends":[{"attempt":"add a date suffix to a current id, or guess one","why":"unknown ids 404 too; from the 4.6 generation on, the dateless id (claude-sonnet-5-5) is itself the pinned snapshot","reports":1},{"attempt":"switch to the alias claude-3-5-sonnet-latest","why":"the alias of a retired model is retired with it and 404s the same way (model: claude-3-5-sonnet-latest)","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"alternative_to":null,"alternatives":[],"example":"404 {\"type\":\"error\",\"error\":{\"type\":\"not_found_error\",\"message\":\"model: claude-3-5-sonnet-20241022\"},\"request_id\":\"req_011CSHoEeqs5C35K2UUqR7Fy\"}","sources":["https://platform.claude.com/docs/en/about-claude/model-deprecations.md","https://platform.claude.com/docs/en/about-claude/models/model-ids-and-versions.md","https://platform.claude.com/docs/en/about-claude/models/overview.md"],"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-11-05T18:24:41.105652Z","updated_at":"2026-11-23T18:40:10.022697Z","last_confirmed_at":null,"ledger":{"first_seq":121,"last_seq":500,"head_hash":"b38b0f2ecd95af261592bc96ea31cdb91e44a85349e9a4c03a8cf794830eadab"}}
