Pixverse 4.5 Transition Serverless API

PixVerse 4.5 transforms still images into dynamic, captivating videos with seamless transitions.

~57.83s
$0.375 - $1.00 per generation
 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

POSThttps://api.segmind.com/v1/pixverse-4.5-transition

Parameters

durationrequired
integer

Set video duration. Choose 5 seconds for quick transitions, 8 seconds for detailed transitions.

Default: 5
Allowed values :
58
first_frame_urlrequired
string (uri)

URL for the starting image. Use high-resolution images for best results.

Default: "https://segmind-inference-inputs.s3.amazonaws.com/412d207c-d812-43cd-b0e3-bc02410bf77f-pixverse-transition-first-image-input.jpg"
last_frame_urlrequired
string (uri)

URL for the ending image. Opt for quality images for seamless transition.

Default: "https://segmind-inference-inputs.s3.amazonaws.com/f42b68a9-4ece-4373-a57c-ee3b1f42020e-pixverse-transition-last-frame-input.jpg"
motion_moderequired
string

Motion type for animation. Select 'fast' for rapid changes, 'normal' for smooth flow.

Default: "normal"
Allowed values :
"normal""fast"
promptrequired
string

Describe the animation theme. Try 'a dramatic sunset over the ocean, rich color gradient'.

Default: "a dramatic sunset over the ocean, rich color gradient."
qualityrequired
string

Select video quality. Use 1080p for high-end productions, 540p for regular use.

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

Seed for randomness. Choose any number to reproduce the effect.

Range: 1 - 999999

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