VEO3 Video Generation
Asynchronous processing mode, returns task ID for subsequent queries
كل الوثائق/v1/videos/generations- Supports multiple generation modes including text-to-video and image-to-video
- Supports 4K resolution output
- Generated video links are valid for 24 hours, please save them promptly
Note
Model name compatibility note: This endpoint also accepts the aliases
veo3.1-fast-ext(equivalent toveo3.1-fast),veo3.1-quality-ext(equivalent toveo3.1-quality), andveo3.1-lite-ext(equivalent toveo3.1-lite). Each alias is interchangeable with its model and produces identical results.
أمثلة على الطلبات
# model can be "veo3.1-fast", or the compatible alias "veo3.1-fast-ext"
curl --request POST \
--url https://api.apisea.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "veo3.1-fast",
"prompt": "Dolphins leaping in the azure ocean",
"duration": 8,
"aspect_ratio": "16:9",
"image_urls": ["https://cdn.example.com/doc/9998238783208208-9972597b-255d-4e7e-9649-e6ee38a837aa-image_task_01K88B53MTK41PP5KGDTG2PA5P_0.png"]
}'Authorization
AuthorizationstringrequiredAll API endpoints require Bearer Token authentication
Get your API Key:
Visit the API Key Management Page to get your API Key
Add to the request header:
Authorization: Bearer YOUR_API_KEYRequest Parameters
modelstringrequireddefault: veo3.1-fastVideo generation model name
Available models:
veo3.1-fast- Fast generation model, suitable for quick previews and iterations (compatible aliasveo3.1-fast-ext)veo3.1-quality- High quality generation model, suitable for final production (compatible aliasveo3.1-quality-ext)veo3.1-lite- Lightweight generation model, suitable for low-cost batch generation (compatible aliasveo3.1-lite-ext)
Example: "veo3.1-fast"
Note
For backward compatibility, the aliases
veo3.1-fast-ext(forveo3.1-fast),veo3.1-quality-ext(forveo3.1-quality) andveo3.1-lite-ext(forveo3.1-lite) remain usable.
nsfw_checkbooleandefault: falseWhether to run content moderation before submitting the video task.
true: useomni-moderation-latestto review prompts and input imagesfalseor omitted: do not send a moderation request, adding no moderation cost or latency (default)
promptstringrequiredText description for video generation
durationintegerVideo duration in seconds
Fixed value: 8 (VEO3 only supports 8 seconds duration)
aspect_ratiostringVideo aspect ratio
Supported formats:
16:9(Landscape)9:16(Portrait)
generation_typestringVideo generation type
Supported types:
frame- Frame-to-video (FL mode)reference- Reference image-to-video
If not specified, defaults based on image count: 2 images for frame-to-video, 3 images for reference image-to-video
Note: veo3.1-quality model does not support reference mode
Warning
veo3.1-litemodel does not support this parameter, do not pass it
image_urlsarray\Array of reference image URLs for image-to-video generation
Supports publicly accessible image URLs (http:// or https://)
Example: ["https://example.com/image.jpg"]
Limitations:
- Maximum 3 images
- For frame-to-video mode: first image is the start frame, second image is the end frame
- Maximum file size: 10MB
- Supported formats: .jpeg, .jpg, .png, .webp
Warning
veo3.1-litemodel does not support this parameter, do not pass it
resolutionstringVideo resolution
Supported values:
720p(Default)1080p4k
enable_gifbooleanEnable GIF output format. Default: false
Note: GIF and 1080p/4k resolution cannot be used simultaneously
official_fallbackbooleandefault: falseWhether to use official channel as fallback
false: Do not use (default)true: Use official channel
Warning
veo3.1-litemodel does not support this parameter, do not pass it
Response
codeintegerResponse status code
dataarrayResponse data array
Properties
statusstringTask status
submitted- Submitted
task_idstringUnique task identifier
الاستجابات
{
"code": 200,
"data": [
{
"status": "submitted",
"task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K"
}
]
}النماذج التي تستخدم نقطة النهاية هذه
هل وجدت مشكلة في هذه الوثائق؟ راسلنا عبر البريد الإلكتروني support@apisea.ai.