Reference

Errors and Rate Limits

If a request is rejected, you'll get an HTTP status code and an error object. Failures during generation are reported through the job's status and error.

Error responses

Every response includes a request ID. For successful responses it comes in the X-Request-Id header, and for errors it also comes in the body's request_id. Include it when you contact us.

JSON
{
  "error": {
    "code": "rate_limited",
    "message": "Too many requests. Retry after the time given in the Retry-After header.",
    "request_id": "REQUEST_ID",
    "retryable": true,
    "details": null
  }
}

message is English only. Handle errors by code.

Error Codes

CodeStatusretryableDescription
invalid_request400falseThe body, options, or attachment URLs don't follow the rules. See the table below for the shape of details.
model_not_supported400falseThe model is closed or the model ID doesn't exist.
invalid_api_key401falseThe key is missing, wrong, or deleted. When a team subscription ends, all of that team's keys are deleted.
insufficient_credits402falseYou don't have enough credits. Subscribe or top up.
not_found404falseThe job does not exist or does not belong to this workspace. You also get this for an unknown path or when you look up a closed model with the model detail request.
idempotency_conflict409falseYou sent a different body with the same Idempotency-Key.
generation_not_cancelable409falseJobs that aren't queued can't be canceled.
concurrency_limit_exceeded429trueThe limit for concurrent jobs in progress has been reached.
rate_limited429trueYou've exceeded the per-minute request limit. Wait the number of seconds in Retry-After, then send the request again.
internal_error500trueServer error. Try again in a moment.
service_unavailable503trueThe server couldn't respond for a moment. Try again shortly.
server_busy503trueThe server was busy downloading attachments for other requests and couldn't start downloading this request's attachments in time. Wait for the number of seconds in Retry-After, then send it again.

If retryable is true, you can send the same request again. The Retry-After header comes only with rate_limited and server_busy. The concurrency limit frees up when an earlier job finishes.

Requests rejected with a 4xx or 503 server_busy are not charged. Retrying after a 429 or 503 server_busy is charged only once.

The details of invalid_request take one of three shapes, depending on where the request was rejected.

detailsWhen
{ parameter, reason }Rejected by the model option or attachment checks, or by the checks on model and webhook_url in a create request, cursor and model in the job list, or Idempotency-Key. parameter names the field at fault.
{ issues: [{ path, message }] }Rejected by the body or query format check (for example limit or status in the job list). Each invalid field gets a path and a message. path is a string that joins the field path with dots, not an array (e.g. webhook_url).
nullThe body couldn't be read, such as broken JSON or a body over 100KB.

Generation failed

If a job fails after it's created, its status becomes failed and error includes code, group, and message. Credits are refunded.

JSON
{
  "id": "api_8f14e45fceea167a5a36dedd4bea2543",
  "status": "failed",
  "model": "MODEL_ID",
  "credit_cost": 150.03,
  "is_refunded": true,
  "created_at": "2026-11-17T09:00:00.123Z",
  "completed_at": "2026-11-17T09:00:41.876Z",
  "output_expires_at": null,
  "is_output_expired": false,
  "error": {
    "code": "PROMPT_CONTENT_MODERATION_BLOCKED",
    "group": "model_content_rejected",
    "message": "The model rejected the prompt or the output due to its content policy. Revise the prompt or try another model."
  },
  "output": null
}
GroupMeaningWhat to do
model_content_rejectedThe model rejected the prompt or output as a policy violationEdit the prompt and send it again.
content_filter_blockedBlocked by Dropshot's banned-word or moderation filterEdit the prompt and send it again.
invalid_promptThe prompt doesn't meet the model's input requirementsEdit the prompt and send it again.
copyright_detectedFlagged by a copyright checkReplace the attached file and send it again.
real_person_detectedDetected as a real personReplace the attached file and send it again.
invalid_reference_imageThe reference image doesn't meet the requirementsReplace the attached file and send it again.
invalid_reference_videoThe reference video doesn't meet the requirementsReplace the attached file and send it again.
invalid_reference_audioThe reference audio doesn't meet the requirementsReplace the attached file and send it again.
invalid_input_combinationAn attachment combination that can't be used togetherReplace the attached file and send it again.
subject_not_detectedNo person or object could be recognized in the attachmentReplace the attached file and send it again.
temporarily_unavailableTemporary outage at the model provider or on our sideTry again in a moment.
timeoutTimed outTry again in a moment.
generation_failedNo output was producedTry again in a moment.
file_processing_failedAn attachment or output file could not be processedTry again in a moment.
prompt_assist_failedPrompt translation or enhancement failedTry again in a moment.
insufficient_creditsNot enough creditsTop up credits or check your plan.
plan_or_subscription_issueA plan or subscription status issueTop up credits or check your plan.
invalid_requestRequest or configuration error, such as a wrong model or optionFix your request or contact us.
unknown_errorA failure whose cause couldn't be identifiedFix your request or contact us.

Handle failures by group. A failed job's error has no retryable.

code is the failure code for the cause and its name may change. message may also change, so don't compare it in your code.

Rate Limits

Limits count all keys together per workspace. Personal and team workspaces are counted separately.

ItemLimit
Concurrent jobs2 per workspace (queued + processing)
Generation requests20 per minute per workspace
Lookup requests120 per minute per workspace
API Keys10 per workspace
Request body100KB

Requests over the limit aren't queued and are rejected right away with a 429. Limit values may change during operation.

A body over 100KB is rejected with 400 invalid_request, not 413, and details is null.

Authenticated generation requests count toward the 20 per minute even when the model or option check rejects them (400).

Per-minute limits are counted in 1-minute windows. Right as the minute changes, up to twice the limit may briefly get through.

To stay within the limits:

  • Queue requests on your side so that no more than 2 jobs run at the same time.
  • On a 429, wait for Retry-After if present. Otherwise back off (1, 2, 4 seconds) with a little random jitter, then retry.
  • Status checks have their own limit, separate from generation requests. Use webhooks to poll less.

Related Docs