API reference

Errors

Failures use one envelope. Branch on error.code.

{
  "error": {
    "type": "invalid_request_error",
    "code": "invalid_model_parameter",
    "message": "language is not supported by Whisper",
    "param": "params.language",
    "request_id": "req_..."
  }
}
FieldTypeDescription
invalid_model_parametercodeA params field this model does not accept, or a value outside its range.
insufficient_creditscodeThe API wallet cannot cover this request.
gpu_unavailablecodeThe job stays queued while we scale. Retry automatically. After repeated misses the job fails and credits are released.
too_many_active_jobscodeThis account already has 10 jobs in flight. Wait for one to finish.
authentication_errortypeMissing or invalid Bearer token.