POST
javascript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 const axios = require('axios'); const api_key = "YOUR API-KEY"; const url = "https://api.segmind.com/v1/pixverse-5-extend"; const data = { "video_url": "https://segmind-resources.s3.amazonaws.com/input/a4f87ceb-6a9a-4861-8b9b-2c2f846090a7-33a2d4a1-c111-47c2-866e-2788a98bb055-15631ab4-3aaf-4e49-a433-c2c3b86f7938.mp4", "duration": 5, "prompt": "horse race", "negative_prompt": "No sudden movements, no fast zooms.", "quality": "540p", "seed": 56698, "motion_mode": "normal" }; (async function() { try { const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } }); console.log(response.data); } catch (error) { console.error('Error:', error.response.data); } })();
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing

Attributes


video_urlstr ( default: 1 )

Provide the URL of the video to be relit. Use a URL from cloud storage like S3.


durationenum:str *

Video duration in seconds (5 or 8; only 5 is allowed for fast mode or 1080p quality)

Allowed values:


promptstr *

Prompt describing the animation


negative_promptstr ( default: No sudden movements, no fast zooms. )

Negative prompt (unwanted effects)


qualityenum:str *

Video quality (360p, 540p, 720p, 1080p)

Allowed values:


seedint ( default: 1 )

Seed for random generation

min : 1,

max : 999999


styleenum:str ( default: 1 )

Style (only for model=v3.5): anime, 3d_animation, clay, comic, cyberpunk

Allowed values:


motion_modeenum:str *

Motion mode (normal, fast, --fast only available when duration=5; --quality=1080p does not support fast)

Allowed values:

To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.

PixVerse Extend: AI Video Continuation Model

Edited by Segmind Team on October 23, 2025.

What is PixVerse Extend?

PixVerse Extend is a sophisticated AI model that is designed to expand upon the existing videos by generating new content. It studies the final segment of the video to render the relevant extension while preserving the visual fidelity and coherent storyline that flows naturally from the original video. This advanced model effortlessly fills the gap between a video's conclusion and its continuation, created by the AI, offering creators infinite creative opportunities to move forward with their stories.

Key Features of PixVerse Extend

  • It supports seamless video continuation with AI-generated content
  • It has multiple options from 360p to 1080p resolution to maintain visual high quality
  • It includes customizable style presets, including anime, 3D animation, clay, comic, and cyberpunk
  • It has duration options of 5 or 8 seconds for extension clips
  • It offers precise control through positive and negative prompts
  • It has support for external video uploads and PixVerse API-generated content
  • It features consistent motion handling with normal mode optimization

Best Use Cases

  • Content creators can use it to extend short-form video content
  • Social media marketers can create endless scroll experiences
  • Game developers can generate dynamic cutscene variations
  • Educational content makers can produce branching video lessons
  • Digital artists can explore narrative continuations
  • Marketing teams can develop interactive video campaigns

Prompt Tips and Output Quality

  • Use prompts with clear scene descriptions, e.g., "Mystical garden with glowing trees"
  • Use negative prompts to root out unwanted effects like blur or camera shake
  • For professional-quality outputs, choose higher resolutions, 720p or 1080p
  • Experiment with different style presets to match the content's aesthetic
  • Maintain consistent themes between the original video and continuation prompt
  • Use seed values to recreate consistent generations or explore variations

FAQs

  • How does PixVerse Extend maintain consistency with the original video? The model analyzes the final segment of the video to produce smooth transitions and maintain visual coherence in the generated extension.

  • Which video style preset should I choose? Go with the video style based on your content type: cyberpunk for modern tech themes, anime for animated content, 3D animation for realistic renders, clay for artistic effects, or comic for illustrated styles.

  • Can I control the length of generated extensions? Yes, you can choose the length of the generated extension between 5 seconds and 8 seconds; 5 is recommended for quick results, while 8 is for longer extensions.

  • What's the recommended workflow for best results? Provide a high-quality input video and use detailed prompts; set appropriate negative prompts to avoid unwanted elements in the renders; and experiment with different style presets while maintaining 720p or higher resolution.

  • How can I ensure consistent quality across multiple generations? Use the seed parameter to maintain consistency across generations; provide detailed and specific prompt descriptions; and use the negative prompt to filter out unwanted elements.