LearnGrok
Troubleshooting
FixIntermediateAPI errors

The Grok API says the model does not exist

The model string you sent does not match anything the API serves for your account. Usually a rename, a typo or an access difference.

2 min read

You might be seeing

  • The model does not exist
  • model_not_found
  • 404 on a chat completions request

Model identifiers are opaque strings, and the API cannot tell the difference between a typo, a retired model and a model your account cannot reach. Check in this order.

1. Compare against the current list

Open docs.x.ai models and compare your string character by character, including any suffix. Model names change more often than any other part of an integration, and a name that worked last quarter may simply no longer exist.

Do not ask Grok what models exist. It does not reliably know its own current lineup, for the same reason it does not know today's date.

2. Check where the string comes from

If the model name is hard-coded in more than one place, the one you are reading may not be the one being sent. Log the model name at the point of the request, not from configuration, so you see exactly what went out.

3. Check whether it is a naming collision

Suffixed variants exist for many families: different sizes, faster variants, snapshot-pinned names. Sending a family name where a specific identifier is required, or vice versa, produces this error even though the name looks right.

4. Check your account's access

Some models are limited to particular tiers, regions or programmes. The same string can resolve for one account and 404 for another, which makes "it works on my machine" especially misleading here. Confirm in the console which models your team can call.

5. Check you are calling the right host

Pointing an SDK at the wrong provider's base URL while sending an xAI model name produces a model-not-found rather than an authentication error, because the credential may be valid for that other provider. Verify base URL and model name belong to the same vendor.

Preventing the next one

Read the model name from a single configuration value, log it with every response, and subscribe to the release notes. A rename that is announced in advance only helps if someone reads the announcement.

What changes

The entire model lineup. Any list of names on a third-party page, including any example you may find elsewhere on this site, should be treated as illustrative. The docs are the list.

Quick question about the API?

Short answers from the API pages here, with the page itself one tap below. Limits, models and prices go to xAI’s documentation, because those change and this does not chase them.

Check this against xAI

Last checked against xAI’s own pages on 2026-08-20. Grok changes quickly; anything version-specific should be confirmed upstream before you rely on it.

More in API errors

Found something out of date?

Grok changes quickly and this page is a snapshot. If something here is wrong, or you know a better resource, send it over.

Suggest a link →

Advertise on LearnGrok

$420.69one-time, for a 30-day run

Square works best. PNG, JPEG or WebP, up to 2 MB.

Stripe on the next step. Live once approved.