OVI Image To Video Serverless API
Ovi I2V generates synchronized video and audio from text prompts, creating engaging multimedia content effortlessly.
~41.92s
$0.25 per generation
1import requests
2import json
3
4url = "https://api.segmind.com/v1/ovi-i2v"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "image": "https://segmind-resources.s3.amazonaws.com/input/b4562d69-c97e-4b64-887c-7dea6d8fbe13-209f6f09-7fc6-47c0-8b6e-128ae75db915-wan-720-ip.png",
12 "prompt": "A young woman wearing a white blouse and dark blazer sits in a warmly lit podcast studio, speaking animatedly into a professional microphone. She wears large studio headphones and gestures with enthusiasm while smiling. Behind her, beige acoustic panels and soft backlighting create a cozy, modern atmosphere. A laptop and coffee mug rest on the desk in front of her as she records. She speaks confidently into the mic, articulating, <S>AI is not replacing us—it’s amplifying our creativity.<E>. She leans slightly forward, eyes bright with engagement. <AUDCAP>Clear female voice discussing technology and innovation, with soft studio ambience.<ENDAUDCAP>",
13 "audio_negative_prompt": "robotic, muffled, echo, distorted",
14 "video_negative_prompt": "jitter, bad hands, blur, distortion"
15}
16
17response = requests.post(url, headers=headers, json=data)
18
19if response.status_code == 200:
20 result = response.json()
21 print(json.dumps(result, indent=2))
22else:
23 print(f"Error: {response.status_code}")
24 print(response.text) 1import requests
2import json
3
4url = "https://api.segmind.com/v1/ovi-i2v"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "image": "https://segmind-resources.s3.amazonaws.com/input/b4562d69-c97e-4b64-887c-7dea6d8fbe13-209f6f09-7fc6-47c0-8b6e-128ae75db915-wan-720-ip.png",
12 "prompt": "A young woman wearing a white blouse and dark blazer sits in a warmly lit podcast studio, speaking animatedly into a professional microphone. She wears large studio headphones and gestures with enthusiasm while smiling. Behind her, beige acoustic panels and soft backlighting create a cozy, modern atmosphere. A laptop and coffee mug rest on the desk in front of her as she records. She speaks confidently into the mic, articulating, <S>AI is not replacing us—it’s amplifying our creativity.<E>. She leans slightly forward, eyes bright with engagement. <AUDCAP>Clear female voice discussing technology and innovation, with soft studio ambience.<ENDAUDCAP>",
13 "audio_negative_prompt": "robotic, muffled, echo, distorted",
14 "video_negative_prompt": "jitter, bad hands, blur, distortion"
15}
16
17response = requests.post(url, headers=headers, json=data)
18
19if response.status_code == 200:
20 result = response.json()
21 print(json.dumps(result, indent=2))
22else:
23 print(f"Error: {response.status_code}")
24 print(response.text)API Endpoint
POST
https://api.segmind.com/v1/ovi-i2vParameters
imagerequiredstring (uri)Input image to generate video from.
promptrequiredstringPrompt for generated video.
audio_negative_promptoptionalstringNegative prompt for audio generation.
Default:
"robotic, muffled, echo, distorted"seedoptionalintegerRandom seed. Set for reproducible generation.
Default:
nullvideo_negative_promptoptionalstringNegative prompt for video generation.
Default:
"jitter, bad hands, blur, distortion"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