seedinteger
The seed for the random number generator.
google/veo3.1/liteVeo3.1 Lite is Google's text-to-video AI model. Turn written scripts and prompts into professional-quality video clips with realistic motion, lighting, and scene composition.
试用该模型
您的输出将显示在这里
完成输入,然后点击运行。
google/veo3.1/lite creates a cinematic video from written scene direction, interpreting subject action, environment, camera language, lighting, and pacing. Veo 3.1 improves instruction following, physical consistency, character continuity, and audiovisual quality while supporting more ways to anchor or continue a shot. This combination makes the model a practical choice when the creative outcome depends on those qualities rather than on a generic media conversion.
For production work with google/, this Lite text-guided video generation workflow prioritizes economical exploration for early concepts and repeated variants while retaining Veo's core motion and audiovisual abilities. The result is most reliable when the source material and creative brief clearly describe the intended subject, progression, visual or sonic character, and the qualities that must remain unchanged.
Cinematic prompt interpretation turns scene, action, lens, lighting, and camera language into moving imagery.
Improved physical coherence strengthens object interactions, character movement, and cause-and-effect across shots.
Cost-efficient generation enables broad iteration and high-volume video experimentation.
Native audio generation coordinates dialogue, ambience, and sound effects with the visual action.
| Duration | Audio off | Audio on |
|---|---|---|
| 4 seconds | $0.120 | $0.200 |
| 6 seconds | $0.180 | $0.300 |
| 8 seconds | $0.240 | $0.400 |
| Good fit | Consider alternatives |
|---|---|
| The model's named workflow matches the source material and intended output | A different input modality or model route is required |
| A managed asynchronous result is suitable for the production pipeline | A synchronous, interactive editor is essential |
| The documented controls cover the required duration, framing, or format | The project needs controls outside this endpoint's schema |
| Creative iteration benefits from a repeatable request structure | Exact deterministic pixels, frames, geometry, or samples are mandatory |
| A finished downloadable media asset is the desired deliverable | Editable source layers or a native project file are required |
For generation, state the intended result first, then add the subject or source treatment, progression, style, and delivery constraints. Keep one creative variable per phrase, use the documented field names for controls, and change one setting at a time when comparing results.
{
"aspect_ratio": "21:9",
"duration": 8,
"prompt": "A massive blue whale glides through crystal-clear deep ocean water, sunlight rays piercing through the surface above, bioluminescent plankton scattered around, cinematic slow motion",
"resolution": "720p"
}
| Spec | Value |
|---|---|
| Model ID | google/ |
| Inputs | aspect_ratio, auto_fix, duration, generate_audio, prompt, resolution, seed |
| Required inputs | prompt |
| Output fields | content_type, url |
| Execution | Async (submit, then poll for result) |
| Duration | 468 |
| Resolution | 720p / 1080p |
| Aspect Ratio | 21:916:93:24:35:41:14:53:42:39:16 |
开始构建
通过 SandBase Unified Run API 提交此模型。
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "google/veo3.1/lite",
"prompt": "A massive blue whale glides through crystal-clear deep ocean water, sunlight rays piercing through the surface above, bioluminescent plankton scattered around, cinematic slow motion",
"auto_fix": true,
"duration": 8,
"resolution": "720p",
"generate_audio": true
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"创建一个 SandBase API 密钥,并将其设置到服务器环境中。所有请求都使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它,也不要提交到仓库。
使用此模型 ID 及其输入向 /v1/run 发送 POST 请求。上方的请求示例包含提交和轮询。
使用返回的运行 ID 轮询,直到状态为 completed、failed 或 timeout。仅在 completed 后读取输出。
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"在模型的 image、video 或 audio 字段中传入一个可公开访问的文件 URL。支持的格式和限制显示在每个 Playground 输入项旁边。
在 Playground 中支持的图片字段上使用上传或替换控件。视频 URL 字段接受托管的 driving video;这并不表示支持视频上传。
seedintegerThe seed for the random number generator.
promptstring必填The text prompt describing the video you want to generate
auto_fixbooleanWhether to automatically attempt to fix prompts that fail content policy or other validation checks by rewriting them.
默认值:true
durationintegerThe duration of the generated video.
默认值:8
可选值:4, 6, 8
resolutionstringThe resolution of the generated video.
默认值:"720p"
可选值:"720p", "1080p"
aspect_ratiostringThe aspect ratio of the generated image.
可选值:"21:9", "16:9", "3:2", "4:3", "5:4", "1:1", "4:5", "3:4", "2:3", "9:16"
generate_audiobooleanWhether to generate audio for the video.
默认值:true
{
"model": "google/veo3.1/lite",
"prompt": "A massive blue whale glides through crystal-clear deep ocean water, sunlight rays piercing through the surface above, bioluminescent plankton scattered around, cinematic slow motion",
"auto_fix": true,
"duration": 8,
"resolution": "720p",
"generate_audio": true
}已完成的运行会在输出中展示结果。以下内容是该模型保存的示例,而不是新的生成结果。
尚未发布示例输出。请在运行完成后使用 Playground → Result → JSON 查看响应。