Errors and rate limits

Sume returns structured public errors. Error bodies include a request id that is safe to share with Sume support.

Common API errors

StatusCodeMeaning
400invalid_request or bad_requestRequest body, query, path, or headers are invalid.
401unauthorizedAPI key is missing or invalid.
402insufficient_creditsBalance is not sufficient for the requested generation.
404not_foundResource does not exist in the current workspace.
409job_not_completed or job_not_cancelableThe requested job operation is not valid for the current status.
413payload_too_largeRequest body exceeds the configured API limit.
429rate_limitedToo many requests in the current window.
429queue_fullWorkspace generation concurrency plus queue capacity is full.
503provider_not_configured, provider_capacity_exceeded, or storage configuration errorsRuntime dependency is unavailable or at capacity.

Request id

The API exposes the Sume request id in the response body and response headers. Include it when reporting an issue. Do not include API keys, signed URLs, raw media URLs, or private workspace/user ids.

Rate-limit headers

Public API responses can include:

Back off when you receive 429. Use retry-after when present. Do not retry unsafe submit requests without an Idempotency-Key.

queue_full is different from ordinary request rate limiting. It means Sume cannot accept another paid generation job for the workspace until an existing queued or processing job finishes or is canceled. Concurrency being full by itself is not an error; Sume accepts valid jobs as queued while queue capacity remains. See Generation admission.

Provider and worker backpressure

Generation can also return capacity or runtime errors before provider work is accepted.

CodeMeaningClient behavior
provider_capacity_exceededSume's provider dispatch queue is full.Retry later with the same idempotency key.
provider_not_configuredProvider execution is unavailable in this runtime.Do not retry aggressively; check catalog/runtime status.
job_ledger_not_configuredJob persistence is unavailable.Treat as service unavailable.
media_fetch_failed or storage configuration errorsSume could not fetch or mirror media safely.Check that input media is a public HTTPS image URL, then retry or contact support with the request id.

Job errors

Failed jobs expose public error metadata such as category, stage, retryability, retry-after seconds, public reason, and next action. Internal provider payloads are not public API fields.

Common job error categories include:

CategoryTypical next action
validationFix input.
authCheck API key and workspace access.
quotaAdd funds or lower request cost.
provider_unavailableRetry later.
provider_rejectedInspect events and fix unsupported input.
provider_timeoutPoll status or retry later.
media_mirror_failedInspect events; result may not have a Sume media URL.
worker_timeoutPoll status or retry later.
internalInspect events and contact support with request/job id.

Status vocabulary

ObjectValues
Job statusqueued, processing, completed, failed, canceled
Resource statusprocessing, ready, failed, canceled, archived
Webhook delivery statuspending, delivering, delivered, retrying, failed, exhausted