1. Preparation
PixVerse Platform Docs
  • Get Started
    • What Is PixVerse AI?
    • Model Capability Map
    • Billing and Usage
    • Quick Start
    • Contact Us
    • Privacy and Data Protection
  • API
    • Preparation
      • Start Here
      • Concurrency Rules
      • Query Task Status
      • Error Codes
      • FAQ
      • Webhook Callbacks
      • Upload Image
        POST
      • Upload Media (Video and Audio)
        POST
      • Verify Uploaded Audio
        POST
      • Get Effect Template List
        GET
      • Get TTS Speaker List
        GET
      • Get Restyle Effect List
        GET
      • Query Task Status
        GET
      • Get Account Balance
        GET
      • Usage Deduction Query
        POST
      • Create Custom Voice
        POST
      • Delete Custom Voice
        DELETE
    • Core Capabilities
      • Text-to-Video
      • Image-to-Video and Video Templates
      • First and Last Frame Video
      • Reference-to-Video (Fusion)
      • Multi-Transition Video
      • Video Extend
      • Image Template Generation
      • Get Image Generation Result
    • 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. Preparation

Upload Media (Video and Audio)

POST
/openapi/v2/media/upload
Upload exactly one file or file_url using multipart/form-data. Video: mp4/mov/webm. Audio: mp3/wav/m4a/aac. Downstream endpoints impose their own duration, codec, dimensions, and file-size limits. Let the client create the multipart boundary.

Request

Header Params

Body Params multipart/form-dataRequired

Responses

🟢200
application/json
Successful response.
Bodyapplication/json

🟠400
🟠401
Request Request Example
Shell
curl --location 'https://app-api.pixverse.ai/openapi/v2/media/upload' \
--header 'API-KEY: your-api-key' \
--header 'Ai-trace-id: 550e8400-e29b-41d4-a716-446655440000' \
--form 'file=@""' \
--form 'file_url="https://example.com/media.mp4"'
Response Response Example
200 - Video upload response
{
    "ErrCode": 0,
    "ErrMsg": "Success",
    "Resp": {
        "media_id": 123456789,
        "media_type": "video",
        "url": "https://example.com/video.mp4",
        "width": 1280,
        "height": 720
    }
}
Previous
Upload Image
Next
Verify Uploaded Audio