Back to models
vertex-gemini

Google: Veo 3.1 Lite

veo-3.1-lite
vertex-gemini0 contextFrom $0.40 /sec

Veo 3.1 Lite is a high-throughput, lightweight video generation model supporting text-to-video and image-to-video workflows.

Total Context0
PricingFrom $0.40 /sec

Providers for Google: Veo 3.1 Lite

AnyInt routes requests to the best providers that are able to handle your prompt size and parameters, with fallbacks to maximize uptime.

vertex-gemini
Total Context0
PricingPriced by generation parameters

Sample code and API for Google: Veo 3.1 Lite

AnyInt generates a quickstart from this model's declared API operations, including complete polling flows for asynchronous media.

Create API key

Choose an operation and language that match this model.

Video GenerationAnyInt async media

Create a generation task, then poll its status for artifacts.

/v1/videos/generations
# 1. Create a generation task and save its ID.
TASK_ID=$(curl 'https://api.anyint.ai/v1/videos/generations' \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -d '{
  "model": "veo-3.1-lite",
  "prompt": "Describe a calm futuristic city at sunrise.",
  "duration_seconds": 5,
  "aspect_ratio": "16:9"
}' | jq -r '.task.id')

# 2. Poll until task.status is completed or failed.
curl 'https://api.anyint.ai/v1/async-tasks/'"$TASK_ID" \
  -H "Authorization: Bearer <YOUR_API_KEY>"