OperatePlatform API v1

Errors and recovery

Use the canonical error code, correlation ID, retry metadata, and retained idempotency key to choose one safe next action.

Canonical error shape

JSON
json
{
  "error": {
    "code": "max_cost_exceeded",
    "message": "The current quote exceeds max_cost_usd.",
    "correlation_id": "corr_example",
    "doc_url": "https://autocontentapi.com/developers/errors",
    "details": {}
  }
}

Recovery matrix

HTTPRepresentative codesAction
400invalid_request, option/model/voice/avatar validation codesCorrect the request; do not retry unchanged.
401 / 403unauthorized, forbiddenRefresh OAuth or use a key with the required scope.
402payment_requiredAdd prepaid USD, re-preview, then explicitly retry.
404not_foundCheck the account-owned resource ID.
409idempotency_conflict, idempotency_in_progressReuse the key only with the identical body; poll when directed.
422project_not_ready, Source/input/compatibility errorsWait for readiness or change the selected resources.
429rate_limited, provider_operation_limit_exceededRespect Retry-After or the authoritative reset.
500 / 502 / 503internal_error or provider availabilityRetry only safe reads or the identical keyed mutation.

Ambiguous transport outcomes

If a keyed mutation may have reached the service, do not create a new key. Retry the exact method, path, body, and key or inspect the returned resource when available. Never automatically replay a consumed one-shot upload stream.