Pixverse 4.5 Transition Serverless API
PixVerse 4.5 transforms still images into dynamic, captivating videos with seamless transitions.
1import requests
2import json
3
4url = "https://api.segmind.com/v1/pixverse-4.5-transition"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "first_frame_url": "https://segmind-inference-inputs.s3.amazonaws.com/412d207c-d812-43cd-b0e3-bc02410bf77f-pixverse-transition-first-image-input.jpg",
12 "last_frame_url": "https://segmind-inference-inputs.s3.amazonaws.com/f42b68a9-4ece-4373-a57c-ee3b1f42020e-pixverse-transition-last-frame-input.jpg",
13 "duration": 5,
14 "prompt": "a dramatic sunset over the ocean, rich color gradient.",
15 "quality": "540p",
16 "seed": 56698,
17 "motion_mode": "normal"
18}
19
20response = requests.post(url, headers=headers, json=data)
21
22if response.status_code == 200:
23 result = response.json()
24 print(json.dumps(result, indent=2))
25else:
26 print(f"Error: {response.status_code}")
27 print(response.text) 1import requests
2import json
3
4url = "https://api.segmind.com/v1/pixverse-4.5-transition"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "first_frame_url": "https://segmind-inference-inputs.s3.amazonaws.com/412d207c-d812-43cd-b0e3-bc02410bf77f-pixverse-transition-first-image-input.jpg",
12 "last_frame_url": "https://segmind-inference-inputs.s3.amazonaws.com/f42b68a9-4ece-4373-a57c-ee3b1f42020e-pixverse-transition-last-frame-input.jpg",
13 "duration": 5,
14 "prompt": "a dramatic sunset over the ocean, rich color gradient.",
15 "quality": "540p",
16 "seed": 56698,
17 "motion_mode": "normal"
18}
19
20response = requests.post(url, headers=headers, json=data)
21
22if response.status_code == 200:
23 result = response.json()
24 print(json.dumps(result, indent=2))
25else:
26 print(f"Error: {response.status_code}")
27 print(response.text)API Endpoint
https://api.segmind.com/v1/pixverse-4.5-transitionParameters
durationrequiredintegerSet video duration. Choose 5 seconds for quick transitions, 8 seconds for detailed transitions.
558first_frame_urlrequiredstring (uri)URL for the starting image. Use high-resolution images for best results.
"https://segmind-inference-inputs.s3.amazonaws.com/412d207c-d812-43cd-b0e3-bc02410bf77f-pixverse-transition-first-image-input.jpg"last_frame_urlrequiredstring (uri)URL for the ending image. Opt for quality images for seamless transition.
"https://segmind-inference-inputs.s3.amazonaws.com/f42b68a9-4ece-4373-a57c-ee3b1f42020e-pixverse-transition-last-frame-input.jpg"motion_moderequiredstringMotion type for animation. Select 'fast' for rapid changes, 'normal' for smooth flow.
"normal""normal""fast"promptrequiredstringDescribe the animation theme. Try 'a dramatic sunset over the ocean, rich color gradient'.
"a dramatic sunset over the ocean, rich color gradient."qualityrequiredstringSelect video quality. Use 1080p for high-end productions, 540p for regular use.
"540p""360p""540p""720p""1080p"seedoptionalintegerSeed for randomness. Choose any number to reproduce the effect.
Response 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