DocsGrok Video
Model
grok-video
Dynamic-duration video model that needs referenceTaskId for image-to-video.
Model supplement for /unified-video/quote and /unified-video/generateScope: api.generate
Best for
Teams that want a dynamic quote model with text and image modes.
Text-to-video
Image-to-video with referenceTaskId
Dynamic duration pricing
What you can send
- Required: model, prompt
- Optional: images (0-2), referenceTaskId, aspectRatio, duration, resolution, mode, projectId
- If images are present, referenceTaskId becomes required
Field rules
duration
Supported integer range: 6..30.
resolution
Supported: 480p, 720p.
mode
Default normal.
referenceTaskId
Required for image-to-video. Forwarded upstream as task_id.
Pricing formula
Resolution
Formula
480p
9 + (duration - 6) * 2
720p
17 + (duration - 6) * 2
Frontend notes
- Show referenceTaskId only when image mode is active.
- Allow any integer duration from 6 to 30.
- Use callback as the main completion flow.
Ready to test with your own key?
Create a general API key in Settings, then come back here to copy a request example.