Краткий вывод
- sora-2-pro supports Text-to-Video, Image-to-Video, R2V, and Video Edit in one workflow.
- Use this model guide page to validate parameters with minimal request/response examples.
- Stabilize prompts here first, then move to production API integration.
Ключевые параметры
- model | string | обяз. | gemini_omni | - | Model identifier. Use the fixed value `gemini_omni`.
- prompt | string | обяз. | - | - | Main instruction describing the subject, action, scene, and style.
- aspect_ratio | string | опц. | 16:9 | 16:9 | 9:16 | Video aspect ratio. Defaults to `16:9`, corresponding to landscape or portrait output.
- duration | integer | опц. | 6 | 6 | 10 | Output duration in seconds. Defaults to `6` and currently supports only `6` and `10`.
- resolution | string | опц. | 720P | 720P | Output resolution. Currently only `720P` is supported; if omitted, the default value is used.
Частые ошибки
- 400 invalid_request_error: триггер=Request payload misses required fields or has invalid field types.; исправление=Validate model, mode, and input schema before request.; повтор=Retry only after fixing payload; avoid blind retries.
- 401 authentication_error: триггер=Missing Authorization header or invalid API key.; исправление=Verify Bearer token format and API key scope.; повтор=Retry after auth fix; rotate key if repeated failures continue.
- 429 rate_limit_exceeded: триггер=Request rate, concurrency, or current quota hits upstream rate limiting.; исправление=Apply exponential backoff first, then review request rate, concurrency, and quota usage.; повтор=Use exponential backoff (e.g., 1s/2s/4s) with jitter; if it persists, reduce submission pressure.
- 500 internal_error: триггер=Transient upstream error or internal processing failure.; исправление=Capture request id and trigger retry workflow.; повтор=Retry 2-3 times with short delays; escalate if persistent.