LogoOmniVideo API

Errors

OmniVideo API Error Handling

Handle authentication, validation, billing, and task processing errors for Gemini Omni video generation.

Error response

{
  "code": 400,
  "message": "Bad Request: 'duration' must be between 3 and 15 seconds.",
  "data": null
}

Common errors

StatusCauseAction
400Invalid model, prompt, duration, aspect ratio, or mode.Validate request payload before submitting.
401Missing or invalid Bearer token.Create an API key and send it in the Authorization header.
402Insufficient credits.Top up credits or upgrade the account.
404Task ID not found.Confirm you are polling the task_id returned by /api/generate.
429Rate limit or upstream capacity pressure.Retry with exponential backoff.
500Temporary server or provider failure.Retry later and contact support if it persists.

Retry guidance

Do not retry validation errors unchanged

Fix 400-level parameter issues before submitting another generation task.

Use backoff for capacity errors

For 429 or 5xx responses, wait and retry with jitter instead of looping immediately.

Poll status at a steady interval

A 5 to 10 second interval is usually enough for status polling.