Skip to main content
POST
/
veo-3.1-t2v
/
async
curl --request POST \
  --url https://api.modellix.ai/api/v1/google/veo-3.1-t2v/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "A majestic eagle soaring over snow-capped mountain peaks at sunrise"
}
'
{
  "code": 0,
  "message": "success",
  "data": {
    "status": "pending",
    "task_id": "task-t2v001",
    "model_id": "google/veo-3.1-t2v",
    "get_result": {
      "method": "GET",
      "url": "https://api.modellix.ai/api/v1/tasks/task-t2v001"
    }
  }
}

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

Veo 3.1 and Veo 3.1 Fast text-to-video request. Supports resolutions up to 4K and optional referenceImages for style/character consistency.

prompt
string
required

Video description text

Minimum string length: 1
Example:

"A majestic eagle soaring over snow-capped mountain peaks at sunrise"

referenceImages
string[]

Optional style/character reference images for text-to-video generation (up to 3). Each item must be a base64 data URI.

Maximum array length: 3
Example:
[
"data:image/jpeg;base64,/9j/ref1...",
"data:image/jpeg;base64,/9j/ref2..."
]
aspectRatio
enum<string>
default:16:9

Video aspect ratio

Available options:
16:9,
9:16
Example:

"16:9"

durationSeconds
enum<string>

Video duration in seconds (string type)

Available options:
4,
6,
8
Example:

"8"

resolution
enum<string>

Video resolution. Note: 1080p and 4k are only available for 8-second duration.

Available options:
720p,
1080p,
4k
Example:

"1080p"

personGeneration
enum<string>

Person generation policy

Available options:
allow_all
Example:

"allow_all"

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required