Bản lưu ngày / Snapshot of 2026-11-05 · Xem bản mới nhất / See the latest version
WanduraDocsBeta
BetaThese docs are in beta and change often. Something wrong, unclear or missing? Tell us.
Change history

History: Errors

Every change to this page, newest first. Expand an entry to see what changed.

← Errors

  1. 27 Oct 2026 · +11 −3 lines
    Show changes
    ⋯
      | 500 | [`INTERNAL_ERROR`](#jobs-internal-error) | true |
      | 503 | [`SERVICE_UNAVAILABLE`](#jobs-service-unavailable) | true |
    + | 503 | [`DEADLINE_UNREACHABLE`](#jobs-deadline-unreachable) | true |
      
      #### `INVALID_INPUT` {#jobs-invalid-input}
    ⋯
      
      #### `JOB_NOT_CANCELLABLE` {#jobs-job-not-cancellable}
    - `409`, do not retry. Only queued jobs can be cancelled.
    + `409`, do not retry. The job has already ended (`succeeded`, `failed`, `timeout` or `cancelled`): there is nothing left to cancel. A `queued` or `processing` job can be cancelled (see [Deadline, ETA and cancel](jobs.md#deadline)). The `message` still reads "Only queued jobs can be cancelled; …", as it always did.
      
      #### `STYLE_OFF` {#jobs-style-off}
    ⋯
      `503`, retry. This style cannot run on a live key right now (test keys still return a sample). Or the job queue is briefly unavailable: nothing was created or charged; retry after `Retry-After` with the same `Idempotency-Key`.
      
    + #### `DEADLINE_UNREACHABLE` {#jobs-deadline-unreachable}
    + `503`, retry later. A video job whose deadline (`timeout_seconds` / `deadline_at`, or your product's default deadline) is shorter than it takes at its quickest. The `message` says how long it takes at least and how long the deadline allows. Nothing was created or held. Send a later deadline, or retry after the `Retry-After` header (seconds). See [Deadline, ETA and cancel](jobs.md#deadline).
    + 
      A job that ends without a result (`failed`, `timeout`) is not an HTTP error: its `error.code` is listed under [Statuses](jobs.md#statuses) on the Jobs API page.
      
    ⋯
      | 500 | [`InternalServiceError`](#ref-internal-service-error) | Yes |
      | 503 | [`ServiceUnavailable`](#ref-service-unavailable) | Yes |
    + | 503 | [`DeadlineUnreachable`](#ref-deadline-unreachable) | Later, or with a later deadline |
      
      Nothing is made or held when a request is refused. A task that ends without a video is not an HTTP error: it reads `failed` or `expired` and is free (see [The task object](wandura-ref-1-0.md#task)).
    ⋯
      
      #### `NotFound` {#ref-not-found}
    - `404`, do not retry. No task with that id for this key's product, or an endpoint that is not here (listing and deleting tasks).
    + `404`, do not retry. No task with that id for this key's product, or an endpoint that is not here (listing tasks).
      
      #### `Conflict` {#ref-conflict}
    - `409`, do not retry. This `id` was already used with a different body. Use a new `id` for a new task (see [Same request, same task](wandura-ref-1-0.md#idempotency)).
    + `409`, do not retry. This `id` was already used with a different body: use a new `id` for a new task (see [Same request, same task](wandura-ref-1-0.md#idempotency)). Or `DELETE` on a task that has already ended: there is nothing left to cancel.
      
      #### `RateLimitExceeded` {#ref-rate-limit-exceeded}
    ⋯
      #### `ServiceUnavailable` {#ref-service-unavailable}
      `503`, retry. The task queue is briefly unavailable, or a base64 image could not be stored. Nothing was made or held. Retry after `Retry-After` when it is there, or send the image as an https link.
    + 
    + #### `DeadlineUnreachable` {#ref-deadline-unreachable}
    + `503`. The task's deadline (`execution_expires_after` / `deadline_at`, or your product's default deadline) is shorter than a task takes at its quickest. Nothing was made or held. Send a later deadline, or retry after the `Retry-After` header (see [Deadline and cancel](wandura-ref-1-0.md#deadline)).
  2. 26 Oct 2026 · +3 −2 lines
    Show changes
    ⋯
      
      #### `key_scope` {#key-scope}
    - `403`, do not retry. **Rolling out.** This key belongs to an org's UA wallet: it works only at `POST /api/v3/contents/generations/tasks` and `GET /api/v3/contents/generations/tasks/{id}` ([Wandura Ref 1.0](wandura-ref-1-0.md)). Use an App key for everything else. The Jobs API answers the same case with [`FORBIDDEN`](#jobs-forbidden). 
    + `403`, do not retry. This key belongs to an org's UA wallet: it works only at `POST /api/v3/contents/generations/tasks` and `GET /api/v3/contents/generations/tasks/{id}` ([Wandura Ref 1.0](wandura-ref-1-0.md)). Use an App key for everything else. The Jobs API answers the same case with [`FORBIDDEN`](#jobs-forbidden).
    + 
      #### `style_not_found` {#style-not-found}
      `404`, do not retry. No style with that id for your org (or not public).
    ⋯
      ## Wandura Ref 1.0 errors {#ref-errors}
      
    - **Rolling out.** [Wandura Ref 1.0](wandura-ref-1-0.md) (`/api/v3/contents/generations/tasks`) answers errors in the shape of the video task API it stands in for: `{"error": {"code", "message", "param"}}`, with `param` only on `400`. Its codes:
    + [Wandura Ref 1.0](wandura-ref-1-0.md) (`/api/v3/contents/generations/tasks`) answers errors in the shape of the video task API it stands in for: `{"error": {"code", "message", "param"}}`, with `param` only on `400`. Its codes:
      
      | HTTP | `code` | Retry? |
    ⋯
  3. 26 Oct 2026 · +6 −2 lines
    Show changes
    ⋯
      |---|---|---|
      | 400 | [`InvalidParameter`](#ref-invalid-parameter) | No |
    + | 400 | [`UnsupportedRequest`](#ref-unsupported-request) | No: use the model you used before |
      | 401 | [`AuthenticationError`](#ref-authentication-error) | No |
      | 402 | [`InsufficientBalance`](#ref-insufficient-balance) | No |
    ⋯
      
      #### `InvalidParameter` {#ref-invalid-parameter}
    - `400`, do not retry. The body breaks a [limit](wandura-ref-1-0.md#limits); `param` names the field (`model`, `content`, `duration`, `resolution`, `id`, `callback_url` or `body`). Common causes: `model` is not `wandura-ref-1-0`, `duration` is a string, a link is still a placeholder, `@Image3` with two images, more than 10 images or more than one video, a base64 video or audio, a `callback_url` that is not public https. A `callback_url` is also refused while the product has no signing secret (see [Callback](wandura-ref-1-0.md#callback)). Several problems are listed in one `message`, separated by `; `; `param` names the first.
    + `400`, do not retry. The body breaks a [limit](wandura-ref-1-0.md#limits); `param` names the field (`model`, `content`, `duration`, `resolution`, `id`, `callback_url` or `body`). Common causes: `model` is not `wandura-ref-1-0`, `duration` is a string, a link is still a placeholder, `@Image3` with two images, more than 10 images or more than one video, a base64 video or audio, a `callback_url` that is not public https. A `callback_url` is also refused while the product has no signing secret (see [Callback](wandura-ref-1-0.md#callback)). Several problems are listed in one `message`, separated by `; `; `param` names the field of the first.
      
    + #### `UnsupportedRequest` {#ref-unsupported-request}
    + `400`, do not retry here. The request is valid, but Wandura Ref 1.0 does not make it yet (see [What it makes](wandura-ref-1-0.md#scope)): `resolution` `1080p` (`param`: `resolution`), no reference video, or several photos + a clip that is not an edit (`param`: `content`). Nothing was created or held. **Send the same request to the model you used before.** Some cases show only after the task started (the number of people in the photo and in the clip differ, or the clip cannot be used): the task then ends `failed` with `error.code` `UnsupportedRequest`, free. Handle both the same way.
    + 
      #### `AuthenticationError` {#ref-authentication-error}
      `401`, do not retry. No key, or an unknown, revoked or expired key. Send `Authorization: Bearer <your Wandura key>`.
    ⋯
      
      #### `AccessDenied` {#ref-access-denied}
    - `403`, do not retry. A read-only key sends a task, or the key is limited to a list of styles and may not run Wandura Ref 1.0. Use a key without those limits.
    + `403`, do not retry. A read-only key sends a task. Use a key that may write. A key limited to a list of styles still runs Wandura Ref 1.0.
      
      #### `NotFound` {#ref-not-found}
    ⋯
  4. 26 Oct 2026 · +53 −1 lines
    Show changes
    ⋯
      | 403 | [`insufficient_scope`](#insufficient-scope) | No |
      | 403 | [`style_not_allowed`](#style-not-allowed) | No |
    + | 403 | [`key_scope`](#key-scope) | No |
      | 404 | [`style_not_found`](#style-not-found) | No |
      | 404 | [`run_not_found`](#run-not-found) | No |
    ⋯
      `403`, do not retry. **Rolling out.** This key may run only some styles, and this is not one of them. Use a key that lists it, or ask your org admin.
      
    - A `403` only comes from a key made with a permission or a list of allowed styles (see [API keys](concepts.md#api-keys)). A key made without them never gets one.
    + Apart from `key_scope`, a `403` only comes from a key made with a permission or a list of allowed styles (see [API keys](concepts.md#api-keys)). A key made without them never gets one.
      
    + #### `key_scope` {#key-scope}
    + `403`, do not retry. **Rolling out.** This key belongs to an org's UA wallet: it works only at `POST /api/v3/contents/generations/tasks` and `GET /api/v3/contents/generations/tasks/{id}` ([Wandura Ref 1.0](wandura-ref-1-0.md)). Use an App key for everything else. The Jobs API answers the same case with [`FORBIDDEN`](#jobs-forbidden). 
      #### `style_not_found` {#style-not-found}
      `404`, do not retry. No style with that id for your org (or not public).
    ⋯
      
      A job that ends without a result (`failed`, `timeout`) is not an HTTP error: its `error.code` is listed under [Statuses](jobs.md#statuses) on the Jobs API page.
    + 
    + ## Wandura Ref 1.0 errors {#ref-errors}
    + 
    + **Rolling out.** [Wandura Ref 1.0](wandura-ref-1-0.md) (`/api/v3/contents/generations/tasks`) answers errors in the shape of the video task API it stands in for: `{"error": {"code", "message", "param"}}`, with `param` only on `400`. Its codes:
    + 
    + | HTTP | `code` | Retry? |
    + |---|---|---|
    + | 400 | [`InvalidParameter`](#ref-invalid-parameter) | No |
    + | 401 | [`AuthenticationError`](#ref-authentication-error) | No |
    + | 402 | [`InsufficientBalance`](#ref-insufficient-balance) | No |
    + | 403 | [`AccessDenied`](#ref-access-denied) | No |
    + | 404 | [`NotFound`](#ref-not-found) | No |
    + | 409 | [`Conflict`](#ref-conflict) | No |
    + | 429 | [`RateLimitExceeded`](#ref-rate-limit-exceeded) | Yes |
    + | 429 | [`QuotaExceeded`](#ref-quota-exceeded) | No |
    + | 500 | [`InternalServiceError`](#ref-internal-service-error) | Yes |
    + | 503 | [`ServiceUnavailable`](#ref-service-unavailable) | Yes |
    + 
    + Nothing is made or held when a request is refused. A task that ends without a video is not an HTTP error: it reads `failed` or `expired` and is free (see [The task object](wandura-ref-1-0.md#task)).
    + 
    + #### `InvalidParameter` {#ref-invalid-parameter}
    + `400`, do not retry. The body breaks a [limit](wandura-ref-1-0.md#limits); `param` names the field (`model`, `content`, `duration`, `resolution`, `id`, `callback_url` or `body`). Common causes: `model` is not `wandura-ref-1-0`, `duration` is a string, a link is still a placeholder, `@Image3` with two images, more than 10 images or more than one video, a base64 video or audio, a `callback_url` that is not public https. A `callback_url` is also refused while the product has no signing secret (see [Callback](wandura-ref-1-0.md#callback)). Several problems are listed in one `message`, separated by `; `; `param` names the first.
    + 
    + #### `AuthenticationError` {#ref-authentication-error}
    + `401`, do not retry. No key, or an unknown, revoked or expired key. Send `Authorization: Bearer <your Wandura key>`.
    + 
    + #### `InsufficientBalance` {#ref-insufficient-balance}
    + `402`, do not retry. The key's wallet cannot cover the hold (see [Price](wandura-ref-1-0.md#price)). A UA wallet key pays only from the UA wallet. Add money, then send again.
    + 
    + #### `AccessDenied` {#ref-access-denied}
    + `403`, do not retry. A read-only key sends a task, or the key is limited to a list of styles and may not run Wandura Ref 1.0. Use a key without those limits.
    + 
    + #### `NotFound` {#ref-not-found}
    + `404`, do not retry. No task with that id for this key's product, or an endpoint that is not here (listing and deleting tasks).
    + 
    + #### `Conflict` {#ref-conflict}
    + `409`, do not retry. This `id` was already used with a different body. Use a new `id` for a new task (see [Same request, same task](wandura-ref-1-0.md#idempotency)).
    + 
    + #### `RateLimitExceeded` {#ref-rate-limit-exceeded}
    + `429`, retry. Too many tasks this minute for this product, or (only while Wandura has an emergency queue limit on) too many running. Wait for the `Retry-After` header, then send the same request again.
    + 
    + #### `QuotaExceeded` {#ref-quota-exceeded}
    + `429`, do not retry. Your product reached its daily spend cap (the day resets at 00:00 Vietnam time, UTC+7). Wait for the new day, or ask your org admin to raise the cap.
    + 
    + #### `InternalServiceError` {#ref-internal-service-error}
    + `500`, retry. Something went wrong at Wandura. Send the same request again (the same `id` never makes a second task).
    + 
    + #### `ServiceUnavailable` {#ref-service-unavailable}
    + `503`, retry. The task queue is briefly unavailable, or a base64 image could not be stored. Nothing was made or held. Retry after `Retry-After` when it is there, or send the image as an https link.
  5. 26 Oct 2026 · +1 −1 lines
    Show changes
    ⋯
      
      #### `INVALID_INPUT` {#jobs-invalid-input}
    - `422`, do not retry. The body or a header is wrong; `details[]` lists each `{field, reason}`. The run endpoints (`POST /v2/runs`, `POST /v2/styles/{style}`) answer the same code with `400` when a `resolution` or the number of files does not fit the style.
    + `422`, do not retry. The body or a header is wrong; `details[]` lists each `{field, reason}`. A common one is the wrong number of photos: a style that puts one person per photo takes exactly that many in `image_urls` (`{"field": "image_urls", "reason": "This style needs 2 photos, one per subject (got 1)."}`, see [Styles that take several photos](jobs.md#photo-count)). The run endpoints (`POST /v2/runs`, `POST /v2/styles/{style}`) answer the same code with `400` when a `resolution` or the number of files does not fit the style.
      
      #### `UNAUTHORIZED` {#jobs-unauthorized}
    ⋯
  6. 21 Oct 2026 · +13 −0 lines
    Show changes
    ⋯
      | 409 | [`IDEMPOTENCY_KEY_REUSED`](#jobs-idempotency-key-reused) | false |
      | 409 | [`JOB_NOT_CANCELLABLE`](#jobs-job-not-cancellable) | false |
    + | 409 | [`STYLE_OFF`](#jobs-style-off) | false |
      | 429 | [`RATE_LIMITED`](#jobs-rate-limited) | true |
      | 429 | [`PRODUCT_BUSY`](#jobs-product-busy) | true |
    ⋯
      `409`, do not retry. Only queued jobs can be cancelled.
      
    + #### `STYLE_OFF` {#jobs-style-off}
    + `409`, do not retry. `POST /v2/jobs` named a style that was published to your org and is now switched off: your org turned it off in the [console](https://open.wandura.ai) (Settings › Styles), or Wandura took it down. It is also gone from `GET /v2/styles`. Use another style. A style id that was never yours still answers `422 INVALID_INPUT`.
    + 
    + A style Wandura took down stays off until Wandura turns it back on. The console shows it as "Taken down by Wandura", and the console's published-styles calls refuse to bring it back, changing nothing:
    + 
    + | HTTP | `code` | When |
    + |---|---|---|
    + | 409 | `taken_down` | Switching on a style Wandura took down. |
    + | 409 | `previous_taken_down` | Go back onto a previous version Wandura took down. Switch the current version off instead. |
    + 
    + Ask Wandura if you think a takedown is a mistake.
    + 
      #### `RATE_LIMITED` {#jobs-rate-limited}
      `429`, retry. Too many jobs submitted this minute for this product. Retry after the `Retry-After` header.
    ⋯
  7. 21 Oct 2026 · +4 −4 lines
    Show changes
    ⋯
      
      #### `end_user_cap_reached` {#end-user-cap-reached}
    - `429`, retry. This end user reached the daily run cap. Retry after the `Retry-After` header (resets 00:00 UTC).
    + `429`, retry. This end user reached the daily run cap your org set. There is no cap unless your org sets one. Retry after the `Retry-After` header (resets 00:00 UTC).
      
      #### `daily_cap_reached` {#daily-cap-reached}
    ⋯
      
      #### `product_busy` {#product-busy}
    - `429`, retry. Your product's concurrency slots and its queue are full. Retry after the `Retry-After` header (about 5 s).
    + `429`, retry. Only while Wandura has an emergency queue limit on: your product's concurrency slots and its queue are full. Normally a busy product queues the run instead (it starts later). Retry after the `Retry-After` header (about 5 s).
      
      #### `internal_error` {#internal-error}
    ⋯
      
      #### `PRODUCT_BUSY` {#jobs-product-busy}
    - `429`, retry. Your product's concurrency slots and its queue are full. Retry after the `Retry-After` header (about 5 s).
    + `429`, retry. Only while Wandura has an emergency queue limit on: your product's concurrency slots and its queue are full. Normally a busy product queues the job instead (it starts later). Retry after the `Retry-After` header (about 5 s).
      
      #### `END_USER_LIMIT_REACHED` {#jobs-end-user-limit-reached}
    - `429`, retry. This end user reached the daily job cap. Retry after the `Retry-After` header (resets 00:00 UTC).
    + `429`, retry. This end user reached the daily job cap your org set. There is no cap unless your org sets one. Retry after the `Retry-After` header (resets 00:00 UTC).
      
      #### `DAILY_CAP_REACHED` {#jobs-daily-cap-reached}
    ⋯
  8. 19 Oct 2026 · +2 −2 lines
    Show changes
    ⋯
      
      #### `daily_cap_reached` {#daily-cap-reached}
    - `429`, do not retry. **Rolling out.** Your product reached its daily spend cap: live charges plus open holds for the current Vietnam calendar day (resets 00:00 UTC+7). Nothing was created or charged. The body carries `cap_usd`, the cap in USD, and there is no `Retry-After`. Wait for the new day, or ask your org admin to raise the cap.
    + `429`, do not retry. Your product reached its daily spend cap: live charges plus open holds for the current Vietnam calendar day (resets 00:00 UTC+7). Nothing was created or charged. The body carries `cap_usd`, the cap in USD, and there is no `Retry-After`. Wait for the new day, or ask your org admin to raise the cap.
      
      #### `gateway_rate_limited` {#gateway-rate-limited}
    ⋯
      
      #### `DAILY_CAP_REACHED` {#jobs-daily-cap-reached}
    - `429`, do not retry. **Rolling out.** This product reached its daily spend cap (the day resets at 00:00 Vietnam time, UTC+7). Nothing was created or held. Wait for the new day, or ask your org admin to raise the cap. See [Wandura C1.1](wandura-c1-1.md#errors).
    + `429`, do not retry. This product reached its daily spend cap (the day resets at 00:00 Vietnam time, UTC+7). Nothing was created or held. Wait for the new day, or ask your org admin to raise the cap. See [Wandura C1.1](wandura-c1-1.md#errors).
      
      #### `INTERNAL_ERROR` {#jobs-internal-error}
    ⋯
  9. 19 Oct 2026 · +8 −0 lines
    Show changes
    ⋯
      | 415 | [`unsupported_content_type`](#unsupported-content-type) | No |
      | 429 | [`end_user_cap_reached`](#end-user-cap-reached) | Yes |
    + | 429 | [`daily_cap_reached`](#daily-cap-reached) | No |
      | 429 | [`gateway_rate_limited`](#gateway-rate-limited) | Yes |
      | 429 | [`uploads_rate_limited`](#uploads-rate-limited) | Yes |
    ⋯
      `429`, retry. This end user reached the daily run cap. Retry after the `Retry-After` header (resets 00:00 UTC).
      
    + #### `daily_cap_reached` {#daily-cap-reached}
    + `429`, do not retry. **Rolling out.** Your product reached its daily spend cap: live charges plus open holds for the current Vietnam calendar day (resets 00:00 UTC+7). Nothing was created or charged. The body carries `cap_usd`, the cap in USD, and there is no `Retry-After`. Wait for the new day, or ask your org admin to raise the cap.
    + 
      #### `gateway_rate_limited` {#gateway-rate-limited}
      `429`, retry. A gateway key's product reached its runs-per-minute limit. Retry after the `Retry-After` header.
    ⋯
      | 429 | [`PRODUCT_BUSY`](#jobs-product-busy) | true |
      | 429 | [`END_USER_LIMIT_REACHED`](#jobs-end-user-limit-reached) | true |
    + | 429 | [`DAILY_CAP_REACHED`](#jobs-daily-cap-reached) | false |
      | 500 | [`INTERNAL_ERROR`](#jobs-internal-error) | true |
      | 503 | [`SERVICE_UNAVAILABLE`](#jobs-service-unavailable) | true |
    ⋯
      `429`, retry. This end user reached the daily job cap. Retry after the `Retry-After` header (resets 00:00 UTC).
      
    + #### `DAILY_CAP_REACHED` {#jobs-daily-cap-reached}
    + `429`, do not retry. **Rolling out.** This product reached its daily spend cap (the day resets at 00:00 Vietnam time, UTC+7). Nothing was created or held. Wait for the new day, or ask your org admin to raise the cap. See [Wandura C1.1](wandura-c1-1.md#errors).
    + 
      #### `INTERNAL_ERROR` {#jobs-internal-error}
      `500`, retry. Something went wrong on Wandura's side. Retry with the same `Idempotency-Key`.
    ⋯
  10. 16 Oct 2026 · +173 −27 lines
    Show changes
      # Errors
      
    - > **TL;DR** — Branch on `error.code`, not the message. Retry only the codes marked Yes, and network errors, with the same `Idempotency-Key`.
    + > **TL;DR** — Branch on `error.code`, not the message. Retry only the codes marked Yes, and network errors, with the same `Idempotency-Key`. Each error links to its own section on this page.
      
      Errors are JSON: `{"error": {"code": "...", "message": "..."}}`. Branch on `code`; the message is for people and may change. Every response has an `X-Request-Id` header: quote it to support.
    ⋯
      Retry only the codes marked **Yes** below and network errors, with the same `Idempotency-Key`. Wait for `Retry-After` when the response has it, otherwise back off with jitter. Never retry the others: the same request will fail the same way.
      
    - | HTTP | `code` | Retry? | What to do |
    - |---|---|---|---|
    - | 400 | `invalid_request` | No | The body or a parameter is wrong; the message says which. |
    - | 400 | `idempotency_key_required` | No | Send an Idempotency-Key header (max 255 chars) on every submit. |
    - | 400 | `end_user_id_required` | No | end_user_id is required: the id of the person in your app this run is for. |
    - | 401 | `invalid_api_key` | No | Missing, unknown or revoked API key. |
    - | 401 | `api_key_expired` | No | This API key has expired. Create or rotate a key. |
    - | 402 | `wallet_empty` | No | The product wallet and the org pool cannot cover this run. Add money, then retry. |
    - | 403 | `insufficient_scope` | No | Rolling out. This key has the Read only permission: it can read runs and styles, not submit, cancel, share or upload. Use a key with the Run styles permission. |
    - | 403 | `style_not_allowed` | No | Rolling out. This key may run only some styles, and this is not one of them. Use a key that lists it, or ask your org admin. |
    - | 404 | `style_not_found` | No | No style with that id for your org (or not public). |
    - | 404 | `run_not_found` | No | No run with that id for this product. |
    - | 404 | `not_found` | No | No such endpoint. |
    - | 409 | `idempotency_key_reused` | No | This Idempotency-Key was already used with a different body. Use a new key for a new run. |
    - | 409 | `run_not_cancelable` | No | Only queued runs can be canceled. |
    - | 413 | `file_too_large` | No | The file is over the size limit for its type. |
    - | 415 | `unsupported_content_type` | No | Uploads accept JPEG, PNG, WEBP, MP4, MOV and WEBM. |
    - | 429 | `end_user_cap_reached` | Yes | This end user reached the daily run cap. Retry after the Retry-After header (resets 00:00 UTC). |
    - | 429 | `gateway_rate_limited` | Yes | A gateway key's product reached its runs-per-minute limit. Retry after the Retry-After header. |
    - | 429 | `uploads_rate_limited` | Yes | Your org reached its presigned uploads per minute. Retry after the Retry-After header. |
    - | 429 | `product_busy` | Yes | Your product's concurrency slots and its queue are full. Retry after the Retry-After header (about 5 s). |
    - | 500 | `internal_error` | Yes | Something went wrong on our side. Retry with the same Idempotency-Key; quote X-Request-Id to support. |
    - | 503 | `style_unavailable` | Yes | This style cannot run on a live key right now (no model behind it). Test keys still return a sample. |
    - | 503 | `uploads_unavailable` | Yes | Uploads are not available on this deployment right now. |
    - | 503 | `service_unavailable` | Yes | The job queue is briefly unavailable; nothing was created or charged. Retry with the same Idempotency-Key after the Retry-After header. |
    + ## Error body and headers {#error-body}
      
    + **Rolling out.** Every `/v2` error answer, in both shapes (runs and [Jobs API](#jobs-errors)), gains these, on top of every field it already has:
    + 
    + | Where | Name | What it says |
    + |---|---|---|
    + | Body | `error.docs_url` | A link to this code's section on this page, for example `https://docs.wandura.ai/developers/api-v2/errors#product-busy`. A code without its own section links to this page. |
    + | Body | `error.retryable` | `true` when the same request can succeed later unchanged: every `429` and `5xx` (for example `product_busy`, `service_unavailable`). `false` for input and auth errors. Jobs API errors already have it. |
    + | Header | `Wandura-Error-Code` | The same value as `error.code`. |
    + | Header | `Wandura-Should-Retry` | `true` or `false`, the same value as `error.retryable`. |
    + 
    + `Retry-After` and `X-Request-Id` stay as they are. All four are optional: ignore them if you do not use them, and treat a missing `retryable` like the table below.
    + 
    + ```http
    + HTTP/1.1 429
    + Retry-After: 5
    + Wandura-Error-Code: product_busy
    + Wandura-Should-Retry: true
    + 
    + {"error":{"code":"product_busy","message":"…","limit":20,"retry_after_s":5,"retryable":true,"docs_url":"https://docs.wandura.ai/developers/api-v2/errors#product-busy"}}
    + ```
    + 
    + ## Run errors {#run-errors}
    + 
    + | HTTP | `code` | Retry? |
    + |---|---|---|
    + | 400 | [`invalid_request`](#invalid-request) | No |
    + | 400 | [`idempotency_key_required`](#idempotency-key-required) | No |
    + | 400 | [`end_user_id_required`](#end-user-id-required) | No |
    + | 401 | [`invalid_api_key`](#invalid-api-key) | No |
    + | 401 | [`api_key_expired`](#api-key-expired) | No |
    + | 402 | [`wallet_empty`](#wallet-empty) | No |
    + | 403 | [`insufficient_scope`](#insufficient-scope) | No |
    + | 403 | [`style_not_allowed`](#style-not-allowed) | No |
    + | 404 | [`style_not_found`](#style-not-found) | No |
    + | 404 | [`run_not_found`](#run-not-found) | No |
    + | 404 | [`not_found`](#not-found) | No |
    + | 409 | [`idempotency_key_reused`](#idempotency-key-reused) | No |
    + | 409 | [`run_not_cancelable`](#run-not-cancelable) | No |
    + | 413 | [`file_too_large`](#file-too-large) | No |
    + | 415 | [`unsupported_content_type`](#unsupported-content-type) | No |
    + | 429 | [`end_user_cap_reached`](#end-user-cap-reached) | Yes |
    + | 429 | [`gateway_rate_limited`](#gateway-rate-limited) | Yes |
    + | 429 | [`uploads_rate_limited`](#uploads-rate-limited) | Yes |
    + | 429 | [`product_busy`](#product-busy) | Yes |
    + | 500 | [`internal_error`](#internal-error) | Yes |
    + | 503 | [`style_unavailable`](#style-unavailable) | Yes |
    + | 503 | [`uploads_unavailable`](#uploads-unavailable) | Yes |
    + | 503 | [`service_unavailable`](#service-unavailable) | Yes |
    + 
      Submit answers, `429` ones included, carry `X-Concurrency-Limit`, `X-Concurrency-Running` and `X-Concurrency-Waiting`. Each `product_busy` and `gateway_rate_limited` answer is a refusal: it is listed at `GET /v2/queue/refusals`. See [Queue and congestion](queue-and-congestion.md).
      
      A run that fails after it was accepted is not an HTTP error: the run ends `failed` or `nsfw` with a [free-run reason](concepts.md#free-runs), and you are not charged.
      
    + #### `invalid_request` {#invalid-request}
    + `400`, do not retry. The body or a parameter is wrong; the message says which.
    + 
    + #### `idempotency_key_required` {#idempotency-key-required}
    + `400`, do not retry. Send an `Idempotency-Key` header (max 255 chars) on every submit.
    + 
    + #### `end_user_id_required` {#end-user-id-required}
    + `400`, do not retry. `end_user_id` is required: the id of the person in your app this run is for.
    + 
    + #### `invalid_api_key` {#invalid-api-key}
    + `401`, do not retry. Missing, unknown or revoked API key.
    + 
    + #### `api_key_expired` {#api-key-expired}
    + `401`, do not retry. This API key has expired. Create or rotate a key.
    + 
    + #### `wallet_empty` {#wallet-empty}
    + `402`, do not retry. The product wallet and the org pool cannot cover this run. Add money, then retry.
    + 
    + #### `insufficient_scope` {#insufficient-scope}
    + `403`, do not retry. **Rolling out.** This key has the Read only permission: it can read runs and styles, not submit, cancel, share or upload. Use a key with the Run styles permission. 
    + #### `style_not_allowed` {#style-not-allowed}
    + `403`, do not retry. **Rolling out.** This key may run only some styles, and this is not one of them. Use a key that lists it, or ask your org admin.
    + 
      A `403` only comes from a key made with a permission or a list of allowed styles (see [API keys](concepts.md#api-keys)). A key made without them never gets one.
      
    - The [Jobs API](jobs.md#errors) uses its own error codes.
    + #### `style_not_found` {#style-not-found}
    + `404`, do not retry. No style with that id for your org (or not public).
    + 
    + #### `run_not_found` {#run-not-found}
    + `404`, do not retry. No run with that id for this product.
    + 
    + #### `not_found` {#not-found}
    + `404`, do not retry. No such endpoint.
    + 
    + #### `idempotency_key_reused` {#idempotency-key-reused}
    + `409`, do not retry. This `Idempotency-Key` was already used with a different body. Use a new key for a new run.
    + 
    + #### `run_not_cancelable` {#run-not-cancelable}
    + `409`, do not retry. Only queued runs can be canceled.
    + 
    + #### `file_too_large` {#file-too-large}
    + `413`, do not retry. The file is over the size limit for its type.
    + 
    + #### `unsupported_content_type` {#unsupported-content-type}
    + `415`, do not retry. Uploads accept JPEG, PNG, WEBP, MP4, MOV and WEBM.
    + 
    + #### `end_user_cap_reached` {#end-user-cap-reached}
    + `429`, retry. This end user reached the daily run cap. Retry after the `Retry-After` header (resets 00:00 UTC).
    + 
    + #### `gateway_rate_limited` {#gateway-rate-limited}
    + `429`, retry. A gateway key's product reached its runs-per-minute limit. Retry after the `Retry-After` header.
    + 
    + #### `uploads_rate_limited` {#uploads-rate-limited}
    + `429`, retry. Your org reached its presigned uploads per minute. Retry after the `Retry-After` header.
    + 
    + #### `product_busy` {#product-busy}
    + `429`, retry. Your product's concurrency slots and its queue are full. Retry after the `Retry-After` header (about 5 s).
    + 
    + #### `internal_error` {#internal-error}
    + `500`, retry. Something went wrong on our side. Retry with the same `Idempotency-Key`; quote `X-Request-Id` to support.
    + 
    + #### `style_unavailable` {#style-unavailable}
    + `503`, retry. This style cannot run on a live key right now (no model behind it). Test keys still return a sample.
    + 
    + #### `uploads_unavailable` {#uploads-unavailable}
    + `503`, retry. Uploads are not available on this deployment right now.
    + 
    + #### `service_unavailable` {#service-unavailable}
    + `503`, retry. The job queue is briefly unavailable; nothing was created or charged. Retry with the same `Idempotency-Key` after the `Retry-After` header.
    + 
    + ## Jobs API errors {#jobs-errors}
    + 
    + The [Jobs API](jobs.md#errors) (`/v2/jobs`, `/v2/models`, `GET /v2/styles`) answers `{"error": {"code", "message", "retryable"}}`, plus `details` for `INVALID_INPUT`, with its own codes:
    + 
    + | HTTP | `code` | `retryable` |
    + |---|---|---|
    + | 422 | [`INVALID_INPUT`](#jobs-invalid-input) | false |
    + | 401 | [`UNAUTHORIZED`](#jobs-unauthorized) | false |
    + | 402 | [`INSUFFICIENT_CREDITS`](#jobs-insufficient-credits) | false |
    + | 403 | [`FORBIDDEN`](#jobs-forbidden) | false |
    + | 404 | [`NOT_FOUND`](#jobs-not-found) | false |
    + | 409 | [`IDEMPOTENCY_KEY_REUSED`](#jobs-idempotency-key-reused) | false |
    + | 409 | [`JOB_NOT_CANCELLABLE`](#jobs-job-not-cancellable) | false |
    + | 429 | [`RATE_LIMITED`](#jobs-rate-limited) | true |
    + | 429 | [`PRODUCT_BUSY`](#jobs-product-busy) | true |
    + | 429 | [`END_USER_LIMIT_REACHED`](#jobs-end-user-limit-reached) | true |
    + | 500 | [`INTERNAL_ERROR`](#jobs-internal-error) | true |
    + | 503 | [`SERVICE_UNAVAILABLE`](#jobs-service-unavailable) | true |
    + 
    + #### `INVALID_INPUT` {#jobs-invalid-input}
    + `422`, do not retry. The body or a header is wrong; `details[]` lists each `{field, reason}`. The run endpoints (`POST /v2/runs`, `POST /v2/styles/{style}`) answer the same code with `400` when a `resolution` or the number of files does not fit the style.
    + 
    + #### `UNAUTHORIZED` {#jobs-unauthorized}
    + `401`, do not retry. Missing, unknown, revoked or expired API key.
    + 
    + #### `INSUFFICIENT_CREDITS` {#jobs-insufficient-credits}
    + `402`, do not retry. The product's wallet cannot cover the job. Add funds, then retry.
    + 
    + #### `FORBIDDEN` {#jobs-forbidden}
    + `403`, do not retry. The key is valid but may not do this. Rolling out: a key with the Read only permission submitting or cancelling, or a key limited to other styles (see [API keys](concepts.md#api-keys)). Not returned before that. 
    + #### `NOT_FOUND` {#jobs-not-found}
    + `404`, do not retry. No such job, model or endpoint for this key.
    + 
    + #### `IDEMPOTENCY_KEY_REUSED` {#jobs-idempotency-key-reused}
    + `409`, do not retry. This `Idempotency-Key` was already used with a different body. Use a new key for a new job.
    + 
    + #### `JOB_NOT_CANCELLABLE` {#jobs-job-not-cancellable}
    + `409`, do not retry. Only queued jobs can be cancelled.
    + 
    + #### `RATE_LIMITED` {#jobs-rate-limited}
    + `429`, retry. Too many jobs submitted this minute for this product. Retry after the `Retry-After` header.
    + 
    + #### `PRODUCT_BUSY` {#jobs-product-busy}
    + `429`, retry. Your product's concurrency slots and its queue are full. Retry after the `Retry-After` header (about 5 s).
    + 
    + #### `END_USER_LIMIT_REACHED` {#jobs-end-user-limit-reached}
    + `429`, retry. This end user reached the daily job cap. Retry after the `Retry-After` header (resets 00:00 UTC).
    + 
    + #### `INTERNAL_ERROR` {#jobs-internal-error}
    + `500`, retry. Something went wrong on Wandura's side. Retry with the same `Idempotency-Key`.
    + 
    + #### `SERVICE_UNAVAILABLE` {#jobs-service-unavailable}
    + `503`, retry. This style cannot run on a live key right now (test keys still return a sample). Or the job queue is briefly unavailable: nothing was created or charged; retry after `Retry-After` with the same `Idempotency-Key`.
    + 
    + A job that ends without a result (`failed`, `timeout`) is not an HTTP error: its `error.code` is listed under [Statuses](jobs.md#statuses) on the Jobs API page.
  11. 16 Oct 2026 · +4 −0 lines
    Show changes
    ⋯
      | 401 | `api_key_expired` | No | This API key has expired. Create or rotate a key. |
      | 402 | `wallet_empty` | No | The product wallet and the org pool cannot cover this run. Add money, then retry. |
    + | 403 | `insufficient_scope` | No | Rolling out. This key has the Read only permission: it can read runs and styles, not submit, cancel, share or upload. Use a key with the Run styles permission. |
    + | 403 | `style_not_allowed` | No | Rolling out. This key may run only some styles, and this is not one of them. Use a key that lists it, or ask your org admin. |
      | 404 | `style_not_found` | No | No style with that id for your org (or not public). |
      | 404 | `run_not_found` | No | No run with that id for this product. |
    ⋯
      A run that fails after it was accepted is not an HTTP error: the run ends `failed` or `nsfw` with a [free-run reason](concepts.md#free-runs), and you are not charged.
      
    + A `403` only comes from a key made with a permission or a list of allowed styles (see [API keys](concepts.md#api-keys)). A key made without them never gets one.
    + 
      The [Jobs API](jobs.md#errors) uses its own error codes.
  12. 15 Oct 2026 · +5 −0 lines
    Show changes
    ⋯
      | 429 | `end_user_cap_reached` | Yes | This end user reached the daily run cap. Retry after the Retry-After header (resets 00:00 UTC). |
      | 429 | `gateway_rate_limited` | Yes | A gateway key's product reached its runs-per-minute limit. Retry after the Retry-After header. |
    + | 429 | `uploads_rate_limited` | Yes | Your org reached its presigned uploads per minute. Retry after the Retry-After header. |
    + | 429 | `product_busy` | Yes | Your product's concurrency slots and its queue are full. Retry after the Retry-After header (about 5 s). |
      | 500 | `internal_error` | Yes | Something went wrong on our side. Retry with the same Idempotency-Key; quote X-Request-Id to support. |
      | 503 | `style_unavailable` | Yes | This style cannot run on a live key right now (no model behind it). Test keys still return a sample. |
      | 503 | `uploads_unavailable` | Yes | Uploads are not available on this deployment right now. |
    + | 503 | `service_unavailable` | Yes | The job queue is briefly unavailable; nothing was created or charged. Retry with the same Idempotency-Key after the Retry-After header. |
      
    + Submit answers, `429` ones included, carry `X-Concurrency-Limit`, `X-Concurrency-Running` and `X-Concurrency-Waiting`. Each `product_busy` and `gateway_rate_limited` answer is a refusal: it is listed at `GET /v2/queue/refusals`. See [Queue and congestion](queue-and-congestion.md).
    + 
      A run that fails after it was accepted is not an HTTP error: the run ends `failed` or `nsfw` with a [free-run reason](concepts.md#free-runs), and you are not charged.
      
    ⋯
  13. 14 Oct 2026 · Page created
↑↓ selectEnter openEsc close

Send feedback

Your message goes straight to the Wandura team. It includes the address of this page.

0 / 4000