Skip to content

Error codes

This page lists every error code of the Inola API: its HTTP status, the exact message text, what it means and what to do. Each code has its own anchor, for example errors/#rate_limited. To read it, you need nothing but the response of a failed request.

A failed request returns an HTTP status of 400 or higher and a JSON body with one error object:

{"error": {"code": "invalid_request", "message": "`options.threshold` must be a number in [0, 1]."}}
fieldtypemeaning
error.codestringthe machine-readable code; one of the codes below
error.messagestringa text for a person; the texts below are the exact ones the API sends
error.paramstringthe request field to fix, on some input errors; absent otherwise
error.lineintegerthe line of a batch input file with the problem; only for a bad line
error.doc_urlstringwhen present, a link to the code’s section on this page
error.limit, error.plan, error.upgradeobject, string, objecton 429 limit errors: which limit was reached and what the next plan allows; see Limits and retries

Every response, failed or not, carries the X-Request-Id header. Quote it when you contact support at support@inola.ai. Rejected requests are not billed; see Tokens and billing.

In the message texts below, <...> marks a value the API fills in, such as a number or a model name.

statuscodeconditionrepeat the same request
400invalid_requestThe request is not validno
400batch_onlyThe model is available only through batches in your regionno
400online_onlyThe model is not available through batches in your regionno
401invalid_api_keyThe API key is missing, unknown or revokedno
401api_key_expiredThe API key has expiredno
402payment_requiredNo balance left or a payment failedno
403insufficient_scopeThe API key lacks the permissionno
403account_suspendedThe organization is suspendedno
403region_not_supportedThe service is not available in the regionno
404model_not_foundNo such model, or not on your planno
404not_foundNo such endpoint, file or batchno
410version_retiredThe model version is retiredno
410model_retiredThe model is retiredno
413too_longThe document is longer than the model acceptsno
413body_too_largeThe request body is too largeno
429rate_limitedRequests per minute limit reachedyes, after Retry-After
429token_rate_limitedTokens per minute limit reachedyes, after Retry-After
429monthly_token_limitMonthly tokens of the model used upno
429monthly_document_limitMonthly documents of the model used upno
429spend_limit_reachedMonthly spend limit reachedno
429batch_queue_limitUnfinished batch work limit reachedno
429unused_uploads_limitToo many unused uploadsno
429batch_window_limitBatch volume per completion window reachedno
429overloadedTemporarily over capacityyes, after Retry-After
429maintenancePaused for maintenanceyes, after Retry-After
429serverless_coldThe model is not running nowyes, after Retry-After
500internal_errorInternal erroryes, with growing pauses
503billing_unsupportedThe model cannot be billed at the momentyes, with growing pauses
503unavailableTemporarily unavailableyes, after Retry-After
503queue_fullThe batch cannot be finished in timeno
507storage_fullThe batch storage is fullyes, after Retry-After

HTTP status: 400 · The request is not valid.

Messages:

  • The request is not valid.
  • The body is not a JSON object.
  • The body is not valid JSON.
  • The body could not be read.
  • `model` must be a non-empty string.
  • `version` must be a string.
  • `input` must be an object.
  • `options` must be an object.
  • `input.state` must be a non-empty string, object or array.
  • `input.state` must be a string, an object or an array.
  • `input.state` holds 2 documents; this model checks one document per request: send each document in its own request or as its own line of a batch.
  • `input.state` and `input.text` are two forms of the document: send one of them.
  • `input.text` must be a string.
  • `options.threshold` must be a number in [0, 1].
  • `input.questions` must be a non-empty object.
  • `input.questions.page.type` must be "noul": a detector answers yes/no questions.
  • `input.questions.page.instructions` must name a kind of detection cordon-mini runs: ipi ("dpi" is not one).
  • `input.questions.page.instructions` must name the kind of detection, such as "ipi".
  • `question` must name a kind of detection cordon-mini runs: ipi ("dpi" is not one).
  • Tools are not supported: these models answer one closed question, they do not call tools.
  • `n` must be 1: the model gives one answer.
  • `response_format.json_schema.schema.properties` must hold exactly one property: the answer to the one question.
  • `response_format.json_schema.schema.properties.answer`: free text is not supported, the models give a closed answer; give the options as `enum`.
  • `text` must be a string.
  • `threshold` must be a number in [0, 1].
  • `input.input` must be a non-empty string or an array of non-empty strings.
  • `options.encoding_format` must be "float" or "base64".
  • `input` must be a non-empty string or an array of non-empty strings.
  • `encoding_format` must be "float" or "base64".
  • Token inputs are not supported; send text.
  • This model does not support specifying dimensions.
  • Too many inputs in one request.
  • The request uses a feature this model does not support.
  • multipart/form-data with `purpose` and `file` is expected.
  • `file` is required.
  • `purpose` must be "batch" and come before the file.
  • The multipart body could not be read.
  • The file could not be read.
  • The file has no requests.
  • A file holds at most <n> requests.
  • Line <n>: <problem>.
  • `input_file_id` must be a non-empty string.
  • `metadata` must be an object.
  • `endpoint` must be <endpoint> for this model.
  • The file cannot be billed: <reason>.
  • The batch service refused the request. Quote the X-Request-Id to support.

What it means. The body is not valid JSON, a required field is missing or empty, a field has the wrong type or a value outside the allowed range, or a batch input file has a bad line. error.param names the field when it is known; for a batch file, error.line gives the line number.

What to do. Fix the request as the message says and send it again. Repeating the same request returns the same error.

Repeat the same request: no.

HTTP status: 400 · The model is available only through batches in your region.

What it means. A real-time request named a model that is available only through batches in your region (the processing region of your organization). GET /v1/models shows availability: batch for such a model.

What to do. Send the documents as a batch (POST /v1/files, then POST /v1/batches), or use a model with availability: online.

Repeat the same request: no.

HTTP status: 400 · The model is not available through batches in your region.

What it means. POST /v1/batches named a file whose model is available in your region only for real-time requests, not through batches.

What to do. Send the documents as real-time requests, or use a model that GET /v1/models lists with batches available.

Repeat the same request: no.

HTTP status: 401 · The API key is missing, unknown or revoked.

Message:

  • Invalid API key.

What it means. The Authorization: Bearer header is missing, the key is not known, or the key was revoked.

What to do. Send a valid key in Authorization: Bearer <key>. Revoked keys do not come back: create a new key in the console.

Repeat the same request: no.

HTTP status: 401 · The API key has expired.

Message:

  • The API key has expired.

What it means. The key is past its expiry date.

What to do. Create a new key in the console, or extend the expiry date of this one.

Repeat the same request: no.

HTTP status: 402 · No balance left or a payment failed.

Messages:

  • The account has no funds left. Add credits or a card in the console.
  • The plan's paid period has ended. Top up the balance to renew it.
  • The account cannot cover the batch's estimated cost of <amount>. Add credits or a card in the console.

What it means. The organization has no balance left, a payment failed, the paid period of the plan has ended, or the balance does not cover the estimated cost of a batch. For a batch, error.estimate describes the estimate. Amounts are in euros (EUR), without a currency sign.

What to do. Top up the balance or update the payment method in the console (Billing), then send the request again. Programs report this error to a person instead of retrying it silently.

Repeat the same request: no.

HTTP status: 403 · The API key lacks the permission.

Message:

  • The API key does not have the scope this endpoint needs.

What it means. The key does not have the permission (scope) this endpoint needs: inference for detection, decisions, files and batches, models:read for GET /v1/models.

What to do. Use a key with the permission, or create one in the console.

Repeat the same request: no.

HTTP status: 403 · The organization is suspended.

Message:

  • The account is suspended.

What it means. The organization the key belongs to is suspended.

What to do. Contact support at support@inola.ai and quote the X-Request-Id of the response.

Repeat the same request: no.

HTTP status: 403 · The service is not available in the region.

Message:

  • Inola is not available in your region.

What it means. The request comes from a country or territory where the service is not offered. The check runs before the API key is read. Country data: IP Geolocation by DB-IP (CC BY 4.0).

What to do. The API does not serve requests from this region.

Repeat the same request: no.

HTTP status: 404 · No such model, or not on your plan.

Messages:

  • The model is not available to this API key.
  • Model <model> is not available on <endpoint>.
  • The file's model is not available to this API key any more.

What it means. The model name is unknown, the model is not on the organization’s plan, or a compatibility endpoint does not serve this model (each one serves only the models listed on the Compatibility page).

What to do. Check the names listed by GET /v1/models for this key.

Repeat the same request: no.

HTTP status: 404 · No such endpoint, file or batch.

Messages:

  • Not found.
  • No such file.

What it means. The path is not an endpoint of the API, or the file or batch id does not exist for this organization (it may have been deleted or have expired).

What to do. Check the path and the id. Files and batches are visible to every key of the organization that created them.

Repeat the same request: no.

HTTP status: 410 · The model version is retired.

Message:

  • This model version is retired.

What it means. The requested version is no longer served. Retired versions are not listed by GET /v1/models.

What to do. Move to a version listed by GET /v1/models (status active or preview), or send the plain model name to get the default version.

Repeat the same request: no.

HTTP status: 410 · The model is retired.

Messages:

  • This model is retired and no longer served. See GET /v1/models for the models of your API key.
  • The file's model is retired and no longer served.

What it means. Every version of the model is retired: the model is removed from the catalog and is no longer served. GET /v1/models no longer lists it; the changelog names the model to use instead.

What to do. Move to a model listed by GET /v1/models; for injection-detector-mini use cordon-mini (the same detector and request).

Repeat the same request: no.

HTTP status: 413 · The document is longer than the model accepts.

Message:

  • The document is longer than the model accepts.

What it means. The document is longer than the model’s maximum length in tokens (context_window of the version in GET /v1/models).

What to do. Split the document into parts within the model’s length and check each part.

Repeat the same request: no.

HTTP status: 413 · The request body is too large.

Messages:

  • The request body is too large.
  • The file is larger than the batch input limit.

What it means. The request body, or an uploaded batch file, is larger than the API accepts.

What to do. Send a smaller body: split the document, or split the batch file into several files.

Repeat the same request: no.

HTTP status: 429 · Requests per minute limit reached.

Message:

  • <plan> plan limit reached: <value> requests/min for <model>.

What it means. The organization reached the requests-per-minute limit of its plan for this model. The body names the limit (error.limit) and, when there is one, what the next plan allows (error.upgrade).

What to do. Wait for Retry-After seconds and send the request again; spread requests over time using the X-RateLimit-* headers, or move to a plan with a higher limit.

Repeat the same request: yes, after Retry-After.

HTTP status: 429 · Tokens per minute limit reached.

Message:

  • <plan> plan limit reached: <value> tokens/min for <model>.

What it means. The organization reached the tokens-per-minute limit of its plan for this model. Long documents usually reach this limit before the requests-per-minute limit.

What to do. Wait for Retry-After seconds and send the request again, or move to a plan with a higher limit.

Repeat the same request: yes, after Retry-After.

HTTP status: 429 · Monthly tokens of the model used up.

Message:

  • <plan> plan limit reached: <value> tokens/month for <model>.

What it means. The organization used the monthly tokens of this model that its plan includes. error.limit.reset_at and Retry-After give the start of the next billing period.

What to do. Wait for the next billing period or move to a plan with a larger allowance. Repeating the request earlier returns the same error.

Repeat the same request: no.

HTTP status: 429 · Monthly documents of the model used up.

Message:

  • <plan> plan limit reached: <value> documents/month for <model>.

What it means. On a plan that counts documents instead of tokens, the organization used the monthly documents of this model that the plan includes. error.limit.reset_at and Retry-After give the start of the next billing period.

What to do. Wait for the next billing period or move to a plan with a larger allowance.

Repeat the same request: no.

HTTP status: 429 · Monthly spend limit reached.

Messages:

  • Monthly spend limit reached.
  • Monthly spend limit reached. Raise it at <console billing page>#spend-limit

What it means. The organization reached the monthly spend limit it set itself in the console. error.limit.reset_at and Retry-After give the start of the next billing period.

What to do. Raise the spend limit in the console (Billing), or wait for the next billing period.

Repeat the same request: no.

HTTP status: 429 · Unfinished batch work limit reached.

Message:

  • <plan> plan limit reached: <value> characters of unfinished batch work.

What it means. POST /v1/batches was refused: the unfinished batch work of the organization, across all models, would exceed the limit of its plan.

What to do. Create the batch after earlier batches finish, split the file into smaller batches, or move to a plan with a higher limit.

Repeat the same request: no.

HTTP status: 429 · Too many unused uploads.

Message:

  • Too many uploaded files that no batch uses (a limit of this API key and of the organization's plan). Create batches from them or delete them (DELETE /v1/files/{id}), then upload again.

What it means. POST /v1/files was refused: the files not used in any batch yet add up to a limit: of this API key (by default two files of the maximal size: one ready for a batch and one being prepared) or of the whole organization (the plan’s batch upload volume, counting every key; uploads in progress count with their declared size). Other organizations are not affected. Nothing was stored or billed.

What to do. Create batches from the uploaded files (POST /v1/batches) or delete the ones you do not need (DELETE /v1/files/{id}), then upload again. Files nobody uses are deleted automatically after a day.

Repeat the same request: no.

HTTP status: 429 · Batch volume per completion window reached.

Message:

  • <plan> plan limit reached: <value> characters of batch work per completion window.

What it means. POST /v1/batches was refused: the batch work the organization submitted within one completion window would exceed the limit of its plan. The window slides: room frees up as earlier batches leave it.

What to do. Create the batch later, split it into smaller batches spread over time, or move to a plan with a higher limit.

Repeat the same request: no.

HTTP status: 429 · Temporarily over capacity.

Message:

  • The service is at capacity. Retry after the time in Retry-After.

What it means. The service is temporarily over capacity. This is not a limit of your plan: the code tells it apart from the plan’s limits (rate_limited, token_rate_limited and the others), which answer 429 too.

What to do. Wait for Retry-After seconds and send the request again.

Repeat the same request: yes, after Retry-After.

HTTP status: 429 · Paused for maintenance.

Message:

  • The service is temporarily paused for maintenance. Retry after the time in Retry-After.

What it means. The service is briefly paused for maintenance. Nothing is wrong with your request, key or plan.

What to do. Wait for Retry-After seconds and send the request again.

Repeat the same request: yes, after Retry-After.

HTTP status: 429 · The model is not running now.

Message:

  • This model is not running now. If the response has Retry-After, it is starting: retry after that time; otherwise send the documents through the Batch API (/v1/files and /v1/batches).

What it means. A real-time request named a model none of whose capacity is running right now, and the model can be started on demand. This can happen to any model (most often to one that runs on on-demand capacity only, but also to any other while its regular capacity is down). Depending on the service’s setting, such a request is either refused at once, or held while the model starts and answered when it is ready — the first request after an idle period can then take several minutes (up to about ten). A key of the Free plan never starts a model: its real-time request is answered while the model is running and refused at once with this error otherwise, whatever the setting. This error comes when the request is refused at once, when the model did not become ready within that wait, or when it cannot be started now. Nothing was run or billed.

What to do. When the response carries Retry-After, the model is starting: send the request again after that many seconds. Without it there is no estimate: send the documents as a batch (POST /v1/files, then POST /v1/batches) — batches are always accepted for this model. A client of a paid plan should allow a response time of minutes (a timeout of at least 11 minutes) for a real-time request that finds the model not running.

Repeat the same request: yes, after Retry-After.

HTTP status: 500 · Internal error.

What it means. The request failed on our side.

What to do. Send the request again with growing pauses between attempts. If it keeps failing, contact support at support@inola.ai and quote the X-Request-Id.

Repeat the same request: yes, with growing pauses.

HTTP status: 503 · The model cannot be billed at the moment.

Message:

  • The model cannot be billed at the moment.

What it means. The request cannot be billed under the organization’s plan at the moment, so it is not served. Nothing is charged.

What to do. Send the request again later. If it persists, contact support at support@inola.ai and quote the X-Request-Id.

Repeat the same request: yes, with growing pauses.

HTTP status: 503 · Temporarily unavailable.

Message:

  • The service is temporarily unavailable. Retry after the time in Retry-After.

What it means. The service, or the requested model, is temporarily not served.

What to do. Wait for Retry-After seconds and send the request again.

Repeat the same request: yes, after Retry-After.

HTTP status: 503 · The batch cannot be finished in time.

What it means. POST /v1/batches was refused: the batch could not be finished within the completion window. Nothing was run or billed.

What to do. Create the batch later, or split it into smaller batches.

Repeat the same request: no.

HTTP status: 507 · The batch storage is full.

Message:

  • The batch storage is full, so new files and batches are not accepted now. Retry after the time in Retry-After.

What it means. POST /v1/files or POST /v1/batches was refused: the storage for batch files is short of room for one more batch, so no new file or batch is accepted until space is freed. This is not a limit of your plan. Batches already accepted keep running and their results are kept; real-time requests are not affected. Nothing was stored or billed.

What to do. Wait for Retry-After seconds and send the request again. The service frees space on its own; no action is needed on your side. If the error lasts for hours, contact support at support@inola.ai and quote the X-Request-Id.

Repeat the same request: yes, after Retry-After.