1. Video
Nebula-API操作文档
🇺🇸English
  • 🇨🇳中文
  • 🇺🇸English
  • Chat
    • General Text Dialogue Interface Document
    • Tongyi Qianwen General Dialogue Interface Document
    • DeepSeek General Dialogue Document
    • GPT Chat General Dialogue Document
    • Grok Model (xAI) General Dialogue Interface Document
  • Image
    • General Image Generation Interface Document
    • Nano Banana Image Generation Interface Document
    • Tongyi Qianwen Text to Image Model Interface Document
    • Tongyi Qianwen Image Editing Model Interface Document
  • Video
    • Sora-2 interface document
    • Alibaba Wanxiang Wan2.5 Tu Sheng Video Interface Document
    • Google Veo Video Model Interface Document
    • General Video Generation Interface Document
  • AI App
    • Cherry Studio Integration Guide
    • LangChain Development Framework Integration Guide
    • Cursor Code Editor Integration Guide
    • Claude Code and other client integration guidelines
    • Cline (VS Code) AI Programming Assistant Integration Guide
    • Immersive Translation Integration Guide
  • Real time conversation
    • Realtime real-time conversation document
  1. Video

Google Veo Video Model Interface Document

Nebula Veo Video Generation Quick Start#

This document is intended for API users and describes how to invoke the Google Vertex Veo model to generate videos via the Nebula unified interface. It covers request formats, parameter descriptions, and common examples.
Supported models: veo-3.1-generate-preview, veo-3.1-fast-generate-preview, veo-3.0-generate-preview, veo-3.0-fast-generate-001.

1. Basic Information#

ItemContent
Base URLhttps://llm.ai-nebula.com
Endpoint PathPOST /v1/video/generations
Authentication MethodAuthorization: Bearer <API Key>
Content-Typeapplication/json
Task ModeAsynchronous: Submit Task → Poll Status → Get Result

2. Request Parameters#

FieldTypeRequiredDescription
modelstringYesModel name: veo-3.1-generate-preview, veo-3.1-fast-generate-preview, veo-3.0-generate-preview, veo-3.0-fast-generate-001.
promptstringYesText prompt describing the video content to be generated.
durationSecondsintNoVideo duration (seconds), supports 4 / 6 / 8, default 4.
aspectRatiostringNoAspect ratio, only supports 16:9 or 9:16, default 16:9.
resolutionstringNoResolution options, 720p or 1080p, default 1080p.
fpsintNoFrame rate, default 24, can be overridden as needed.
sampleCountintNoNumber of videos generated per request, range 1-4, default 1.
generateAudioboolNoWhether to generate synchronized audio, default false; fast models will ignore this parameter and always output video with audio.
personGenerationstringNoPerson generation policy: allow_all (all ages) / allow_adult (adults only) / dont_allow (prohibited), default allow_all.
addWatermarkboolNoWhether to add a watermark, default false.
seedintNoRandom seed, fixing it allows for reproducible results.
imagestringNoReference image for the first frame, supports HTTP(S) URL or Base64 Data URI.
lastFramestringNoReference image for the last frame, supports HTTP(S) URL or Base64 Data URI.
Tip
If image is provided, Veo will use the first frame as the starting visual for transition; providing lastFrame simultaneously allows for first and last frame constraints.

3. Submission Examples#

3.1 Curl#

3.2 Python#

4. Query Task#

Endpoint: GET /v1/video/generations/{task_id}
Return Example (Success, sampleCount = 4):
{
 "task_id": "cHJvamVjdHMv...",
 "status": "succeeded",
 "format": "mp4",
 "url": [
  "https://nebula-ads.oss-cn-guangzhou.aliyuncs.com/2025/11/18/abc123/veo-demo-1.mp4",
  "https://nebula-ads.oss-cn-guangzhou.aliyuncs.com/2025/11/18/abc123/veo-demo-2.mp4",
  "https://nebula-ads.oss-cn-guangzhou.aliyuncs.com/2025/11/18/abc123/veo-demo-3.mp4",
  "https://nebula-ads.oss-cn-guangzhou.aliyuncs.com/2025/11/18/abc123/veo-demo-4.mp4"
 ],
 "metadata": {
  "durationSeconds": 12,
  "aspectRatio": "9:16",
  "resolution": "1080p",
  "fps": 24,
  "generateAudio": true,
  "response": {
   "videos": [
    {
     "mimeType": "video/mp4",
     "encoding": "mp4",
     "url": "https://nebula-ads.oss-cn-guangzhou.aliyuncs.com/2025/11/18/abc123/veo-demo-1.mp4"
    },
    {
     "mimeType": "video/mp4",
     "encoding": "mp4",
     "url": "https://nebula-ads.oss-cn-guangzhou.aliyuncs.com/2025/11/18/abc123/veo-demo-2.mp4"
    },
    {
     "mimeType": "video/mp4",
     "encoding": "mp4",
     "url": "https://nebula-ads.oss-cn-guangzhou.aliyuncs.com/2025/11/18/abc123/veo-demo-3.mp4"
    },
    {
     "mimeType": "video/mp4",
     "encoding": "mp4",
     "url": "https://nebula-ads.oss-cn-guangzhou.aliyuncs.com/2025/11/18/abc123/veo-demo-4.mp4"
    }
   ]
  }
 }
}
url field: A string when only 1 video is generated, an array of strings when multiple videos are generated.
sampleCount = 1: "url": "https://.../veo-demo-1.mp4"
sampleCount > 1: "url": ["https://.../veo-demo-1.mp4", "https://.../veo-demo-2.mp4", ...]
The metadata.response.videos array appends a url field, allowing direct access to the final address of each video segment.
Other fields (durationSeconds, aspectRatio, generateAudio, etc.) will echo the parameters used during invocation for easy tracking.

5. Common Input Combinations#

ScenarioRequired FieldsOptional Fields
Pure Text Generationmodel, promptdurationSeconds, aspectRatio, resolution, generateAudio
First Frame Referencemodel, prompt, imageOther fields same as above
Start and End Frame Constraintsmodel, prompt, image, lastFrameSame as above
High Resolution Generationmodel, prompt, resolution, aspectRatiofps, generateAudio

6. Response Status Description#

StatusDescription
submitted / queuedTask is queued, waiting to start.
in_progressTask is processing, can be polled repeatedly.
succeededGeneration successful, url is the final video address (string or string array).
failedTask failed, error field provides error code and information.

7. Tips#

It is recommended to poll the task status every 3~5 seconds to avoid triggering rate limits.
If url is a string array, please download individually according to your needs; a single string can be used directly for <video> playback or saved to disk.
If audio generation is needed, please set generateAudio to true, and the system will automatically select the billing tier that includes audio.
The default frame rate is 24; the fps parameter can be passed to override this if necessary.
If failed is returned and the message suggests a policy issue, try modifying the prompt or reducing the duration/resolution before retrying.
Fast models (veo-3.0-fast-generate-001, veo-3.1-fast-generate-preview) include audio by default and ignore the generateAudio parameter; they can be called directly as scenarios with audio.
修改于 2025-12-04 07:49:18
上一页
Alibaba Wanxiang Wan2.5 Tu Sheng Video Interface Document
下一页
General Video Generation Interface Document
Built with