PixVerse Platform Docs
  1. Getting started
PixVerse Platform Docs
  • Learn about PixVerse Platform
    • Introduce to PixVerse Platform
    • Quick Start
  • Getting started
    • How does the API work?
    • How to get API key?
    • How to check account balance?
    • How to subscribe API plans?
    • How to use Text-to-video
    • How to use Image-to-video
    • How to use Effects?
    • How to use Transition(First-last frame Feature)
    • How to use Speech(Lip sync)?
    • Lip sync TTS speaker list
    • How to use Extend?
    • How to use Sound effects?
    • How to use Fusion(Reference to video)?
    • How to get video generation status?
  • API Reference
    • API Parameter Description
    • Get user credit balance
      GET
    • Upload Image
      POST
    • Text-to-Video generation
      POST
    • Image-to-Video generation
      POST
    • Transition(First-last frame) generation
      POST
    • Upload Video&audio
      POST
    • Speech(Lipsync) generation
      POST
    • Get Speech(Lipsync) tts list
      GET
    • Extend generation
      POST
    • Sound effect generation
      POST
    • Fusion(reference to video) generation
      POST
    • Get Video Generation Status
      GET
  • Trouble Shooting
    • Common errors and Solutions
    • Error codes
    • FAQ
  • Resources
    • Model & Pricing
    • Rate limit
    • Support
    • Change Logs
    • Term of Service
    • Privacy policy
  • PixVerse Tools
    • PixVerse MCP
  1. Getting started

How to use Transition(First-last frame Feature)

The Transition(First-last frame Feature) feature allows you to generate surprising video transitions by controlling both the first and last frames. This is particularly effective for creating transition effects, transformations, and morphing sequences.

Overview#

This feature requires two images: one for the first frame and one for the last frame. The API will generate a video that smoothly transitions between these two points, creating a surprising and visually appealing sequence.
Endpoint: POST https://app-api.pixverse.ai/openapi/v2/video/transition/generate
API reference : https://docs.platform.pixverse.ai/transitionfirst-last-frame-generation-15123014e0

Usage Instructions#

1
Upload Images
Upload both your first frame and last frame images using the upload image endpoint(https://docs.platform.pixverse.ai/upload-image-13016631e0), and note the returned img_id values for each.
Responses
{
    "ErrCode": 0,
    "ErrMsg": "string",
    "Resp": {
        "img_id": 0,
        "img_url": "string"
    }
}
Important note: When uploading images, you must use form-data format with the image file path. URL-based image uploads are currently not supported.
2
Create Video Task
Make a request to the video generation endpoint with the following parameters:
prompt: Describe the desired transition process to guide the video generation
model: "v3.5","v4","v4.5"
duration: 5 or 8
quality: "360p" or "540p" or "720p" or "1080p"
motion_mode : "normal" or "fast"
seed : range: 0 - 2147483647
first_frame_img: The image ID of your first frame
last_frame_img: The image ID of your last frame
{ 
   "prompt": "transform into a puppy",
   "model": "v4.5",
   "duration": 5,
   "quality": "540p",
   "motion_mode": "normal",
   "seed": 937433858,
   "first_frame_img": 0,
   "last_frame_img": 0
} 
3
Track Progress
After creating the task, you will receive a video_id
Query periodically Get Video Generation Status API using this video_id
The status will change from 5 to 1 when processing is complete
4
View Results
Once the status equals 1, use the provided URL to view or download your generated video.
Previous
How to use Effects?
Next
How to use Speech(Lip sync)?