Skip to main content
POST
/
v1
/
predictions
curl --request POST \
  --url https://api.shuyou.ai/v1/predictions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "veo-3.1-lite-generate-preview",
  "function": "video",
  "input": {
    "prompt": "A cinematic shot of a majestic lion in the savannah at golden hour",
    "aspect_ratio": "16:9",
    "resolution": "720P",
    "duration": 8,
    "generate_audio": true
  }
}
'
{
  "data": {
    "task_id": "2c4d50261173430290971a2395a3b607",
    "task_status": "processing"
  }
}

Overview

Google Veo 3.1 Lite Generate Preview (veo-3.1-lite-generate-preview) supports:
  • Text-to-videoprompt only
  • First / last framefirst_frame_url, last_frame_url
Lite tier: resolutions up to 1080P (no 4K), no reference-image mode.

Input parameters

FieldRequiredDefaultNotes
promptYesMax 1000 characters
aspect_ratioNo16:916:9 or 9:16 only
resolutionNo720P720P or 1080P only
durationNo84, 6, or 8 (seconds)
generate_audioNotrueInclude generated audio
negative_promptNoNegative guidance text
first_frame_urlNoFirst keyframe image URL
last_frame_urlNoLast keyframe image URL

Authorizations

Authorization
string
header
required

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
enum<string>
default:veo-3.1-lite-generate-preview
required

Model ID. Use veo-3.1-lite-generate-preview for this endpoint.

Available options:
veo-3.1-lite-generate-preview
Example:

"veo-3.1-lite-generate-preview"

function
enum<string>
required

Task type. Must be video for video generation.

Available options:
video
Example:

"video"

input
object
required
webhook
string<uri>

Optional HTTPS callback URL when the task completes, fails, or is cancelled.

Response

Async task created

data
object
required