Blue Whale APIBlue Whale API

Error Codes

Unified error response format and common error codes

Error Response Format

Task-level errors use a unified envelope (auth failures and an incomplete download return an OpenAI-compatible error format; see Authentication):

{ "code": "invalid_request", "message": "prompt is required", "data": null }
FieldDescription
codeError code (machine-readable)
messageError description (human-readable)
dataAdditional data, usually null

Common Error Codes

HTTPcodeDescriptionWhat to Do
400invalid_requestMissing or invalid parameter (e.g. empty prompt)Check the request parameters
400task_not_existTask does not existCheck the task_id
401—Key missing / invalid / disabled, OpenAI-compatible error (type: new_api_error)Check the Authorization header and key status
429Rate limitedRequest rate limit exceededSlow down; see Rate Limits
500get_task_failedFailed to query the taskRetry; contact support if it persists
500fail_to_fetch_taskUpstream request failedRetry
501not_implementedUnsupported operationCheck the endpoint and model

Task-level failures (generation failures) are surfaced by the query endpoint via status=FAILURE and the fail_reason field; see Query a Task.