Veo 3.1 API
Veo 3.1: Google's video model with native audio
About this model
Veo 3.1 is Google’s video generation model. Google documents it as producing 8-second videos at 720p, 1080p or 4K with natively generated audio, from text prompts or reference images.
It is the standard-quality model of the family; Veo 3.1 Fast trades some of that for lower latency.
Pick Veo 3.1 for final-quality clips and Fast for drafts. Clips are short, so longer videos need several generations.
Use cases
- Cinematic short clips with sound
- Image-to-video animation
- Concept and storyboard videos
Input and output
- Input
- Text prompt, optional image
- Output
- Video with audio
Developer
- Developer
- Type
- Video clips
Veo 3.1 request example
Use https://gatelum.com/v1 as the base URL and pass google/veo-3.1 in the model field. You create the key in your account after signing up.
# Requires jq.
(
set -e
job=$(
curl --silent --show-error --fail-with-body \
--header 'Authorization: Bearer glt_YOUR_KEY' \
'https://gatelum.com/v1/videos' \
--header "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "google/veo-3.1",
"prompt": "Waves slowly rolling onto a sandy beach, aerial view",
"seconds": 5
}
JSON
)
job_id=$(printf '%s\n' "$job" | jq -er '.id')
while :; do
case "$(printf '%s\n' "$job" | jq -er '.status')" in
processing) sleep 5 ;;
succeeded) printf '%s\n' "$job" | jq -r '.url'; break ;;
*) printf '%s\n' "$job" >&2; exit 1 ;;
esac
job=$(curl --silent --show-error --fail-with-body \
--header 'Authorization: Bearer glt_YOUR_KEY' \
'https://gatelum.com/v1/videos/'"$job_id")
done
)