Wan 2.1 720p image to video

Create high-quality 720p videos with excellent visual quality and a broad spectrum of motion from static images.

~148.41s
~$1.455
 1import requests
 2import json
 3
 4url = "https://api.segmind.com/v1/wan2.1-i2v-720p"
 5headers = {
 6    "x-api-key": "YOUR_API_KEY",
 7    "Content-Type": "application/json"
 8}
 9
10data = {
11    "prompt": "A young woman with light skin and wavy brown hair sits at a desk in a modern podcast studio, wearing over-ear headphones and speaking into a sleek black microphone. She is dressed casually in a fitted blazer and a neutral-toned shirt, exuding confidence and professionalism. The studio is warmly lit, with soft overhead lighting and accent lights creating a cozy ambiance. In the background, a soundproofed wall with stylish acoustic panels is visible, along with a small shelf holding books and a potted plant. A laptop sits on the desk in front of her, alongside a cup of coffee and a notebook with scribbled notes. The camera angle is a medium close-up, focused on her upper body and face as she engages in a lively conversation, her expressive hands occasionally gesturing while she speaks. The scene is vibrant and modern, capturing the energy of a podcast recording in progress.",
12    "negative_prompt": "blurry, bad quality, camera shake, distortion, poor composition, low resolution, artifact, watermark",
13    "image": "https://segmind-resources.s3.amazonaws.com/input/209f6f09-7fc6-47c0-8b6e-128ae75db915-wan-720-ip.png",
14    "seed": 63088745,
15    "video_length": 3,
16    "resolution": "720",
17    "steps": 30,
18    "base64": false
19}
20
21response = requests.post(url, headers=headers, json=data)
22
23if response.status_code == 200:
24    result = response.json()
25    print(json.dumps(result, indent=2))
26else:
27    print(f"Error: {response.status_code}")
28    print(response.text)

API Endpoint

POSThttps://api.segmind.com/v1/wan2.1-i2v-720p

Parameters

imagerequired
string (uri)

Reference image for video generation

promptrequired
string

Prompt for video generation

resolutionrequired
integer

Resolution of the generated video (longest side of the video)

Default: 720
Allowed values :
7209601024
video_lengthrequired
integer

Length of the generated video in seconds

Default: 3Range: 1 - 5
base64optional
boolean

Output as base64

Default: false
negative_promptoptional
string

Negative prompt for video generation

Default: "blurry, bad quality, camera shake, distortion, poor composition, low resolution, artifact, watermark"
seedoptional
integer

Seed number for video generation

Default: 42424242
stepsoptional
integer

Number of steps for video generation

Default: 30Range: 10 - 70

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