Reference

API errors

When the gateway rejects or cannot complete a request, it answers with a JSON problem object (RFC 9457). The type field links to the entry on this page.

HTTP 429
{
  "type": "https://tokenflow.dev/problems/quota_exceeded",
  "title": "quota_exceeded",
  "status": 429,
  "code": "quota_exceeded",
  "detail": "monthly token quota of … is used up until …",
  "retryable": false
}

Errors with "retryable": true are safe to retry; honour the Retry-After header when it is present.

invalid_json 400

The request body is not a JSON object.

What to do: Send a JSON object as the body, with Content-Type: application/json.

missing_model 400

The request does not name a model.

What to do: Set the model field, for example qwen3.8-27b.

invalid_model 400

The model name is longer than the gateway accepts.

What to do: Use a model ID from GET /v1/models.

media_not_allowed 400

The request carries media the gateway does not accept: more than 16 images, an image over its size or pixel limit, a remote URL, video, or a media-processing override.

What to do: Send at most 16 inline PNG, JPEG, WebP or GIF images and trim older screenshots from the history. The detail field says which limit was hit.

invalid_request 400

The console playground can’t send this conversation, or a transcription request has a field the gateway does not accept. The playground sends at most 100 messages, with text and inline images only (no tools or remote image links); a transcription takes file, model, language, response_format and temperature.

What to do: In the playground, clear the chat or shorten it, and use the API for tools. For a transcription, the detail field names the field to fix.

invalid_multipart 400

A transcription request whose body is not a readable multipart/form-data form.

What to do: Upload the audio as a form field named file, as the OpenAI SDKs do.

unsupported_audio 400

The uploaded file is not audio the gateway can measure: it takes PCM WAV only, 16-bit integer or 32-bit float, one or two channels, 8–48 kHz.

What to do: Convert the audio first, for example ffmpeg -i in.mp3 -ac 1 -ar 16000 out.wav. The detail field says what was wrong.

audio_too_long 400

The audio is longer than one transcription request takes (30 seconds).

What to do: Split the audio at pauses and send the parts as separate requests.

voice_not_found 400

The speech model has no preset voice by that name. The error lists the voices it has.

What to do: Use one of the listed voices, or leave voice out and describe the voice in instructions.

voice_not_ready 409

The voice is not ready for synthesis.

What to do: Check its status before retrying.

voice_pilot_unavailable 503

The voice service is temporarily unavailable.

What to do: Retry later.

voice_unavailable 503

The named voice exists but cannot speak right now; it is served by one node, which may be busy or under maintenance.

What to do: Retry after the Retry-After interval, or use a preset voice.

speech_busy 503

Every speech node is synthesizing other requests and the wait ran out.

What to do: Retry after the retry-after interval.

format_unavailable 503

The speech nodes serving right now cannot produce the response_format you asked for, usually for a few minutes while a node is being updated.

What to do: Retry after the retry-after interval. Meanwhile ask for wav (every node produces it), or for a stream ask for opus.

input_too_long_for_nodes 503

Your input is within the published limit, but none of the speech nodes serving right now takes text that long, usually for a few minutes while a node is being updated. The detail says how many characters they take.

What to do: Retry after the retry-after interval, or split the text into parts no longer than the detail says and request each.

speed_unavailable 503

You asked for a speed other than 1, but none of the speech nodes serving right now can apply it, usually for a few minutes while a node is being updated.

What to do: Retry after the retry-after interval, or send the request with speed 1.

unauthorized 401

The API key is missing, unknown or revoked, or its organization is disabled.

What to do: Send your key as Authorization: Bearer or x-api-key. If it still fails, write to support.

tenant_disabled 403

The console playground can’t act for this organization because it is disabled.

What to do: Write to support.

model_not_found 404

No model with this name exists for your key.

What to do: Pick a model from GET /v1/models.

not_found 404

The path or method is not part of the API.

What to do: Use /v1/chat/completions, /v1/completions, /v1/responses, /v1/messages or GET /v1/models.

request_too_large 413

The request body is over the size limit (12 MiB) or the images inside it are too large.

What to do: Send fewer or smaller images, or a shorter history.

quota_exceeded 429

Your organization has used its monthly token quota.

What to do: The detail field says when the quota resets. Write to support to raise it.

speech_quota_exceeded 429

Your organization has used its monthly transcription or speech quota, or speech is not enabled for it yet.

What to do: Do not retry. The detail field says which quota and when it resets. Write to support to enable speech or raise the quota.

concurrency_limit_exceeded 429

This model already has as many transcription or speech requests in flight as it takes: either from your organization, or from all external organizations together. The capability page lists both limits for each model.

What to do: Wait for the time in the Retry-After header and try again. If it keeps happening, keep fewer requests in flight at once.

speech_rate_limited 429

Your organization sent transcription or speech requests to this model at a sustained high rate. This is an approximate safeguard against runaway clients, not a published per-minute allowance; the limits you can plan around are the concurrent requests and the monthly cap on the capability page.

What to do: Wait for the time in the Retry-After header, then lower your request rate; stay within the concurrent requests the capability page allows.

rate_limited 429

Too many requests with unknown keys came from your address.

What to do: Wait for the time in the Retry-After header and check that your key is correct.

client_closed 499

Your client closed the connection before the response finished.

What to do: Nothing to fix on our side. Tokens already sent are billed.

speech_gate_unavailable 503

We could not check your organization's speech limits, so the request was not sent.

What to do: Retry after the time in the Retry-After header.

upstream_failed 502

Every node that could serve the model failed before the response started.

What to do: Retry after the time in Retry-After. Quote x-tokenflow-request-id if you contact support.

control_unavailable 503

The gateway could not read its routing state for a moment.

What to do: Retry after the time in Retry-After.

no_serving_node 503

No node is currently serving this model for your organization.

What to do: Retry after the time in Retry-After. If it lasts, write to support.