Video Generation - MyTokenGate
1. Introduction
Video generation models create a short video from a text description (text-to-video), drive a video from an image (image-to-video), hold a subject and style steady across several reference images (reference-to-video), or reinterpret and restyle a source video (video-to-video and video editing). Common uses include short-form clips, concept demos, animated covers, and product showcases.
Generation is asynchronous: create a job to get a task ID, poll its status, and receive the video URL once it completes. The returned URL is a MyTokenGate address, retained for about 7 days, so download and keep your video soon after generation. See the Video Generation API for full details.
2. Supported Models
Four model families are available, covering five modes: text-to-video, image-to-video, reference-to-video, video-to-video, and video editing.
| Family | Models | Modes | Resolution |
|---|---|---|---|
| Seedance 2.0 | seedance-2.0, seedance-2.0-fast, seedance-2.0-mini | Text-to-video, image-to-video; seedance-2.0 also does video-to-video | 1080p on the base model, 720p on fast and mini |
| Wan 2.7 | wan-2-7-t2v, wan-2-7-i2v | Text-to-video, image-to-video | 720p, 1080p |
| HappyHorse | happyhorse-1.1-t2v, happyhorse-1.1-i2v, happyhorse-1.1-r2v, happyhorse-1.0-video-edit | Text-to-video, image-to-video, reference-to-video, video editing | 720p, 1080p |
| Kling O3 | kling-o3-standard, kling-o3-standard-reference, kling-o3-standard-v2v, kling-o3-standard-video-edit, kling-o3-pro-i2v, kling-o3-pro-v2v, kling-o3-pro-video-edit | Text-to-video, image-to-video, reference-to-video, video-to-video, video editing | 720p on standard, 1080p on pro |
Within the Seedance family, start with seedance-2.0-mini to iterate on prompts and composition, then move to seedance-2.0 for the final output.
Filter models by input mode. The model list returns a videoInputModes field declaring what a model accepts:
| Value | Meaning |
|---|---|
first_frame | Accepts a first-frame image, enabling image-to-video |
last_frame | Accepts a last-frame image |
reference_image | Accepts reference images, enabling reference-to-video |
An empty field means text-to-video only. Some model names hint at the mode (-i2v, -r2v), but videoInputModes is authoritative.
Per-model mode and resolution tables, with request examples for each family, are in the Video Generation API.
3. Prompt Guidance
Describe the action and scene in chronological order: concrete movement, appearance, camera angle, and environment, all in one continuous paragraph that starts with the action. Think like a photographer writing a shot list, and keep it under 200 words.
A structure that works well:
- Open with the main action. Example: A woman with light skin, wearing a blue jacket and a black hat with a veil.
- Add movement and gesture. Example: She first looks down and to her right, then raises her head back up as she speaks.
- Specify appearance precisely. Example: She has brown hair styled in an updo, light brown eyebrows, and a white collared shirt under her blue jacket.
- Set the background. Example: The background is out of focus, but shows trees and people in period clothing.
- State the camera angle and movement. Example: The camera remains stationary on her face as she speaks.
- Describe light and color. Example: The scene is captured in real-life footage, with natural lighting and true-to-life colors.
- Note any change or event. Example: A gust of wind blows through the trees, causing the woman’s veil to flutter slightly.
4. Three Generation Modes
The mode is not a request field. It is derived from the role values on the content blocks: whatever you send determines the mode.
| Mode | Content | Rules |
|---|---|---|
| Text-to-video | text only | No image, video, or audio blocks |
| Image-to-video | text + image_url with role: first_frame, optionally image_url with role: last_frame | first_frame is required and limited to one; last_frame at most one |
| Reference-to-video | text + image_url with role: reference_image, optionally video_url (role: reference_video) and audio_url (role: reference_audio) | At least one reference image; at most 3 reference videos and 3 reference audios |
Image-to-video and reference-to-video cannot be combined. A request that contains first_frame must not contain reference_image, and the reverse. They serve different purposes: first and last frames say where the shot starts and ends, reference images say what the people and objects look like.
Asset limits per request:
| Kind | Limit |
|---|---|
| Images | 9 reference images, or 1 first frame plus 1 last frame |
| Videos | 3 |
| Audio | 3 |
Images, videos, and audio must be reachable over public HTTPS. An aspect ratio of 16:9, 9:16, or 1:1 is recommended; output resolution follows the input ratio.
Request formats are in the Video Generation API.
5. Video-to-Video and Video Editing
Video-to-video adds a source video to the prompt; the model reinterprets or restyles it while keeping the original motion and pacing. It suits stylistic remakes and refreshing existing footage.
Provide the source video over public HTTPS, ideally close in duration to the intended output. Because the input includes video, it costs more than text-to-video at the same resolution. Supported by seedance-2.0, kling-o3-standard-v2v, and kling-o3-pro-v2v.
Video editing is closely related: it also takes a source video and rewrites the picture according to a text instruction, offered by happyhorse-1.0-video-edit, kling-o3-standard-video-edit, and kling-o3-pro-video-edit. The request shape is identical — a single source video block in content.
6. Billing
Video is billed on output, under one of two meters depending on the model’s pricing configuration:
- Per job (
video_output): one charge per generated video, regardless of duration - Per second (
video_output_per_second): charged by generated duration
Creating a job pre-authorises an amount based on the estimate, and settles against actual usage on completion. If generation fails, the pre-authorisation is released and nothing is charged. Prices vary by model and resolution (1080p costs more); see Billing.
Because billing is on output, input assets cost nothing extra — the same prompt with 1 reference image costs the same as with 9.
7. Managing Jobs
| Operation | Endpoint |
|---|---|
| Create a job | POST /v1/videos |
| Get one job | GET /v1/videos/:id |
| List jobs | GET /v1/videos, paginated |
| Delete a job | DELETE /v1/videos/:id |
Jobs live on the server, so changing devices or clearing the browser cache loses nothing. Deletion is soft: the row is kept for reconciliation but no longer appears in lists or lookups. A job that has not settled cannot be deleted and returns TASK_NOT_SETTLED.
The id returned at creation is the task identifier used for polling and deletion.
8. Try It and Call It
- Try it: sign in to the console, open the Video tab in the Playground, pick a mode, and enter your prompt.
- Call it: see the Video Generation API for complete examples of creating a job and polling for the result.