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.
{
"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
| Code | Status | retryable | Description |
|---|---|---|---|
invalid_request | 400 | false | The body, options, or attachment URLs don't follow the rules. See the table below for the shape of details. |
model_not_supported | 400 | false | The model is closed or the model ID doesn't exist. |
invalid_api_key | 401 | false | The key is missing, wrong, or deleted. When a team subscription ends, all of that team's keys are deleted. |
insufficient_credits | 402 | false | You don't have enough credits. Subscribe or top up. |
not_found | 404 | false | The 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_conflict | 409 | false | You sent a different body with the same Idempotency-Key. |
generation_not_cancelable | 409 | false | Jobs that aren't queued can't be canceled. |
concurrency_limit_exceeded | 429 | true | The limit for concurrent jobs in progress has been reached. |
rate_limited | 429 | true | You've exceeded the per-minute request limit. Wait the number of seconds in Retry-After, then send the request again. |
internal_error | 500 | true | Server error. Try again in a moment. |
service_unavailable | 503 | true | The server couldn't respond for a moment. Try again shortly. |
server_busy | 503 | true | The 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.
| details | When |
|---|---|
{ 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). |
null | The 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.
{
"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
}| Group | Meaning | What to do |
|---|---|---|
model_content_rejected | The model rejected the prompt or output as a policy violation | Edit the prompt and send it again. |
content_filter_blocked | Blocked by Dropshot's banned-word or moderation filter | Edit the prompt and send it again. |
invalid_prompt | The prompt doesn't meet the model's input requirements | Edit the prompt and send it again. |
copyright_detected | Flagged by a copyright check | Replace the attached file and send it again. |
real_person_detected | Detected as a real person | Replace the attached file and send it again. |
invalid_reference_image | The reference image doesn't meet the requirements | Replace the attached file and send it again. |
invalid_reference_video | The reference video doesn't meet the requirements | Replace the attached file and send it again. |
invalid_reference_audio | The reference audio doesn't meet the requirements | Replace the attached file and send it again. |
invalid_input_combination | An attachment combination that can't be used together | Replace the attached file and send it again. |
subject_not_detected | No person or object could be recognized in the attachment | Replace the attached file and send it again. |
temporarily_unavailable | Temporary outage at the model provider or on our side | Try again in a moment. |
timeout | Timed out | Try again in a moment. |
generation_failed | No output was produced | Try again in a moment. |
file_processing_failed | An attachment or output file could not be processed | Try again in a moment. |
prompt_assist_failed | Prompt translation or enhancement failed | Try again in a moment. |
insufficient_credits | Not enough credits | Top up credits or check your plan. |
plan_or_subscription_issue | A plan or subscription status issue | Top up credits or check your plan. |
invalid_request | Request or configuration error, such as a wrong model or option | Fix your request or contact us. |
unknown_error | A failure whose cause couldn't be identified | Fix 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.
| Item | Limit |
|---|---|
Concurrent jobs | 2 per workspace (queued + processing) |
Generation requests | 20 per minute per workspace |
Lookup requests | 120 per minute per workspace |
API Keys | 10 per workspace |
Request body | 100KB |
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.