CometAPI delisted a model ID: a retry loop cannot fix a catalog change

The model you removed is not an outage

On 2026-09-15 the CometAPI changelog posted a “GPT-4o Search Preview Deprecation Notice”: gpt-4o-search-preview “has been removed from CometAPI and is no longer available. This change takes effect immediately.” The same notice recommends gpt-6-astra or gpt-5.6-sol for new workloads.

Separately, the undated “Model Retirement & Replacement Summary” block on that page says: “No automatic migration will be performed — please migrate to the recommended replacement models before the shutdown dates to avoid service interruptions.”

A retry policy assumes the model is still there; the catalog is what actually decides that.

The retry table is classified by failure shape

CometAPI’s retry guide is organized around request shape, not around the model’s lifecycle state:

Status or signal Retry?
400, 401 No — fix the body or the key
403 Usually no — remove unsupported fields and verify model access
429, 500, 503, 504, 524 Yes — backoff, keep the request ID
500 with invalid_request No — fix the request shape

Two rows matter here. First, 403 is documented as usually no, so a clean yes/no classifier will drop it into its default bucket. Second, the error-code page warns that missing required chat fields “can also surface as 500 with error.code: invalid_request” — a server-status code wrapping a deterministic request problem. The retry guide’s own sample loop runs for attempt in range(5), so a loop keyed only on status_code in {500, 503, 504, 524} can spend five attempts on a payload that will never succeed.

Runbook: delisting as its own failure class

The steps below are the author’s recommendation, built on the documented pages rather than published by CometAPI.

  1. Probe the catalog before you loop. GET https://api.cometapi.com/api/models is, per the models page, “a public catalog endpoint and does not require an Authorization header.” Cache it and refresh on a schedule.
  2. On the first failure, check membership. If the configured model ID is absent from the catalog, classify the event as model_delisted and stop. No backoff, no fallback that reuses the same ID.
  3. Author’s recommendation: make every write-capable step idempotent by task or request ID. No CometAPI page states this rule; the reasoning is that a retried refund or ticket creation that eventually succeeds is not recovery.
  4. Author’s recommendation: set an explicit stop condition. A suggested budget, not a documented one: two retries for a 429, one for a 5xx, zero for a delisted event. The documented samples allow five attempts; this is deliberately stricter. Halt the queue rather than draining it into a dead route.
  5. Log per failure. The rate-limit guide says to “Log route, model ID, status, and latency for each request.” Adding the request ID helps separate a retired model from a rate limit.
  6. Escalate with evidence. The error-code page’s support checklist includes the model ID, the “Sanitized request body JSON”, the exact error.message, and any request id.

Why this is not just naming discipline

The summary block makes replacement manual, and the 2026-09-15 removal took effect immediately rather than on a future shutdown date. The inference drawn here is that a removal can arrive without a scheduled window, at whatever hour traffic happens to hit it.

Open gap: the in-window changelog entries do not state which HTTP status a request to a removed model ID returns on CometAPI today. A captured response body for a delisted ID would settle it.

What does your retry classifier do when the model ID itself is the invalid part of the request?

Catalog membership has a cost shape that “check membership” hides. The models reference declares GET /api/models with no query parameters at all, and the documented response example returns the entire catalog in one body: success: true, page: 0, page_size: 0, total: 301. There is no documented ?id= lookup or per-ID endpoint, so the membership test resolves to fetching and comparing the full record set on every poll rather than testing one key.

That relocates the check. Membership is a scan rather than a key test, and its interval becomes the exposure window: a model delisted between two ticks stays routable until the next one, which the Topic’s own reading of the 2026-09-15 notice says arrived with immediate effect. The scan also inserts a second network dependency into the failure path, where a catalog call that returns 429 or times out has to be classified as something before it can answer the question it was called to answer.

Asserting the pinned ID where the model ID is already written down — deploy config, image build, job definition — keeps the runtime branch free of that call and fails the change in the pipeline instead of in traffic.

CometAPI’s own fallback guide already gives the delisted-model case a route, and it is not the halt the runbook describes. Its policy table carries a row for exactly this shape — “Verified model-unavailable, balance, or quota signal” — and the instruction attached to it is to “Add that exact signal to the classifier before you use it” (model fallback with CometAPI). The load-bearing word is verified: the docs acknowledge the signal exists and decline to name it.

The sample classifier shows what happens without a name. Its predicate is status is None or status in {408, 429} or (status >= 500 and code not in {"invalid_request", "invalid_request_error"}). A removed model ID that surfaces as a plain 500 carrying no invalid_request code satisfies the third clause, so the loop advances to the fallback model and a delisting becomes a silent substitution. 403 appears in neither the predicate nor this guide’s policy table, so it raises instead. Same underlying event, two behaviors, decided by a code the docs do not publish.