Submit a toolSubmit

OpenAI returned model_not_found (404). Fix the model ID and project access

A 404 `model_not_found` means this model is not available to the request, and retrying the same ID on the same project usually fails. A related `not_found_error` is the same class of failure. Confirm the exact model string, that the key’s project is allowed to use it, and that the model wasn’t deleted or left off a project allowlist. Short answer: 5 steps. 1) Read it as an access or ID problem, not a blip; 2) Copy the model ID from the models catalog; 3) Confirm the key’s project can see that model; 4) Check project model allowlists and denylists; 5) Retry once with a known-good model, then restore the target.

Last updated: · This page is the decision checklist; the tools list for “Fix an OpenAI API model_not_found” is a separate URL.

The problem: A 404 `model_not_found` means this model is not available to the request, and retrying the same ID on the same project usually fails. A related `not_found_error` is the same class of failure. Confirm the exact model string, that the key’s project is allowed to use it, and that the model wasn’t deleted or left off a project allowlist.

How do I fix this: OpenAI returned model_not_found (404)?

  1. Read it as an access or ID problem, not a blip

    OpenAI’s Agents API error table lists HTTP 404 `not_found_error` / `model_not_found` when the resource or model isn’t available to the request. The documented recovery is to check the ID, model, project, and whether the resource was deleted—not to hammer retries. Docs: https://developers.openai.com/api/docs/guides/agents-api/errors

  2. Copy the model ID from the models catalog

    Open the models docs and use the exact published ID (for example `gpt-6.1-terra`), including dots and hyphens. Typos, old snapshot names, or ChatGPT marketing labels that aren’t API IDs commonly 404. Catalog: https://developers.openai.com/api/docs/models

  3. Confirm the key’s project can see that model

    List models with the same credentials you use in production (`GET /v1/models` with your Bearer key and, when needed, `OpenAI-Organization` / `OpenAI-Project` headers). If the model is missing from that list, the project or org doesn’t have it—switching keys or projects often fixes a “works in playground, fails in CI” mismatch.

  4. Check project model allowlists and denylists

    Orgs can restrict projects with model permissions: `allow_list` permits only listed model IDs; `deny_list` blocks listed IDs while allowing other available models. An allowlist that omits your model returns not-found style failures even when the model exists for the org. Admins update permissions in the dashboard or Admin APIs. Guide: https://developers.openai.com/api/docs/guides/admin-apis

  5. Retry once with a known-good model, then restore the target

    Send a minimal request with a model you know the project allows. If that succeeds, put the intended ID back only after it’s on the allowlist (or removed from a denylist) and visible in `/v1/models`. If every model 404s, re-check auth and project headers before assuming an outage—401/403 are separate from `model_not_found`. Error-code overview: https://developers.openai.com/api/docs/guides/error-codes

Which tools are best to fix an OpenAI API model_not_found?

Agents API errors

Official meaning of 404 not_found_error / model_not_found and the check-ID-project-deleted recovery path.

Admin APIs

Project model allow_list / deny_list controls that can hide a model from a key’s project.

Models catalog

Canonical model IDs to copy into requests after access is fixed.

Error codes

Broader API error overview so you don’t confuse auth or quota failures with model_not_found.

All tools for “Fix an OpenAI API model_not_found” →

Related fixes

See also AI tools launched today on the daily board.