Skip to content

Veo 3.1 references

Generates a video that follows reference images or clips.

Model ID veo-3.1-references
Task reference-to-video
Output video
Family Veo
Status Active

Prices are live, so this page does not show them. GET /v1/models/veo-3.1-references returns the published price (price), and POST /v1/quotes returns the binding maximum for one request, with the processor that will run it. You are never charged more than the quoted maximum, and failed work is free. See Pricing and quotes.

Send these in input. Omitted parameters take their default; unknown parameters are refused with 422 parameter_unknown. The same schema is input_schema in GET /v1/models/veo-3.1-references.

Name Type Default Allowed Required Description
prompt string 1 to 20000 characters Yes Describe the video. The references keep the subject’s appearance.
duration integer 8 8 to 8 No Length of the video. Longer videos cost more. In seconds.
aspect_ratio string 16:9 16:9, 9:16 No Frame shape.
resolution string 720p 720p, 1080p, 4k No Output resolution. Higher resolutions cost more.
audio boolean true No Sound made with the video. Audio costs more on this model.
negative_prompt string Up to 1000 characters No Anything the video should not show.
seed integer 0 0 to 2147483647 No The same seed with the same settings gives a similar result. Omit it for a random seed.
count integer 1 1 to 4 No How many videos to make from this request. Each one is charged.

Each media input takes an asset ID (asset_…), a generation ID (gen_…, its first output), a public HTTPS URL or a small data: URI. URLs and data URIs are imported into the project first; see Uploading media.

Name Accepts How many Required Notes
references image 1 to 3 Yes
  • When Vertex AI (Google) runs this route, Google rewrites the prompt to enhance it before generating; this cannot be turned off.

Price the request first. A quote is free and starts nothing:

Quote
curl https://api.halationlab.ai/v1/quotes \
-H "Authorization: Bearer $HALATIONLAB_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d @- <<'JSON'
{
"model": "veo-3.1-references",
"input": {
"prompt": "The red ball from the reference bounces on a wooden table, slow motion",
"duration": 8,
"aspect_ratio": "16:9",
"references": [
"https://docs.halationlab.ai/media/sample-image.png"
]
}
}
JSON

Then start it, paying at most MAX_COST tokens. If the price is higher, nothing starts and the 402 max_cost_exceeded answer carries the quote:

Generate
MAX_COST=${MAX_COST:?Set MAX_COST to the most you will pay, in tokens}
curl https://api.halationlab.ai/v1/generations \
-H "Authorization: Bearer $HALATIONLAB_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Prefer: wait=60" \
-H "Content-Type: application/json" \
-d @- <<JSON
{
"model": "veo-3.1-references",
"input": {
"prompt": "The red ball from the reference bounces on a wooden table, slow motion",
"duration": 8,
"aspect_ratio": "16:9",
"references": [
"https://docs.halationlab.ai/media/sample-image.png"
]
},
"max_cost": $MAX_COST
}
JSON

The media URLs point at small sample files on this site. Replace them with your own asset IDs, generation IDs or URLs.