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-4.5-transition"; const data = { "first_frame_url": "https://segmind-inference-inputs.s3.amazonaws.com/412d207c-d812-43cd-b0e3-bc02410bf77f-pixverse-transition-first-image-input.jpg", "last_frame_url": "https://segmind-inference-inputs.s3.amazonaws.com/f42b68a9-4ece-4373-a57c-ee3b1f42020e-pixverse-transition-last-frame-input.jpg", "duration": 5, "prompt": "a dramatic sunset over the ocean, rich color gradient.", "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


first_frame_urlstr *

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


last_frame_urlstr *

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


durationenum:int *

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

Allowed values:


promptstr *

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


qualityenum:str *

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

Allowed values:


seedint ( default: 1 )

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

min : 1,

max : 999999


motion_modeenum:str *

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

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.

Leveraging PixVerse 4.5 for Dynamic Image-to-Video Transformations

PixVerse 4.5, an AI-powered model, revolutionizes image-to-video conversion by transforming still images into captivating videos. It enhances previous versions, offering creators seamless transitions and animations for dynamic content creation.

Core Features

PixVerse 4.5 enables sophisticated image-to-video conversion with key capabilities:

  1. First-Last Frame Transition: Facilitate seamless transformations between two images. This feature is ideal for character metamorphosis, aging effects, or gender transformations, providing a smooth visual flow.

  2. Motion Customization: Control pacing with "normal" or "fast" motion options to suit diverse creative needs.

  3. Duration Flexibility: Choose video lengths between 5 and 8 seconds, allowing for tailored storytelling durations.

  4. Resolution Options: Ranging from 360p to 1080p, ensuring creators can match quality with available processing resources.

  5. Prompt-Guided Generation: Text-based prompts steer the transformation process, giving users creative control over each transition.

Practical Applications

  • Character Transformations: Enhance narratives with seamless character progressions, whether aging, gender transitions, or facial alterations.
  • Creative Storytelling: Develop visually engaging content with smooth scene and concept transitions, or abstract transformations guided by descriptive prompts.
  • Content Creation: Perfect for social media, educational visualizations, marketing materials, and design portfolios, this tool boosts engagement with eye-catching transformations.

Tips for Optimal Use

To maximize PixVerse 4.5's potential, optimize text prompts by focusing on the transformation process and concise descriptions. For nuanced transitions, select an 8-second duration, and ensure your images share similar lighting and compositions for natural results. Utilize the PixVerse 4.5 API for seamless integration and creative enhancements.