Skip to content

Preview: Model Atlas is in development and not yet available.

Find models retiring before a date

Say you need to know what stops working before 2027-06-30, so you can plan migrations. This tutorial finds:

  1. offerings with an exact retirement date before then,
  2. retirements whose date isn’t exact,
  3. regions that retire earlier than their offering,

and narrows it to the models you use. You need lifecycle in your plan: the lifecycle filters are 403 forbidden without it.

Ask for offerings, not versions: an offering’s lifecycle is the platform’s, which is what your calls depend on. A version’s is the model maker’s. See Where each lifecycle lives.

Terminal window
curl -H "Authorization: Bearer $MA_API_KEY" \
"$MA_API/v1/offerings?retires_after=2026-11-01&retires_before=2027-06-30&limit=200"
  • retires_before=2027-06-30: retiring on or before that date.
  • retires_after=2026-11-01: and on or after this one. Without it you’d also get everything that has already retired, since a past date is before your deadline too. Set it to today.

Both match exact dates only. Each result has its date and the source that gave it (from the listOfferings example, trimmed):

{
"slug": "bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0",
"version": "claude-sonnet-4-5-20250929",
"platform": "bedrock",
"platform_model_id": "anthropic.claude-sonnet-4-5-20250929-v1:0",
"lifecycle": {
"entitled": true,
"status": "legacy",
"deprecated_on": "2026-10-08",
"retires_on": "2027-04-08",
"retires_on_kind": "exact",
"replacement": null,
"replacement_offering": null,
"auto_routes": false,
"provenance": {
"source": "bedrock-lifecycle-page",
"confidence": "official_platform",
"evidence_state": "disclosed",
"stale": false
}
}
}

Page through with cursor until next_cursor is null (see Pagination).

A not_before date (a source’s “not sooner than”) or an announcement without a date (tba) doesn’t match the date filters. Find them by status, then check the date yourself:

Terminal window
curl -H "Authorization: Bearer $MA_API_KEY" \
"$MA_API/v1/offerings?lifecycle_status=deprecated,legacy&limit=200"

For each result, look at lifecycle.retires_on_kind:

retires_on_kind Counts as before your deadline when
exact retires_on is on or before it (step 1 already has these)
not_before retires_on is on or before it: it could retire then, though it may last longer
tba always worth a look: it’s announced, without a date
none never: deprecated, but no date

Active models can have a not_before date too: the earliest date the source promises they’ll keep working (Anthropic gives one for every current model). Add active to lifecycle_status if you want those as well.

The filters look at an offering’s own lifecycle. Where one region retires on a different date, it’s in availability.regions[].lifecycle, and the filters don’t see it. In the example above, the offering retires on 2027-04-08 but us-gov-east-1 on 2027-04-27:

"availability": {
"entitled": true,
"regions": [
{
"region": "us-gov-east-1",
"status": "available",
"lifecycle": {"status": "legacy", "retires_on": "2027-04-27", "retires_on_kind": "exact"}
}
]
}

If you call a model in particular regions, check those regions’ lifecycle on the offerings you use. A region with no lifecycle follows its offering.

Add models, with the names you use: family, version or offering slugs, or the platform’s own model IDs. Up to 100, comma-separated:

Terminal window
curl -H "Authorization: Bearer $MA_API_KEY" \
"$MA_API/v1/offerings?models=gpt-4o,claude-sonnet-4-5&retires_after=2026-11-01&retires_before=2027-06-30"

Check unmatched_models in the response: it lists the names that matched nothing, so a typo doesn’t hide a retirement.

To see the model makers’ own schedules, send the same filters to /v1/versions:

Terminal window
curl -H "Authorization: Bearer $MA_API_KEY" \
"$MA_API/v1/versions?retires_after=2026-11-01&retires_before=2027-06-30"

From the listVersions example: claude-sonnet-4-5-20250929 is deprecated and retires on exactly 2026-11-30, from anthropic-deprecations-page.

All exact and not_before retirements of your models up to the deadline, one line each, for the first page. There’s no lifecycle_status filter, so active offerings with a not_before date (step 2) are included:

Terminal window
curl -s -H "Authorization: Bearer $MA_API_KEY" \
"$MA_API/v1/offerings?models=gpt-4o,claude-sonnet-4-5&limit=200" |
jq -r '.data[]
| select(.lifecycle.retires_on != null and .lifecycle.retires_on <= "2027-06-30")
| [.slug, .lifecycle.retires_on, .lifecycle.retires_on_kind, (.lifecycle.replacement // "")]
| @tsv'

Dates are YYYY-MM-DD, so comparing them as strings works. Add tba retirements by selecting .lifecycle.retires_on_kind == "tba".