Model parameters
- Model IDs:
viduq2/viduq2-turbo/viduq2-pro - Pricing: see the model catalog 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:
sizequalityfps
aspect_ratio accepts the following values:
1:116:99:164:33:4
resolution accepts 540p, 720p, or 1080p.
duration accepts 1–10 seconds (default: 5 seconds).
Pass these additional options in extra_body:
subjects: subject content.style: style;generalfor general use oranimefor anime-style output.movement_amplitude: motion range;auto(default),small,medium, orlarge.bgm: add background music. Iftrue, the system selects music from its preset library. If omitted orfalse(default), no music is added.voice_id: voice ID specifying the voice used in the video.wm_url: watermark image URL.wm_position: position of the watermark on the image.off_peak: off-peak mode. Usetruefor off-peak generation orfalse(default) for immediate generation.payload: pass-through data, transmitted without processing.meta_data: metadata identifier passed through as a JSON string.
Pricing
Vidu Q2 pricing depends on the model, task, resolution, and duration:
For discounted GeekAI channels, multiply the listed rate by the channel multiplier. On the high-availability, speed-first text-to-video channel with multiplier
0.8, a standard 5-second 720p video with sound costs 0.46875 x 5 x 0.8 = 1.875 CNY.
Text to video
Describe the video in text:Image to video
viduq2-turbo and viduq2-pro support image-to-video.
First and last frames
viduq2-turbo and viduq2-pro support first-and-last-frame generation.
Reference to video
viduq2 and viduq2-pro support reference generation. On viduq2-pro,
duration defaults to 5 seconds and accepts 0–10. Set it to 0 to select the duration automatically.Asynchronous tasks
Video generation can take a while. We recommend GeekAI’s asynchronous task mode. The video API usesasync to control asynchronous generation. The default, false, waits for the finished video. Set it to true to receive a task ID you can poll.
Create a generation task
task_status field has four possible values:
pending: created and waiting for processingrunning: processingsucceed: completed successfully; the result is availablefailed: failed, possibly due to a content restriction or another error
succeed, then retrieve the generated video URL:
