Model parameters
Model parameters
- Model ID:
grok-imagine-video - Pricing: see the model details page for current rates.
- Endpoint:
https://geekai.co/api/v1/videos/generations - Parameters: Video API reference
- Authentication: Get an API key
The following shared video API parameters are not supported:
negative_promptimage_tail(first-frame generation only)with_audio(Grok Imagine Video includes audio by default)qualitysizefpswatermark
aspect_ratio):
1:1: social media and thumbnails16:9/9:16: widescreen, mobile devices, and feature films4:3/3:4: presentations and portraits3:2/2:3: photography
resolution):
480p: standard definition (default)720p: high definition
duration of 1–15 seconds (default: 5 seconds).
Pricing
Grok Imagine Video pricing depends on duration and resolution:
Additional charges:
- Reference images cost 0.015 CNY each.
- Reference video costs 0.075 CNY per input second.
0.8, a 5-second Grok Imagine Video clip at 720p costs 0.525 x 5 x 0.8 = 2.1 CNY.
Text to video
Set resolution and aspect ratio explicitly with
resolution and aspect_ratio. On official channels, use duration to set duration. See Model parameters above for supported values.Query generation status
Query the generation status with the task ID (task_id) from the asynchronous response:
video_result. The link expires after seven days by default.
Generate from the first frame
Pass the first frame inimage. The model generates a video starting from that image:
Generate from reference images
Grok Imagine Video accepts up to seven reference images of people, characters, or products to preserve the subject’s appearance.Do not combine reference images and first-frame generation:
image and images cannot be supplied together.Video editing
Grok Imagine Video can edit a supplied video, using its content as a reference for the new video.- Maximum duration: 8.7 seconds.
- Use MP4 or a video that can be transcoded to MP4, such as H.265, H.264, or AV1.
- When editing,
duration,aspect_ratio, andresolutionhave no effect. The output matches the reference video’s duration, aspect ratio, and resolution.
