> ## Documentation Index
> Fetch the complete documentation index at: https://weights.fyi/run/llms.txt

# Errors and limits

Every refusal is JSON with an `error` code and the details to act on: a line number, the bounds, the amount needed, often a `message`. No refusal quotes your page text.

> **Status.** General limits reviewed on 2026-10-10, source verification on 2026-10-28 and the plan, admission and dry-run codes on 2026-11-16; limits below read this service’s current settings.

## How to read a refusal

```json
{"error": "queue_exceeds_credit", "pages": 5000, "pages_allowed": 1018, "pages_queued": 0, "available_usd_micros": 1000,
 "message": "Your available credit, $0.0010, pays for about 1,018 more pages at $0.0010 per 1,000 pages; this job has 5,000. Send fewer pages, or add credit first."}
```

The status says whose move it is. `400`, `413`, `415` and `422`: fix the request. `401` and `403`: restore credentials or access. `402`: money; nothing ran. `404`: it does not exist for you. `409`: inspect the conflict; waiting cannot fix changed replay content. `429`: wait `Retry-After` when supplied; stream backpressure requires work to drain. `5xx`: our fault; see [Retries](#retries). A refused upload creates nothing: no job, no dataset rows, no charge.

## The codes

| Status | Code | When | What to do |
|---|---|---|---|
| `202` | (accepted, not an error) | [POST /v1/classify](/run/docs/reference/classify.md) while the model is not ready, or when the pages did not finish within 300 s | Wait `Retry-After` seconds, then read the job at `job_id` (also in `Location`). |
| `400` | `invalid_json`, `invalid_body`, `invalid_json_line`, `invalid_line`, `no_pages`, `empty_page`, `invalid_text`, `invalid_id`, `page_too_large`, `too_many_pages` | The request or a page is not what the call takes; `line` or `index` says where. | Fix it and send again. |
| `400` | `model_not_available`, `model_conflict` | A model you cannot run or train (`available` lists what you can), or two different models named in one request. | See [Bring your own model](/run/docs/your-model.md). |
| `400` | `parameter_out_of_range`, `invalid_parameter`, `option_out_of_range`, `invalid_window` | A query parameter or training option outside its bounds (`low`, `high`), or a time window whose start is not before its end. | Stay inside the bounds. |
| `400` | `unknown_label`, `missing_field`, `invalid_split`, `no_rows`, `unsupported_format`, `dataset_label_mismatch`, `recipe_not_available` | Dataset and training checks; see [Fine-tune a model](/run/docs/fine-tune.md). | Fix the line or the field named. |
| `400` | `not_a_page_job` | A page-job download asked of a training job. | Read the training job's results instead. |
| `400` | `invalid_amount`, `below_minimum` | A top-up amount that is not a positive amount of whole cents, or below $0.50. | Send a larger amount. |
| `400` | `invalid_url`, `https_required`, `address_not_public`, `unresolvable_host`, `url_credentials`, `url_is_traces_endpoint`, `invalid_header`, `reserved_header`, `mlflow_experiment_header_missing`, `too_many_sinks` | A trace destination the service will not send to; see [POST /v1/trace-sinks](/run/docs/reference/trace-sinks-create.md). | Fix the address or headers. |
| `400` | `invalid_idempotency_key` | An `Idempotency-Key` header that is present but empty. | Send a key, or no header. |
| `400` | `invalid_identifier`, `invalid_provenance`, `invalid_state`, `duplicate_example_id`, `group_split_overlap`, `invalid_example_weight`, `state_digest_mismatch`, `multiple_labels`, `field_targets_not_trainable`, `train_and_validation_required`, `missing_label_support` | The dataset check at upload; `line` says where, never what. | Fix the row named; see [Fine-tune a model](/run/docs/fine-tune.md). |
| `400` | `invalid_options`, `unsupported_job_kind`, `invalid_preferences` | `options.rejectIfBusy` that is not `true` or `false`, a job `kind` the service does not run, or trace preferences that are not two booleans. | Fix the field named. |
| `400` | `invalid_schedule`, `invalid_schedule_window` | A job's `schedule` that is not an object, holds an unknown or invalid key, or does not end in the future within 8 days. | See [POST /v1/jobs](/run/docs/reference/jobs-create.md). |
| `400` | `invalid_objective`, `objective_recipe_mismatch`, `dataset_format_mismatch`, `invalid_replay_weights`, `invalid_manifest_uri`, `invalid_manifest_sha256`, `manifest_mismatch`, `checkpoint_reference_unsupported` | A training job's objective, recipe, dataset format or intent fields do not agree or are malformed. | See [POST /v1/jobs (finetune)](/run/docs/reference/jobs-create-finetune.md). |
| `401` | `unauthorized`, `invalid_token`, `token_revoked`, `token_expired` | No token, or one that does not work (any more). | Make a new token on your panel. |
| `402` | `no_credit` | Your available credit is zero or less. Since the dataset limits, making or uploading a dataset needs credit too. | Add credit ([Prices and billing](/run/docs/prices.md#credit)). |
| `402` | `queue_exceeds_credit` | The job costs more than your available credit; `pages_allowed` says what it pays for. | Send fewer pages, or add credit first. |
| `402` | `training_not_covered` | The training estimate is more than your available credit; `needed_usd_micros` says how much. Starting the model costs nothing. | Add credit. |
| `402` | `token_daily_cap` | This token's spend cap for the UTC day would be passed; `resets_at` says when the day ends. | Wait, or raise the cap on your panel. |
| `403` | `scope_required` | The token lacks the scope the call needs (`required`, `granted`). | Use a token with that scope. |
| `403` | `scope_escalation` | A token tried to make a token with scopes it does not hold itself. | Make it from a token that holds them, or on your panel. |
| `403` | `account_suspended` | The account is suspended. | Talk to us. |
| `403` | `csrf_required` | A call from your panel's browser session that changes something, without the panel's own check value. | Use an API token from a script. |
| `404` | `job_not_found`, `dataset_not_found`, `sink_not_found`, `token_not_found` | It does not exist, or it is another account's; you never learn which. | Check the identifier. |
| `404` | `not_configured` | The feature named in `feature` is not switched on for this service. | See the page for that feature. |
| `404`, `405` | `not_found`, `method_not_allowed` | No such path, or a method the path does not take (`Allow` lists those it does). | Check the call against the [reference](/run/docs/reference.md). |
| `409` | `idempotency_key_in_progress` | The first request with this key is still running. | Wait, then send it again with the same key. |
| `408` | `upload_timed_out` | A dataset upload stalled past its limits, below. | Send the file again to the same address. |
| `409` | `dataset_busy` | Another upload or a delete of the same dataset is running. | Wait for it to end. |
| `409` | `results_not_ready`, `model_artifact_not_ready` | A full results download before the job finished, or a weights download before a model exists. | Wait for the job; `Retry-After` says when to look again. |
| `409` | `dataset_in_use`, `dataset_not_ready`, `dataset_already_uploaded` | The dataset's state does not allow the call. | Wait for its job to end, or upload first. |
| `413` | `body_too_large`, `dataset_too_large`, `line_too_large` | Too large for the call; `limit_bytes` or `max_bytes` gives the limit. | Split it. |
| `415` | `unsupported_media_type` | A body type the call does not take; `accepted` lists those it does. | Use `application/json` or `application/x-ndjson`. |
| `422` | `idempotency_key_reused` | The same key with a different request. | Use a new key for new work. |
| `429` | `rate_limited` | This token sends work faster than its rate (below). | Wait `Retry-After` seconds and send again. |
| `429` | `overloaded` | The service holds as much unfinished work as it takes, or a call with `rejectIfBusy` found the model not ready or busy; `reason` says which, `retryable` is `true`, and nothing was accepted. | Wait `Retry-After` seconds and send again, with the same `Idempotency-Key`. |
| `429` | `campaign_concurrency_limited` | One chat turn of a plan's session met its model at the edge of capacity: every seat of its share is taken (`reason: concurrency_limit`) or the capacity is not ready (`capacity_unavailable`). `retryable` is `true`. Expected under load; the plan keeps running. On the drop-in base the `code` reads `rate_limited` and this code is in `reason`. | Wait `Retry-After` and send that turn again, within your own deadline; never resubmit the plan ([Rate limits](/run/docs/api/rate-limits.md#admission-at-the-capacity-edge)). |
| `429` | `dry_run_busy` | Every simulation slot of [a dry run](/run/docs/reference/compute-plans-dry-run.md) stayed busy; nothing was checked. | Wait `Retry-After` and send the check again. |
| `429` | `dataset_count_limit`, `dataset_storage_limit`, `upload_concurrency_limit` | A dataset limit of your account or of the service, or too many uploads at once. | Delete datasets you no longer need, or wait `Retry-After` seconds for an upload slot. |
| `429` | `artifact_download_busy` | Two weights downloads are already running. | Wait `Retry-After` seconds. |
| `429` | (a page, not JSON) | Too many sign-in or registration attempts on the panel's forms. | Wait `Retry-After` seconds. |
| `502` | `invalid_model_artifact`, `model_artifact_digest_mismatch` | The stored weights did not check out against their digest, so they were not sent. | Tell us; do not use a partial file. |
| `500`, `502`, `503` | `internal_error`, `storage_unavailable`, `stripe_refused`, `stripe_unavailable` | A fault on our side, or in the payment or storage service behind a call. | See [Retries](#retries). |

## Source verification

[Plan submission](/run/docs/reference/compute-plans-create.md) and [pack registration](/run/docs/reference/streams-packs-create.md) accept `verify_source: true` or `?verify_source=1`; plans also accept the flag on a stage's `workload`. Failed checks prevent new registration; a failed retry does not remove earlier accepted work. Fix source errors before retrying the same identifiers.

| Status | Code | Meaning and action |
|---|---|---|
| `400` | `source_unreachable` | Access denied, missing object, failed DNS/TLS/connection, refused address or redirect, or another unsuccessful response. Check permissions, object path and signed URL expiry. HTTPS reads require public addresses. |
| `400` | `source_range_unsupported` | Source ignored an explicit range or returned unusable range headers/bytes. Use an endpoint that honors Range. A whole-object `200` can pass when its known size fits the short probe or equals `compressed_bytes`. |
| `400` | `source_range_out_of_bounds` | The known object size is smaller than the range's exclusive end. Correct `byte_range` or restore the expected object. |
| `400` | `source_size_mismatch` | With no explicit range, the reported object size differs from `compressed_bytes`. Correct the count or source. |
| `400` | `source_format_mismatch` | The sampled bytes do not match a recognized Zstandard, Parquet or Arrow IPC header. Correct the format, source or frame-aligned range. |
| `503` | `source_probe_unavailable` | Required storage or Azure account settings are absent. Retry after configuration is restored; disabling verification does not repair access. |

Success includes `source_probe`: `verified`, `mode` and `probes`. Each probe reports `uri`, HTTP `status`, `supports_range`, `remote_bytes` and `magic_ok`, with a pack or mount identifier. Unknown checks are null. No reads means `verified: false`, `mode: "syntax_and_custody_only"`, `probes: []`, including lazy prefixes. OCI receives a reachability HEAD only. Verification does not check the full digest or guarantee later availability.

## Compute plans and streams

| Status | Code or cause | Meaning and action |
|---|---|---|
| `400` | `invalid_compute_plan` | Correct the fields, identifiers, dependency graph, source metadata or receipt named in `message`. Unknown fields are refused and named, never ignored. |
| `400` | `invalid_event_cursor` | Use integers for `after_seq` and `limit`; valid ranges are nonnegative signed 64-bit and 1–500 respectively. |
| `403` | `compute_tenancy_unauthorized` | The account lacks the plan's tenant and organisation grant. Restore access before retrying. A dry run reports the same code as a finding, with status `200`. |
| `403` | Completion authority | Customer completion calls cannot finalize managed work. Adding lease fields to a receipt does not authorize it. |
| `404` | `compute_plan_not_found`, `compute_stage_not_found`, `compute_pack_not_found` | Check identity and account ownership. |
| `409` | `ambiguous_compute_stage` | Use the plan receipt's `stream_id`, or the authored stage identifier with `?plan_id=...`. |
| `409` | `compute_plan_conflict` | Read current progress. Changed replay content, duplicate ordinals, sealing totals or ineligible lifecycle transitions require correction. |
| `409` | `compute_schedule_window_closed` | A continuous stream cannot reopen past its plan's window. Consolidate into a plan whose window is open. |
| `429` | `stream_backpressure` | Pending plus live leased packs reached the limit. Poll the backlog and retry as work drains; this refusal does not supply `Retry-After`. In a batch of packs, those before the refused one stay registered. |
| `200` | Dry-run findings such as `dry_run_deadline_exceeded`, `thinking_unsupported`, `context_smaller_than_request`, `model_not_in_roster` | Not HTTP errors: codes inside the `findings` of [a dry run](/run/docs/reference/compute-plans-dry-run.md), whose answer is `200` with `ok: false`. Its page lists them with their remedies. |
| none | `hard_deadline_expired`, `standing_window_closed`, `dependency_failed`, `pack_dead_lettered` | Not HTTP errors either: why a stage ended, in `stages[].failure` of [the plan receipt](/run/docs/reference/compute-plans-get.md) and in [events](/run/docs/reference/compute-events.md). The first two mean the window's `until_ms` passed; `dependency_failed` names the failed stage in `source_stage_id`. |
| none | `INPUT_STAGING_FAILED`, `PLATFORM_OOM` | Transient platform faults a harness reports at the head of [a failure reason](/run/docs/reference/compute-stages-fail.md). The stage is retried automatically, up to `max_attempts` (default 3); nothing is asked of you. |
| `500` | `compute_store_error` | A service storage fault; preserve submission identifiers and report the failure. |

## Limits

Each limit keeps one key from filling the queue for everybody, a request inside one call to the model, or an answer to a size a client can read.

| Limit | Value | What it counts |
|---|---|---|
| Request rate, per token | 8 a second, bursts of 64 | Calls that send work (scope `submit`): classify, batches and training jobs, cancelling, making the model ready, and making, uploading and removing datasets. Reads are not counted. The figure is what keeps the model fully busy: its measured speed over the largest request, 256 pages, so sending faster would only lengthen the queue. |
| Spend cap per day, per token | none unless you set one | The charges of the token's jobs posted since 00:00 UTC, plus their waiting pages at their price; a new training job is checked with its whole estimate. Set it on your panel, or as `daily_cap_usd` when you make the token. |
| Pages in one call | 256 | [POST /v1/classify](/run/docs/reference/classify.md). A batch has no page limit. |
| One page | 16 MiB with its envelope | Every page, in every call. |
| A JSON body | 16 MiB | A JSON batch; send a larger one as NDJSON. |
| ComputePlan and pack JSON | 1 MiB | Plan submission, promotion, materialization, stage completion/failure, pack registration/completion. |
| Rows in one answer | 1,000 | Results, jobs and usage lists; page on with `after=`. |
| A dataset | 440 MiB | [PUT /v1/datasets/{dataset_id}/content](/run/docs/reference/datasets-upload.md). |
| Trace destinations | 6 per account | See [Tracing and exports](/run/docs/tracing.md). |
| Spans in one trace download | 512 | [GET /v1/traces](/run/docs/reference/traces.md); the next call continues from `X-Weights-Next-After`. |
| An `Idempotency-Key` | kept 24 h | See below. |
| Datasets per account | 8, and 2,048 MiB stored or reserved | Every dataset not deleted; one being made reserves 440 MiB until its upload sets its real size. |
| Datasets on the service | 128, and 20,480 MiB | All accounts together. |
| Dataset uploads at once | 1 per account, 2 for the service | Cut after 30 s without data or 900 s in all; one line at most 64 MiB. |
| A browser session | 720 h after signing in, or 10,080 minutes without a request | The panel only; API tokens are not affected. |
| Sign-in attempts | 5 at once per email, then one every 60 s; 30 at once per network address, then one every 10 s | Sign-in and registration together, successful attempts included. |
| Unfinished work on the service | 1,024 jobs, 1,000,000 pages, 6,144 MiB of page text, 256 single calls | All accounts together; past it, `429 overloaded` with a `Retry-After` of 10 s. |
| Logged content | 7 days, 16 KiB an entry, 16 MiB an account | Only when you turn content logging on. |

Panel sign-in uses no token, so no request rate or spend cap; its own limits are the session and sign-in rows.

## Capacity

The service takes a bounded amount of unfinished work for all accounts together and refuses new work beyond it with `429 overloaded`, `retryable: true`, a `reason` (`queue_full`, `concurrency_limit`, or `capacity_unavailable` for a call with `rejectIfBusy`) and `retry_after_seconds`, the same as `Retry-After`. Nothing of the refused request is kept, so send it again after the wait, waiting longer each time with a little randomness; the figure is a polling interval, not a promise. Accepted work is never refused this way. While the model moves its state says "Finding replacement capacity. Your queued work will resume automatically.", with `recovery_action: "poll_job"`: poll the job, do not send it again.

A `429 campaign_concurrency_limited` on one chat turn is a different thing. Each model is run at the edge of its capacity on purpose, so under load a share of turns is asked to wait; only that turn waits, and its plan runs on ([Rate limits](/run/docs/api/rate-limits.md#admission-at-the-capacity-edge)).

## Retries

[POST /v1/classify](/run/docs/reference/classify.md) and [POST /v1/jobs](/run/docs/reference/jobs-create.md) take an `Idempotency-Key`, any string, one per piece of work, sent with every attempt:

- **Same key, same request:** the first answer again, marked `Idempotent-Replayed: true`; no second job.
- **Same key, different request:** `422 idempotency_key_reused`.
- **Same key while the first still runs:** `409 idempotency_key_in_progress`; try again shortly.
- **A refusal (`4xx`)** frees the key: fix the request and send it with the same key.
- **A fault (`5xx`) after the body was read** is kept and replayed, because work may have started; check [GET /v1/jobs](/run/docs/reference/jobs-list.md) before using a new key.
- Keys are kept 24 h; after that the same key makes a new job.
- the key is tied to its job as the job is made, so a retry after a fault or a restart answers `202` with that job and `recovered: true`; keys are kept while their job is open; an unfinished upload holds no key.

[POST /v1/credit/topups](/run/docs/reference/credit-topups-create.md) and [POST /v1/tokens](/run/docs/reference/tokens-create.md) take no key: a retry makes a second payment page (it expires unpaid) or a second token (revoke it). On `429` and `202`, wait `Retry-After`; after a lost connection or an unreplayed `5xx`, retry with the same key after a few seconds, doubling each time. Bound every retry loop with a deadline of your own ([examples](/run/docs/api/rate-limits.md#back-off-and-retry)).

ComputePlans and packs use their identifiers and normalized content for replay, not `Idempotency-Key`. Preserve both on retries. Completion needs an identical receipt; sealing is repeat-safe. Promotion is not: after a lost response, [read the plan](/run/docs/reference/compute-plans-get.md) before retrying. Materialization may fill another window as work drains. A batch of packs is registered pack by pack: after a refusal partway through, send the same batch again.
