Developer documentationError handling

Error handling

H3 video task API · /api/v3

Error response

JSON · Parameter error example
{
  "error": {
    "code": "InvalidParameter",
    "message": "Check model, content and generation parameters",
    "request_id": "REQUEST_ID"
  }
}

Save the HTTP status,error.code, error.message and request ID. Gateway and middleware error codes may differ; do not rely only on example strings.

HTTP status codes

HTTPMeaningRecommended action
401Authentication failedCheck the Bearer key.
402Insufficient admission budgetAsk the administrator to adjust the request budget. This is not the amount already billed monthly.
403Account / model access deniedCheck account status and model permissions.
404Task not found or expiredCheck the account, ID and query protocol.
409Idempotency / state conflictCheck whether the same key was used with a different request or the task can no longer be cancelled.
413Input too largeReduce image or request size.
422Unsupported parameter or imageCheck data types, image format and model specifications.
429Rate limit / queue fullFollow Retry-After and keep the idempotency key.
500 / 502 / 503Service error / capacity unavailableRetry with backoff; keep the idempotency key for the same creation request.

Avoid duplicate generation

Network timeouts do not cancel server-side tasks. If you have an ID, keep querying it. If creation returned no ID, retry the same request with its original idempotency key.