Veo 3.1

Transform static images into dynamic, high-quality videos with synchronized audio and precise creative control.

~69.92s
$0.800 - $3.20 per generation
 1import requests
 2import json
 3
 4url = "https://api.segmind.com/v1/veo-3.1"
 5headers = {
 6    "x-api-key": "YOUR_API_KEY",
 7    "Content-Type": "application/json"
 8}
 9
10data = {
11    "prompt": "A woman is giving a keynote presentation at a tech conference, wearing a sleek white blazer with the Veo 3.1 logo subtly embroidered, highlighted by ambient blue stage lighting. She is on a modern conference stage with geometric patterns and LED screens behind her, discussing how Veo 3.1 can integrate reference images to enhance AI-generated video content. The Veo 3.1 logo is also displayed prominently on a large digital screen behind her",
12    "duration": 8,
13    "resolution": "720p",
14    "aspect_ratio": "16:9",
15    "generate_audio": true,
16    "negative_prompt": "no black and white, no sharp angles"
17}
18
19response = requests.post(url, headers=headers, json=data)
20
21if response.status_code == 200:
22    result = response.json()
23    print(json.dumps(result, indent=2))
24else:
25    print(f"Error: {response.status_code}")
26    print(response.text)

API Endpoint

POSThttps://api.segmind.com/v1/veo-3.1

Parameters

promptrequired
string

Describe the video content. Use clear, concise language for best results.

Default: "A woman is giving a keynote presentation at a tech conference, wearing a sleek white blazer with the Veo 3.1 logo subtly embroidered, highlighted by ambient blue stage lighting. She is on a modern conference stage with geometric patterns and LED screens behind her, discussing how Veo 3.1 can integrate reference images to enhance AI-generated video content. The Veo 3.1 logo is also displayed prominently on a large digital screen behind her"
aspect_ratiooptional
string

Choose aspect ratio: 16:9 for landscape, 9:16 for portrait mode.

Default: "16:9"
Allowed values :
"16:9""9:16"
durationoptional
integer

Choose the video length: short is 4s, medium 6s, long 8s.

Default: 8
Allowed values :
468
generate_audiooptional
boolean

Enable audio generation. Recommended for videos requiring sound.

Default: true
imageoptional
string (uri)

Start generation from this image. Ideal for specific starting visuals.

Default: null
last_frameoptional
string (uri)

End video with this image. Useful for specific concluding visuals.

Default: null
negative_promptoptional
string

Exclude elements from video. Useful for refining details.

Default: "no black and white, no sharp angles"
reference_imagesoptional
string[]

Use reference images for consistency. Essential for maintaining subject style.

resolutionoptional
string

Set video quality: 720p for standard, 1080p for high resolution.

Default: "720p"
Allowed values :
"720p""1080p"
seedoptional
integer

Sets a random seed for consistency. Useful for repeated generations.

Default: null

Response Type

Returns: Video

Common Error Codes

The API returns standard HTTP status codes. Detailed error messages are provided in the response body.

400

Bad Request

Invalid parameters or request format

401

Unauthorized

Missing or invalid API key

403

Forbidden

Insufficient permissions

404

Not Found

Model or endpoint not found

406

Insufficient Credits

Not enough credits to process request

429

Rate Limited

Too many requests

500

Server Error

Internal server error

502

Bad Gateway

Service temporarily unavailable

504

Timeout

Request timed out