Content-Type: application/problem+json), extended with a stable code. Branch on code, never on detail: messages may be reworded, codes never change.
These are errors of the request: nothing was created. A generation that is accepted and fails later has an
error on the generation itself; see Generations → Failures.
400 Bad Request
invalid_json
The body is not valid JSON, or not sent asContent-Type: application/json.
invalid_multipart
A file upload whosemultipart/form-data body cannot be read: a missing or wrong boundary, or a truncated body. Most HTTP clients build it for you: let them set the Content-Type header.
parameter_missing
A required field is missing.param points at it.
parameter_invalid
A field has the wrong type, is out of range, or is not one of the allowed values for this model and mode.allowed_values lists what works.
parameter_unknown
A field is not part of this mode’s input. Argil rejects unknown fields instead of ignoring them, so a typo never silently changes your output.reference_not_found
An asset is not in your library, an element does not exist in your workspace or among Argil’s public ones, or an element has no plate with that label.reference_not_allowed
This mode does not take this reference: too many images, a video where only images are accepted, a video too long, alore element, or a file that failed processing. detail says which.
401 Unauthorized
authentication_required
No API key was sent.invalid_api_key
The key is unknown or revoked.402 Payment Required
insufficient_credits
Your balance does not cover what the generation reserves.billing.required and billing.available say by how much, and url is where a person adds credits to this workspace, signed in to Argil. See Credits.
credit_limit_exceeded
The generation would reserve more than themax_credits you set on the request. Nothing was created or reserved. billing.required is the price and billing.limit your ceiling.
403 Forbidden
plan_required
Generating, and running an agent session, need an active Argil plan for the workspace.url links to the plans for this workspace, where a person takes one; POST /v2/checkout gives a person a link to pay for one. See Plans.
admin_required
Only an admin of the workspace can buy or change its plan: ask one of them.api_access_required
API v2 is in early access, and the API key’s owner is not in it yet. Contact Argil to join.approval_required
Over MCP, a budget answer is refused: only a person raises a session’s budget.url is the link to give them; they raise it there, signed in to Argil.
404 Not Found
resource_not_found
No such object in your workspace, or no such route.model_not_found
The model does not exist or is not enabled for your workspace. The catalog is your playground’s.mode_not_supported
The model exists but does not have this mode.allowed_values lists its modes.
405 Method Not Allowed
method_not_allowed
The path exists, but not with this method. TheAllow header lists the methods it takes.
409 Conflict
asset_not_uploaded
A referenced asset was stillpending_upload after seconds: send its bytes to upload.url first.
asset_not_ready
A referenced asset was still processing after seconds, or a file is not ready to download. Retry once its status isready.
generation_not_terminal
Only final generations can be deleted, once theirgeneration.succeeded or generation.failed event is sent (usually seconds after). Wait for it to finish, then retry.
session_busy
The agent is working on this session: send the message again once the session isidle, or stop it first. Retryable.
question_closed
An answer names a question that is no longer open: someone answered in the app first, or the session moved on. Read the session again and answer its current questions.artifact_changed
The storyboard changed since therevision your answer names. Read it again, show it, and answer with its new revision.
too_many_webhook_endpoints
A workspace has at most webhook endpoints. Delete one first.platform_key_refused
Only your workspace’s own provider keys could run this model, and the platform refused them (invalid, revoked, out of quota or billing). Nothing was created or charged. Fix the key in workspace settings › Provider keys, or let the workspace fall back to Argil’s keys, then retry.idempotency_key_in_use
Another request with thisIdempotency-Key is still being processed. Nothing was created by this one. Retry the same request in a few seconds: you then get the generation the first request created, or a new one if it failed.
411 Length Required
length_required
A file sent in the request needs aContent-Length header.
413 Content Too Large
payload_too_large
A JSON body is over MB, or a file sent in the request over MB. Send larger files through a signed upload.422 Unprocessable Content
url_unreachable
A URL in the request could not be reached: its host does not resolve, it times out, or it answers5xx. Retry later. A URL that is not on the public internet, or answers 4xx, is a 400 parameter_invalid.
idempotency_key_reused
TheIdempotency-Key was already used with a different request, or the generation it created was deleted since. Nothing was created. Use a new key for a new request; see Idempotency.
429 Too Many Requests
rate_limited
Too many requests from your workspace. WaitRetry-After seconds. See Rate limits.
too_many_queued_generations
Your workspace has too many generations waiting for capacity. Wait for some to start.too_many_running_sessions
The workspace already runs agent sessions at once. Start or resume this one when one of them is idle.too_many_asset_imports
POST /v2/assets with a url, while assets of your workspace are still processing. Retry once some are ready.
500 Internal Server Error
internal_error
Unexpected error on our side;detail carries the request id. Retry with backoff.
