Pixverse 4.5 Effects
PixVerse 4.5 transforms photos and text into stunning animated videos for impactful storytelling and marketing.
1import requests
2import json
3
4url = "https://api.segmind.com/v1/pixverse-4.5-effects"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "image_url": "https://segmind-resources.s3.amazonaws.com/output/4e932411-b5b5-4d39-a956-79329951cc68-model_4.png",
12 "duration": 5,
13 "quality": "540p",
14 "seed": 56698
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/pixverse-4.5-effects"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "image_url": "https://segmind-resources.s3.amazonaws.com/output/4e932411-b5b5-4d39-a956-79329951cc68-model_4.png",
12 "duration": 5,
13 "quality": "540p",
14 "seed": 56698
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
https://api.segmind.com/v1/pixverse-4.5-effectsParameters
durationrequiredintegerVideo duration in seconds (5 or 8; only 5 is allowed for fast mode or 1080p quality)
558image_urlrequiredstring (uri)Provide the URL of the image to be relit. Use a URL from cloud storage like S3.
qualityrequiredstringVideo quality (360p, 540p, 720p, 1080p)
"540p""360p""540p""720p""1080p"seedoptionalintegerSeed for random generation
styleoptionalstringStyle (only for model=v3.5): anime, 3d_animation, clay, comic, cyberpunk
null"anime""3d_animation""clay""comic""cyberpunk"template_idoptionalintegerTemplate for effects
321958627120000308621408717184316826014376384315446315336768321958627120000330688573362560330523675191680Response Type
Returns: Video
Common Error Codes
The API returns standard HTTP status codes. Detailed error messages are provided in the response body.
Bad Request
Invalid parameters or request format
Unauthorized
Missing or invalid API key
Forbidden
Insufficient permissions
Not Found
Model or endpoint not found
Insufficient Credits
Not enough credits to process request
Rate Limited
Too many requests
Server Error
Internal server error
Bad Gateway
Service temporarily unavailable
Timeout
Request timed out