503 model_not_found (wrong model ID, model not offered, or temporarily stopped)
Causes and fixes when Echo Token Station's API returns HTTP 503 and model_not_found (The model … does not exist or is temporarily unavailable). It is returned when the model ID has a typo, Echo does not offer the model, or Echo has temporarily stopped accepting requests for the model (for example, because of an upstream outage).
This error is returned when Echo does not offer a model with the model ID you specified, or has temporarily stopped accepting requests for it. The HTTP status is 503. If the model ID is wrong, sending the request again does not fix it.
Example
OpenAI format (/v1/chat/completions and so on):
{"error":{"code":"model_not_found","message":"The model gpt-99-nonexistent does not exist or is temporarily unavailable","type":"api_error"}}Anthropic format (/v1/messages):
{"type":"error","error":{"type":"api_error","message":"The model gpt-99-nonexistent does not exist or is temporarily unavailable"}}The OpenAI and Anthropic SDKs retry this error automatically up to 2 times before raising it. Claude Code keeps retrying for more than a minute, so the error takes a while to appear.
Common causes
- A typo in the model ID: Echo's model IDs are written the same way as the names in the provider's API. A difference of one character, such as a version number or a separator, causes this error
- A model that Echo does not offer: the provider has it, but Echo does not offer it, or no longer offers it
- The tool's default model ID is still in use: tools such as Claude Code call their own default ID when no model ID is set
- Temporarily stopped: Echo has temporarily stopped accepting requests for the model, for example because of an upstream outage. This is the case when the model ID is in the model list but you still get this error. You are not charged; send the request again after a few minutes to a few hours
If you restrict the models a key can use and call a model that is not selected for that key, you get 403 (This API key is not allowed to use the model <model ID>) instead of 503.
How to fix
- List the model IDs your key can use
curl "https://token.echohub.io/v1/models" \
-H "Authorization: Bearer $ECHO_API_KEY"- Copy an ID from the list exactly as it is into
modelin your request. The ID of each model is also in the model list - In Claude Code, check all four:
ANTHROPIC_MODEL,ANTHROPIC_DEFAULT_OPUS_MODEL,ANTHROPIC_DEFAULT_SONNET_MODELandANTHROPIC_DEFAULT_HAIKU_MODEL(Claude Code)
Related
- Model list: the models we offer and their IDs
- API reference: how model IDs are written,
GET /v1/models - Errors and fixes: errors to retry and errors not to retry