# AI model id retirement check, with the provider's own sentence (`referencesource/retired-model-id-check`) Actor

Give the AI model ids your config pins. Each comes back with whether a provider has retired it, the shutdown date that provider published, the replacement it names, the source URL and the verbatim sentence the value was read from. An id we hold no record for is not cleared.

- **URL**: https://apify.com/referencesource/retired-model-id-check.md
- **Developed by:** [Reference Source](https://apify.com/referencesource) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 model id checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## AI model id retirement check

**Give it the AI model ids your config pins. Get back, for each one, whether a
provider has retired it, when it shuts off, what that provider says to move to
— and the verbatim sentence from the provider's own page that the answer was
read out of, with a link to it.**

Model ids go stale quietly. A pinned `gpt-4-32k` kept working for months after
OpenAI announced its shutdown and then stopped answering; `claude-3-sonnet-20240229`
and `gemini-1.5-pro-002` are both past the date their providers published. The
provider published a page saying so. Nobody read it, because it is one row in
one table on one of twenty different vendors' documentation sites, and because
nothing in a config file tells you which of its strings has a deadline on it.

This Actor reads those twenty pages for you. It holds no opinion about any
model: every answer is the provider's own word and the provider's own date,
quoted, with the URL.

### What you give it

Either, or both:

- **`model_ids`** — one id per line, exactly as it goes in your config:
  `gpt-4o`, `anthropic.claude-3-haiku-20240307-v1:0`, `gemini-1.5-pro-002`,
  `mistral-large-2407`.
- **`config_url`** — the address of a raw JSON, YAML, TOML, `.ini` or `.env`
  file, for example a `raw.githubusercontent.com` link. Every value under a key
  that names a model (`model:`, `llm`, `azure_deployment`, `fallback_model`),
  and every value shaped like a model id anywhere else in the file, is looked
  up. Each result says which line of your file it came from. Public `http` and
  `https` addresses only.

Optional: **`provider`** narrows to one host's schedule (`bedrock`, `azure`,
`groq`). Leave it empty and you see every host's clock for the id, which is
usually what you want — see below.

### What you get back

One row per id. The fields that carry the answer:

| field | what it is |
|---|---|
| `verdict` | `shut_down_everywhere`, `shut_down_on_some_hosts`, `shutdown_scheduled`, `in_our_records_with_no_date`, `not_in_our_records` or `lookup_failed` |
| `recommended_action` | one of six words, derived from `verdict` and nothing else |
| `says` | the one sentence, in English |
| `earliest_announced_shutdown` | the soonest date **any** host states, with the page and the sentence that state it, and how many days away it is |
| `hosts` | one entry per host that sells the id: that host's lifecycle word and date **as it prints them**, its own `source_url`, its own `source_quote`, the replacement it names |
| `replacements_the_providers_name` | only what a provider actually named. No substitute is ever suggested here |
| `check_complete` | whether the lookup finished. The field to branch on |
| `as_of` | the day the "has that date passed?" answers were computed against |

Every row carries the record's page on referencesource.org too, so the whole
provenance chain is clickable: our record, the provider's page, the sentence.

#### Read `earliest_announced_shutdown`, not one host's date

This is the one thing a check like this has to get right. The same model id is
sold by several hosts and they switch it off on different days. In this
register, 82 records carry a second source stating a different shutdown date,
and on 34 of them that second date is **earlier** than the record's primary
one. GitHub Copilot dropped Claude Opus 4.5 on 2026-09-01 while Microsoft
Foundry kept serving it to 2026-11-24. A tool that returned one field would
have told a migration planner they had until November when their own surface
cut them off in September.

So `earliest_announced_shutdown` is computed across every date any source
states, and each candidate date comes back attached to the page and the
sentence that state **it** — never credited to a different provider.

And where an id is gone on one host and still serving on another, the verdict
is `shut_down_on_some_hosts` and the hosts are named. It is not folded into
"retired" and it is not folded into "fine", because it is neither.

### What it does not do

**An id this register holds nothing for is not cleared.** It comes back
`not_in_our_records`, with no date attached and a sentence saying in so many
words that this is not "still supported". It means only that no provider page
we have read names that id. New ids appear constantly, private deployments are
named whatever you named them, and a register is never complete.

**It does not rate a model, recommend one, or guess a replacement.** The only
replacement on a row is one the provider itself named.

**A failed lookup is never an answer.** If the register could not be asked
about an id, that row says `lookup_failed` and `check_complete: false` and
names no date — it is not reported as "nothing found". The run's log says how
many, and a run with any failure in it refuses to read as a clean one.

**Dates are the provider's, computed fields are ours, and the row says which.**
`lifecycle_status` and `shutdown_date` are exactly as the provider prints them
— the twenty providers use neither one vocabulary ("Retired", "Removed",
"Legacy", "EOL", "Shut down", "No longer available") nor one date format
(seven of them, from `2026-11-17` to `04/14/25` to `Not sooner than April 16,
2027`). `shutdown_date_iso`, `days_until_shutdown`, `status` and `verdict` are
computed here so you can sort and branch, and they are labelled as computed.

**"Not sooner than" is not a date.** Where a provider states a floor rather
than a retirement date, the row says `shutdown_date_is_a_floor: true`. The
model will not go *before* that day; nothing says when it will.

### Where the data comes from

Everything is read, live and per run, from
**[AI model deprecation and retirement dates, by provider](https://referencesource.org/ai-model-deprecation-and-retirement/)**
on referencesource.org: 900-odd model ids from OpenAI, Anthropic, Google
(Vertex, the Gemini API and Agent Platform), Azure / Microsoft Foundry, AWS
Bedrock, Together AI, Alibaba Cloud Model Studio, Mistral, Groq, Cerebras,
SambaNova, Databricks, Cohere, xAI, DeepSeek, Moonshot, Nebius, Oracle, IBM
watsonx and GitHub Copilot.

**Every value in that register carries the URL of the provider page it was read
from and a verbatim sentence from that page containing the value.** That is the
whole product: a value without both is indistinguishable from an invented one,
so a row that cannot carry both is not published. The quotes are re-checked
against the live provider pages on a schedule, every record carries the date it
was last checked, and anything found wrong is corrected or withdrawn.

Nothing is bundled into this Actor and nothing about a model id is recomputed
inside it. Each run asks the live register, so a record corrected this morning
is in your answer this afternoon, and nothing can come out of here that the
site itself would not serve.

### Pricing

Pay per event:

- **$0.002 per model id checked** — once per id, however many hosts sell it. A
  lookup that failed is free: a row telling you to ask again is not an answer
  anybody should pay for.
- **$0.001 per retirement record returned** — one provider's record for that
  id. An id the register holds nothing for costs the check and nothing more.

A 40-id config costs about 8 cents plus the records it turns up.

### Example

Input:

```json
{
  "model_ids": ["gpt-4o", "gpt-4-32k", "claude-3-sonnet-20240229"]
}
```

`gpt-4-32k` comes back like this (abridged):

```json
{
  "result": "model_id_status",
  "model_id": "gpt-4-32k",
  "verdict": "shut_down_everywhere",
  "recommended_action": "replace_this_pin",
  "check_complete": true,
  "says": "Every record we hold for \"gpt-4-32k\" (1) says it is shut down. Read each host's quote below for the provider's own words.",
  "earliest_announced_shutdown": {
    "date": "2025-06-06",
    "as_printed": "June 6, 2025",
    "stated_by": "OpenAI",
    "days_away": -528,
    "source_url": "https://platform.openai.com/docs/deprecations",
    "source_quote": "2025-06-06: gpt-4-32k was shut down."
  },
  "replacements_the_providers_name": ["gpt-4o"],
  "hosts": [
    {
      "provider": "OpenAI",
      "lifecycle_status_as_the_provider_prints_it": "Retired",
      "shutdown_date_as_the_provider_prints_it": "June 6, 2025",
      "shutdown_date_iso": "2025-06-06",
      "status": "shut_down",
      "source_url": "https://platform.openai.com/docs/deprecations",
      "source_quote": "2025-06-06: gpt-4-32k was shut down."
    }
  ]
}
```

### Also available as

The same records, other surfaces, if an Actor is not the shape you want:

- **npm / PyPI**: `model-pin-check` scans a whole repository for pinned model
  ids and can run as a pre-commit hook.
- **MCP**: `https://referencesource.org/mcp/models` — the server this Actor
  itself calls, for an agent that wants to ask directly.
- **A page per model id**, with the quote and the link, on referencesource.org.

### Who runs this

It is automated, by [referencesource.org](https://referencesource.org). It
identifies itself as `referencesource-model-pin-apify` when it reads the
register. Corrections to a record are welcome through the contact route on
<https://referencesource.org/connect/>.

Licence: MIT for the code. The facts are facts, published with a short
attributed quote and a link to each provider's own page.

# Actor input Schema

## `model_ids` (type: `array`):

One model id per line, exactly as it goes in your config — "gpt-4o", "anthropic.claude-3-haiku-20240307-v1:0", "gemini-1.5-pro-002", "mistral-large-2407". Matched exactly, then case-insensitively, then against the model's human-readable name. Never as a substring: "gpt-4" does not answer for "gpt-4o".

## `config_url` (type: `string`):

The address of a raw JSON, YAML, TOML, .ini or .env config — a raw.githubusercontent.com link, for example. Every value under a key that names a model, and every value shaped like a model id anywhere else, is looked up, and each result says which line of your file it came from. Only ids this register actually holds come back, so a file full of ordinary settings produces no noise. Public http and https URLs only.

## `provider` (type: `string`):

Matched case-insensitively as part of the provider's name: "bedrock", "azure", "openai", "groq". Leave it empty to see every host's clock for the id, which is usually what you want — the same id is sold by several hosts and they switch it off on different days.

## `report_ids_we_hold_nothing_for` (type: `boolean`):

On by default, so you get a row per id you typed. Read it carefully: no record is NOT a clearance. It says only that no provider page we have read names that id. Ids found in a config rather than typed never get such a row — a few hundred strings we have nothing to say about is not an answer.

## Actor input object example

```json
{
  "model_ids": [
    "gpt-4o",
    "gpt-4-32k",
    "claude-3-sonnet-20240229",
    "gemini-1.5-pro-002"
  ],
  "report_ids_we_hold_nothing_for": true
}
```

# Actor output Schema

## `results` (type: `string`):

Each row carries the verdict across every host that sells the id, the earliest shutdown date any of them states, the replacement each provider names, and for every host its own source URL and the verbatim sentence the value was read from. check_complete on the row says whether the lookup actually finished; an id the register holds nothing for says so and names no date.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "model_ids": [
        "gpt-4o",
        "gpt-4-32k",
        "claude-3-sonnet-20240229",
        "gemini-1.5-pro-002"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("referencesource/retired-model-id-check").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "model_ids": [
        "gpt-4o",
        "gpt-4-32k",
        "claude-3-sonnet-20240229",
        "gemini-1.5-pro-002",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("referencesource/retired-model-id-check").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "model_ids": [
    "gpt-4o",
    "gpt-4-32k",
    "claude-3-sonnet-20240229",
    "gemini-1.5-pro-002"
  ]
}' |
apify call referencesource/retired-model-id-check --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,referencesource/retired-model-id-check"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/xm5FPYP4upYNCdK6v/builds/a5RB5pGjVdhENmKgt/openapi.json
