Pixverse 5 Transition

PixVerse v5 generates seamless, immersive video transitions that elevate storytelling and visual content creation.

~85.83s
$0.375 - $1.00 per generation
 1import requests
 2import json
 3
 4url = "https://api.segmind.com/v1/pixverse-5-transition"
 5headers = {
 6    "x-api-key": "YOUR_API_KEY",
 7    "Content-Type": "application/json"
 8}
 9
10data = {
11    "first_frame_url": "https://segmind-resources.s3.amazonaws.com/input/e8e913ea-8f1e-4a95-a7c2-5da468aee277-kling-video-v1-pro-ai-avatar-input.png",
12    "last_frame_url": "https://segmind-resources.s3.amazonaws.com/input/b01761bd-9c4f-474f-8ff6-bc473aa7151e-bbc05c1e-a408-4f5e-91a7-85a0f0953ffb.png",
13    "duration": 5,
14    "prompt": "Create a slow rotation transition of the woman as she speaks on the stage.",
15    "quality": "540p",
16    "seed": 12345,
17    "motion_mode": "normal",
18    "sound_effect_content": "Soft ambient sounds of a rainforest with distant bird calls.",
19    "sound_effect_switch": true,
20    "lip_sync_switch": false
21}
22
23response = requests.post(url, headers=headers, json=data)
24
25if response.status_code == 200:
26    result = response.json()
27    print(json.dumps(result, indent=2))
28else:
29    print(f"Error: {response.status_code}")
30    print(response.text)

API Endpoint

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

Parameters

durationrequired
integer

Duration of the video in seconds. Choose 5 for fast render.

Default: 5
Allowed values :
58
motion_moderequired
string

Mode of motion speed. Use normal for standard pacing.

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

Describes animation theme. Use creative prompts for dynamic scenes.

qualityrequired
string

Video output quality. Choose 720p for high quality.

Default: "540p"
Allowed values :
"360p""540p""720p""1080p"
first_frame_urloptional
string (uri)

URL for the first frame image. Use a scenic URL to set the initial scene.

last_frame_urloptional
string (uri)

URL for the last frame image. Use a dynamic URL to conclude the scene.

lip_sync_switchoptional
boolean

Activate lip sync. Best with dialogue-driven animations.

Default: false
lip_sync_tts_contentoptional
string

Content for TTS lip sync. Use clear dialogue for clarity.

Default: null
lip_sync_tts_speaker_idoptional
string

Select a voice for text-to-speech. Use 'auto' for a natural, engaging voice.

Default: null
Allowed values (15 total):
Auto"auto"
Emily"1"
James"2"
Isabella"3"
Liam"4"
Chloe"5"
Adrian"6"
Harper"7"
Ava"8"
Sophia"9"
+5 more
seedoptional
integer

Seed for randomness. Set fixed seed for consistent results.

Default: 12345Range: 1 - 999999
sound_effect_contentoptional
string

Content for sound effects. Use nature sounds for relaxation scenes.

Default: "Soft ambient sounds of a rainforest with distant bird calls."
sound_effect_switchoptional
boolean

Toggle sound effect. Turn on for immersive experience.

Default: true

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