curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gemini-omni-1.1-flash-reference-to-video",
"prompt": "Keep the character appearance and camera motion from the references.",
"image_urls": [
"https://example.com/character.png",
"https://example.com/scene.png"
],
"quality": "720p",
"aspect_ratio": "16:9",
"duration": 3
}
'{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "gemini-omni-1.1-flash-reference-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "processing",
"task_info": {
"can_cancel": false,
"estimated_time": 60,
"video_duration": 3
},
"type": "video",
"usage": {
"billing_rule": "per_token",
"credits_reserved": 102.34
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: gemini-omni-1.1-flash-reference-to-video",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}Gemini Omni 1.1 Flash Reference-to-Video
- Generate a video with native audio from reference images, optional reference videos, and a text prompt
image_urls: Reference image URL array. Required; publicly documented maximum: 10 images. HTTP/HTTPS only.video_urls: Optional reference video URLs, up to 3 directly reachable HTTP/HTTPS MP4 files, each no longer than 10 seconds.quality: Output resolution: 360p, 720p, 1080p, or 4k. Default: 720p.duration: Video duration in seconds. Integer from 3 to 10; default 3.aspect_ratio: Aspect ratio: 16:9, 9:16, or auto; default auto.- The model generates synchronized native audio automatically.
- Write negative requirements directly in prompt.
- Asynchronous processing: query task status
- Generated links remain valid for 7 days; save them promptly.
curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gemini-omni-1.1-flash-reference-to-video",
"prompt": "Keep the character appearance and camera motion from the references.",
"image_urls": [
"https://example.com/character.png",
"https://example.com/scene.png"
],
"quality": "720p",
"aspect_ratio": "16:9",
"duration": 3
}
'{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "gemini-omni-1.1-flash-reference-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "processing",
"task_info": {
"can_cancel": false,
"estimated_time": 60,
"video_duration": 3
},
"type": "video",
"usage": {
"billing_rule": "per_token",
"credits_reserved": 102.34
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: gemini-omni-1.1-flash-reference-to-video",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}Authorizations
##All endpoints require authentication using a Bearer Token##
Get your API Key:
Visit the API Key management page to obtain your API Key
Add it to the request header:
Authorization: Bearer YOUR_API_KEY
Body
Reference image URL array. Required; supports 1 to 10 images for constraining subjects, style, or elements.
Input requirements:
- HTTP/HTTPS image URLs only
- Supported formats:
png,jpeg,webp
1 - 10 elements[
"https://example.com/character.png",
"https://example.com/scene.png"
]
Optional reference video array; up to 3 videos.
Videos can provide motion, camera movement, or style references and may be used together with image_urls.
Input requirements:
- HTTP/HTTPS video URLs only
- Format:
mp4 - Each video must be no longer than
10seconds
Billing: Every reference video contributes input tokens.
1 - 3 elements["https://example.com/reference.mp4"]
Video resolution; default 720p.
Supported values:
360p: landscape 640×360 / portrait 360×640720p: landscape 1280×720 / portrait 720×1280; default1080p: landscape 1920×1080 / portrait 1080×19204k: landscape 3840×2160 / portrait 2160×3840
Orientation is controlled by aspect_ratio: 16:9 produces landscape and 9:16 produces portrait.
Billing: Video output is billed by output tokens, which scale linearly with resolution. Relative to 720p, 360p uses about one third, 1080p about 1.5×, and 4k about 3×. Actual charges are based on generated usage.
360p, 720p, 1080p, 4k "720p"
HTTPS callback URL to notify when the task completes
Callback timing:
- Triggered when the task completes (completed), fails (failed), or is cancelled (cancelled)
- Sent after billing is confirmed
Security restrictions:
- HTTPS protocol only
- Callbacks to internal IP addresses are forbidden (127.0.0.1, 10.x.x.x, 172.16-31.x.x, 192.168.x.x, etc.)
- URL length must not exceed
2048characters
Callback mechanism:
- Timeout:
10seconds - Up to
3retries on failure (retried1s /2s /4s after each failure respectively) - The callback body format matches the response of the task query endpoint
- A 2xx status code from the callback URL is treated as success; other status codes trigger a retry
"https://your-domain.com/webhooks/video-task-completed"
Response
Video task created successfully