Pixverse 5 Transition
PixVerse v5 generates seamless, immersive video transitions that elevate storytelling and visual content creation.
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)
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
https://api.segmind.com/v1/pixverse-5-transition
Parameters
duration
requiredinteger
Duration of the video in seconds. Choose 5 for fast render.
5
5
8
motion_mode
requiredstring
Mode of motion speed. Use normal for standard pacing.
"normal"
"normal"
prompt
requiredstring
Describes animation theme. Use creative prompts for dynamic scenes.
quality
requiredstring
Video output quality. Choose 720p for high quality.
"540p"
"360p"
"540p"
"720p"
"1080p"
first_frame_url
optionalstring (uri)
URL for the first frame image. Use a scenic URL to set the initial scene.
last_frame_url
optionalstring (uri)
URL for the last frame image. Use a dynamic URL to conclude the scene.
lip_sync_switch
optionalboolean
Activate lip sync. Best with dialogue-driven animations.
false
lip_sync_tts_content
optionalstring
Content for TTS lip sync. Use clear dialogue for clarity.
null
lip_sync_tts_speaker_id
optionalstring
Select a voice for text-to-speech. Use 'auto' for a natural, engaging voice.
null
"auto"
"1"
"2"
"3"
"4"
"5"
"6"
"7"
"8"
"9"
seed
optionalinteger
Seed for randomness. Set fixed seed for consistent results.
12345
Range: 1 - 999999sound_effect_content
optionalstring
Content for sound effects. Use nature sounds for relaxation scenes.
"Soft ambient sounds of a rainforest with distant bird calls."
sound_effect_switch
optionalboolean
Toggle sound effect. Turn on for immersive experience.
true
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