1. Core Capabilities
PixVerse Platform Docs
  • Get Started
    • Billing and Usage
    • Quick Start
    • Contact Us
    • Privacy and Data Protection
    • Model Capability Map
    • What Is PixVerse AI?
  • API
    • Preparation
      • Start Here
      • Concurrency Rules
      • Query Task Status
      • Error Codes
      • Error Details
      • FAQ
      • Webhook Callbacks
      • Upload Image
      • Upload Media (Video and Audio)
      • Verify Uploaded Audio
      • Get Effect Template List
      • Get TTS Speaker List
      • Get Restyle Effect List
      • Query Task Status
      • Get Account Balance
      • Usage Deduction Query
      • Create Custom Voice
      • Delete Custom Voice
    • Core Capabilities
      • Text-to-Video
        POST
      • Image-to-Video and Video Templates
        POST
      • First and Last Frame Video
        POST
      • Reference-to-Video (Fusion)
        POST
      • Multi-Transition Video
        POST
      • Video Extend
        POST
      • Video Expand
        POST
      • Image Template Generation
        POST
      • Get Image Generation Result
        GET
    • Solutions
      • Video Upscale
      • Video Restyle
      • Lipsync
      • Video Edit (Modify)
      • Image Avatar
      • Select Video Mask
      • Sound Effect
      • Subject Replacement (Swap)
      • Motion Control (Mimic)
      • One-click Real Estate Video
      • One-click VibeMV
  • Pricing
    • PixVerse API Pricing
  • Changelog
    • Changelog
  1. Core Capabilities

Video Expand

POST
/openapi/v2/video/expand/generate
Generate content around a source video's frame to fit a target aspect ratio. Provide exactly one source ID. Source video: MP4/MOV/WebM, up to 30 seconds / 50 MB. Output quality: 720p or 1080p. Returns a new task ID.

Request

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
ErrCode=0 means the task was accepted; a nonzero value means the request failed.
Bodyapplication/json

🟠400
Request Request Example
Shell
curl --location 'https://app-api.pixverse.ai/openapi/v2/video/expand/generate' \
--header 'API-KEY: your-api-key' \
--header 'Ai-trace-id: 550e8400-e29b-41d4-a716-446655440000' \
--header 'Content-Type: application/json' \
--data '{
    "source_video_id": 123456789,
    "aspect_ratio": "16:9",
    "quality": "720p"
}'
Response Response Example
200 - Accepted task: 10-second input at 720p; ID is illustrative
{
    "ErrCode": 0,
    "ErrMsg": "Success",
    "Resp": {
        "video_id": 123456789,
        "credits": 120
    }
}
Previous
Video Extend
Next
Image Template Generation