Inputlive schema
Sign in to run this model with your own API key. Sign in →
Veo 3.1 是一种用于生成 8 秒视频(720p、1080p 或 4k)的模型,可原生生成音频。
Sign in to run this model with your own API key. Sign in →
Run the form on the left. Results, polling status and cURL appear under the form.
This model is priced by the usage dimensions listed here. Compare all pricing.
List prices in USD. Your effective price also depends on the billing group attached to your API key.
veo-3.1veo-3.1veo-3.1veo-3.1/v1/jobsconst BASE_URL = "https://api.dreamtoai.com";
const API_KEY = process.env.MIX_API_KEY;
const headers = {
"Authorization": `Bearer ${API_KEY}`,
"Content-Type": "application/json",
};
const payload = {
"model": "veo-3.1",
"input": {
"prompt": "一段自然纪录片风格的雪山航拍镜头",
"image": "https://example.com/image.png",
"lastframe": [
"https://example.com/ref.png"
],
"referenceImages": [
"https://example.com/ref.png"
],
"video": [
"https://example.com/ref.mp4"
],
"aspectratio": "16:9,9:16",
"resolution": "720p,1080p,4k",
"generate_audio": false,
"negative_prompt": "低清晰度、闪烁、变形",
"durationseconds": "4,6,8"
}
};
const submit = await fetch(`${BASE_URL}/v1/jobs`, {
method: "POST",
headers,
body: JSON.stringify(payload),
}).then((r) => r.json());
const status = await fetch(`${BASE_URL}/v1/jobs/${submit.id}`, { headers })
.then((r) => r.json());
console.log(status);
Create a key in Console → API Keys and replace the placeholder in the sample.
README
Veo 3.1 是一种用于生成 8 秒视频(720p、1080p 或 4k)的模型,可原生生成音频。
| Parameter | Required | Description |
|---|---|---|
promptstring | Required | Text description of what to generate. |
imageimage | Optional | Reference image to guide the result. |
lastframestring | Optional | 参考图 URL |
referenceImagesstring | Optional | 参考图 URL |
videovideo | Optional | 参考视频 URL |
aspectratiostring | Optional | 画幅比例 Default: 16:9. |
resolutionstring | Optional | Output resolution. Default: 720p. |
generate_audioboolean | Optional | Generate synchronized audio with the video. Default: false. |
negative_promptstring | Optional | What to keep out of the result. |
durationsecondsstring | Optional | 时长 Default: 4. |
Write the prompt like a shot list: the more you direct, the more the model delivers.
Open with subject, setting, action, style and camera in one sentence.
A cyclist rides along a foggy forest road at dawn, cinematic, slow side tracking shot.
Split the clip into timed beats, such as 0–3s and 3–6s, and give each beat one clear action.
Use shot sizes (wide, medium, close-up) and moves (push in, pan, orbit, handheld) directly.
End with what holds for the whole clip: lighting, color palette, mood and sound.
| Prompt | |
|---|---|
| Weak | a dog running |
| Strong | A golden retriever sprints across a wet beach at sunset, chasing a red ball. 0–2s: low tracking shot beside the dog, sand spraying. 2–5s: it catches the ball and turns to the camera, slow push in. Warm backlight, light sea spray, shallow depth of field, only the sound of waves. |
| Billing item | Price | Official price |
|---|---|---|
| 4 - 720p | $1.28 per request | |
| 6 - 720p | $1.92 per request | |
| 8 - 720p | $2.56 per request | |
| 8 - 1080p | $2.56 per request |
That is 20% below the official list price.
Example: 10 runs at 4 - 720p cost $12.80.
List prices in USD. Your effective price also depends on the billing group attached to your API key. Compare all pricing
gemini-3-1-flash-lite-imagegemini-3-1-flash-imagenano-banana-2nano-banana-proBrowse all video modelsBrowse API Market
Veo 3.1 是一种用于生成 8 秒视频(720p、1080p 或 4k)的模型,可原生生成音频。
Send POST /v1/jobs with the model ID veo-3.1 and your API key. Ready-to-run samples are in the API section above.
Requests are billed at the prices listed above and charged to your wallet. Final cost depends on usage and the billing group attached to your API key.
Create one in Console → API Keys. The same key works for every model on the gateway.
Yes. You can use what you generate in commercial projects, subject to the model provider’s terms.
Veo 3.1 是一种用于生成 8 秒视频(720p、1080p 或 4k)的模型,可原生生成音频。