Documentation

Language models

Use the service
View .mdOpenAPI

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. A refused upload creates nothing: no job, no dataset rows, no charge.

The codes

StatusCodeWhenWhat to do
202(accepted, not an error)POST /v1/classify while the model is not ready, or when the pages did not finish within 300 sWait Retry-After seconds, then read the job at job_id (also in Location).
400invalid_json, invalid_body, invalid_json_line, invalid_line, no_pages, empty_page, invalid_text, invalid_id, page_too_large, too_many_pagesThe request or a page is not what the call takes; line or index says where.Fix it and send again.
400model_not_available, model_conflictA model you cannot run or train (available lists what you can), or two different models named in one request.See Bring your own model.
400parameter_out_of_range, invalid_parameter, option_out_of_range, invalid_windowA 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.
400unknown_label, missing_field, invalid_split, no_rows, unsupported_format, dataset_label_mismatch, recipe_not_availableDataset and training checks; see Fine-tune a model.Fix the line or the field named.
400not_a_page_jobA page-job download asked of a training job.Read the training job's results instead.
400invalid_amount, below_minimumA top-up amount that is not a positive amount of whole cents, or below $0.50.Send a larger amount.
400invalid_url, https_required, address_not_public, unresolvable_host, url_credentials, url_is_traces_endpoint, invalid_header, reserved_header, mlflow_experiment_header_missing, too_many_sinksA trace destination the service will not send to; see POST /v1/trace-sinks.Fix the address or headers.
400invalid_idempotency_keyAn Idempotency-Key header that is present but empty.Send a key, or no header.
400invalid_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_supportThe dataset check at upload; line says where, never what.Fix the row named; see Fine-tune a model.
400invalid_options, unsupported_job_kind, invalid_preferencesoptions.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.
400invalid_schedule, invalid_schedule_windowA 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.
400invalid_objective, objective_recipe_mismatch, dataset_format_mismatch, invalid_replay_weights, invalid_manifest_uri, invalid_manifest_sha256, manifest_mismatch, checkpoint_reference_unsupportedA training job's objective, recipe, dataset format or intent fields do not agree or are malformed.See POST /v1/jobs (finetune).
401unauthorized, invalid_token, token_revoked, token_expiredNo token, or one that does not work (any more).Make a new token on your panel.
402no_creditYour available credit is zero or less. Since the dataset limits, making or uploading a dataset needs credit too.Add credit (Prices and billing).
402queue_exceeds_creditThe job costs more than your available credit; pages_allowed says what it pays for.Send fewer pages, or add credit first.
402training_not_coveredThe training estimate is more than your available credit; needed_usd_micros says how much. Starting the model costs nothing.Add credit.
402token_daily_capThis 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.
403scope_requiredThe token lacks the scope the call needs (required, granted).Use a token with that scope.
403scope_escalationA 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.
403account_suspendedThe account is suspended.Talk to us.
403csrf_requiredA call from your panel's browser session that changes something, without the panel's own check value.Use an API token from a script.
404job_not_found, dataset_not_found, sink_not_found, token_not_foundIt does not exist, or it is another account's; you never learn which.Check the identifier.
404not_configuredThe feature named in feature is not switched on for this service.See the page for that feature.
404, 405not_found, method_not_allowedNo such path, or a method the path does not take (Allow lists those it does).Check the call against the reference.
409idempotency_key_in_progressThe first request with this key is still running.Wait, then send it again with the same key.
408upload_timed_outA dataset upload stalled past its limits, below.Send the file again to the same address.
409dataset_busyAnother upload or a delete of the same dataset is running.Wait for it to end.
409results_not_ready, model_artifact_not_readyA 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.
409dataset_in_use, dataset_not_ready, dataset_already_uploadedThe dataset's state does not allow the call.Wait for its job to end, or upload first.
413body_too_large, dataset_too_large, line_too_largeToo large for the call; limit_bytes or max_bytes gives the limit.Split it.
415unsupported_media_typeA body type the call does not take; accepted lists those it does.Use application/json or application/x-ndjson.
422idempotency_key_reusedThe same key with a different request.Use a new key for new work.
429rate_limitedThis token sends work faster than its rate (below).Wait Retry-After seconds and send again.
429overloadedThe 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.
429campaign_concurrency_limitedOne 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).
429dry_run_busyEvery simulation slot of a dry run stayed busy; nothing was checked.Wait Retry-After and send the check again.
429dataset_count_limit, dataset_storage_limit, upload_concurrency_limitA 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.
429artifact_download_busyTwo 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.
502invalid_model_artifact, model_artifact_digest_mismatchThe stored weights did not check out against their digest, so they were not sent.Tell us; do not use a partial file.
500, 502, 503internal_error, storage_unavailable, stripe_refused, stripe_unavailableA fault on our side, or in the payment or storage service behind a call.See Retries.

Source verification

Plan submission and pack registration 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.

StatusCodeMeaning and action
400source_unreachableAccess 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.
400source_range_unsupportedSource 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.
400source_range_out_of_boundsThe known object size is smaller than the range's exclusive end. Correct byte_range or restore the expected object.
400source_size_mismatchWith no explicit range, the reported object size differs from compressed_bytes. Correct the count or source.
400source_format_mismatchThe sampled bytes do not match a recognized Zstandard, Parquet or Arrow IPC header. Correct the format, source or frame-aligned range.
503source_probe_unavailableRequired 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

StatusCode or causeMeaning and action
400invalid_compute_planCorrect the fields, identifiers, dependency graph, source metadata or receipt named in message. Unknown fields are refused and named, never ignored.
400invalid_event_cursorUse integers for after_seq and limit; valid ranges are nonnegative signed 64-bit and 1–500 respectively.
403compute_tenancy_unauthorizedThe 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.
403Completion authorityCustomer completion calls cannot finalize managed work. Adding lease fields to a receipt does not authorize it.
404compute_plan_not_found, compute_stage_not_found, compute_pack_not_foundCheck identity and account ownership.
409ambiguous_compute_stageUse the plan receipt's stream_id, or the authored stage identifier with ?plan_id=....
409compute_plan_conflictRead current progress. Changed replay content, duplicate ordinals, sealing totals or ineligible lifecycle transitions require correction.
409compute_schedule_window_closedA continuous stream cannot reopen past its plan's window. Consolidate into a plan whose window is open.
429stream_backpressurePending 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.
200Dry-run findings such as dry_run_deadline_exceeded, thinking_unsupported, context_smaller_than_request, model_not_in_rosterNot HTTP errors: codes inside the findings of a dry run, whose answer is 200 with ok: false. Its page lists them with their remedies.
nonehard_deadline_expired, standing_window_closed, dependency_failed, pack_dead_letteredNot HTTP errors either: why a stage ended, in stages[].failure of the plan receipt and in events. The first two mean the window's until_ms passed; dependency_failed names the failed stage in source_stage_id.
noneINPUT_STAGING_FAILED, PLATFORM_OOMTransient platform faults a harness reports at the head of a failure reason. The stage is retried automatically, up to max_attempts (default 3); nothing is asked of you.
500compute_store_errorA 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.

LimitValueWhat it counts
Request rate, per token8 a second, bursts of 64Calls 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 tokennone unless you set oneThe 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 call256POST /v1/classify. A batch has no page limit.
One page16 MiB with its envelopeEvery page, in every call.
A JSON body16 MiBA JSON batch; send a larger one as NDJSON.
ComputePlan and pack JSON1 MiBPlan submission, promotion, materialization, stage completion/failure, pack registration/completion.
Rows in one answer1,000Results, jobs and usage lists; page on with after=.
A dataset440 MiBPUT /v1/datasets/{dataset_id}/content.
Trace destinations6 per accountSee Tracing and exports.
Spans in one trace download512GET /v1/traces; the next call continues from X-Weights-Next-After.
An Idempotency-Keykept 24 hSee below.
Datasets per account8, and 2,048 MiB stored or reservedEvery dataset not deleted; one being made reserves 440 MiB until its upload sets its real size.
Datasets on the service128, and 20,480 MiBAll accounts together.
Dataset uploads at once1 per account, 2 for the serviceCut after 30 s without data or 900 s in all; one line at most 64 MiB.
A browser session720 h after signing in, or 10,080 minutes without a requestThe panel only; API tokens are not affected.
Sign-in attempts5 at once per email, then one every 60 s; 30 at once per network address, then one every 10 sSign-in and registration together, successful attempts included.
Unfinished work on the service1,024 jobs, 1,000,000 pages, 6,144 MiB of page text, 256 single callsAll accounts together; past it, 429 overloaded with a Retry-After of 10 s.
Logged content7 days, 16 KiB an entry, 16 MiB an accountOnly 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).

Retries

POST /v1/classify and POST /v1/jobs 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 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 and POST /v1/tokens 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).

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 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.