MuseSpark
MuseSpark
Models & toolsVideo models

Veo 3.1 Lite API guide

Veo 3.1 Lite API: Generate video from a text prompt with Veo 3.1 Lite. This item exposes duration, resolution, aspect ratio, and GIF options; it does not expose image-reference inputs.

Model overview

Generate video from a text prompt with Veo 3.1 Lite. This item exposes duration, resolution, aspect ratio, and GIF options; it does not expose image-reference inputs.

API integration

DocumentationValue
API invocation identifierveo-3.1-lite
IntegrationAsync task API

Use this invocation identifier in API requests. Check your authorized model catalog for access. Follow the Quickstart for your first complete call.

Request parameters

Studio presets describe the form setup, not guaranteed server defaults. Send preset values explicitly to reproduce them.

promptstringNon-nullRequired

Text description of the video to generate.

Length: minimum 1.

resolutionstringNon-nullOptional

Video output resolution. Supports 720p (default), 1080p, and 4K. GIF output is limited to 720p.

Allowed values: "720p", "1080p", "4k".

Studio preset: "720p".

durationintegerNon-nullOptional

Video output duration in seconds. The model is fixed at 8 seconds.

Allowed values: 8.

Studio preset: 8.

aspect_ratiostringNon-nullOptional

Video output aspect ratio. Supports 16:9 (landscape) and 9:16 (portrait); defaults to 16:9.

Allowed values: "16:9", "9:16".

Studio preset: "16:9".

enable_gifbooleanNon-nullOptional

Whether to generate a GIF output as well. Disabled by default; GIF cannot be used with 1080p or 4K.

Studio preset: false.

nsfw_checkbooleanNon-nullOptional

Whether to run content moderation before submitting the video task. Disabled by default.

Studio preset: false.

No parameters match. Clear the search or reset the filters.

Model rules

  • When enable_gif is true, use 720p for resolution.

Parameter meaning

  • Veo 3.1 generation uses a fixed-duration request. Changing reference count does not request a longer video.

Dependencies

  • GIF output cannot be combined with the high-resolution video tiers for this integration.

Request examples

Replace example media URLs and YOUR_... input identifiers with your own valid resources. Examples are checked against the exported item schema; media access and paid execution are separate runtime checks.

Set MUSESPARK_API_KEY and a stable MUSESPARK_REQUEST_ID before submitting. Preserve the request ID for retries of the same request and use a new ID for new work. Python examples use requests; JavaScript examples use Node.js 20 or later. The standalone Quickstart includes task polling and recovery.

Standard request

curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
  -H "Authorization: Bearer $MUSESPARK_API_KEY" \
  -H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
  -H 'Content-Type: application/json' \
  -d '{
  "item_key": "veo-3.1-lite",
  "parameters": {
    "duration": 8,
    "enable_gif": false,
    "nsfw_check": false,
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "prompt": "A paper city under soft morning light"
  }
}'

Parameters used: duration · enable_gif · nsfw_check · resolution · aspect_ratio · prompt.

Output

Creation returns a task ID inside data. Poll that task until completion, then save data.result.output_urls and any data.result.batch_results. See the task lifecycle for terminal states, result retention, and errors.

Troubleshooting

For rejected inputs, check the field type, accepted values, and conditional requirements in Request parameters and Model rules. Correct the affected fields before submitting again.

If creation times out, preserve the request identity and any known task ID. Follow Errors, timeouts and retries before submitting again.

The public input snapshot was exported on 2026-11-09. Current prices and availability are listed in the model center.