Pular para o conteúdo
PixVerse logo

Pixverse v6

Text-to-Video • PixVerse

Ver como Markdown
  • Third-party
  • Zero data retention

Pixverse v6 is the latest Pixverse video model with support for up to 15-second videos, customizable duration from 1 to 15 seconds, and audio generation.

Model Info
Terms and License link
More information link
Zero data retentionYes
Pricing View pricing in the Cloudflare dashboard

Usage

const response = await env.AI.run(
  'pixverse/v6',
  {
    prompt: 'A golden retriever running through a field of sunflowers on a sunny day',
    aspect_ratio: '16:9',
    duration: 5,
    generate_audio: true,
    quality: '720p',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "pixverse/v6",
  "input": {
    "prompt": "A golden retriever running through a field of sunflowers on a sunny day",
    "aspect_ratio": "16:9",
    "duration": 5,
    "generate_audio": true,
    "quality": "720p"
  }
}'
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "video": "https://media.pixverse.ai/pixverse%2Fmp4%2Fmedia%2Fweb%2Fori%2Fda2a0d44-a700-4c6b-a36b-fff6951fd1d4_seed1150795460.mp4"
  },
  "state": "Completed"
}

Examples

Long Duration Video — Extended 15-second video with audio (v6 supports 1-15 seconds)
const response = await env.AI.run(
  'pixverse/v6',
  {
    prompt:
      'A time-lapse of a bustling city street from dawn to dusk, showing the flow of people and vehicles',
    aspect_ratio: '16:9',
    duration: 15,
    generate_audio: true,
    quality: '720p',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "pixverse/v6",
  "input": {
    "prompt": "A time-lapse of a bustling city street from dawn to dusk, showing the flow of people and vehicles",
    "aspect_ratio": "16:9",
    "duration": 15,
    "generate_audio": true,
    "quality": "720p"
  }
}'
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "video": "https://media.pixverse.ai/pixverse%2Fmp4%2Fmedia%2Fweb%2Fori%2F46e3adfb-a95f-4c03-bdad-a6d7131a98b8_seed61570270.mp4"
  },
  "state": "Completed"
}
Ultra-wide Cinematic — Cinematic 21:9 aspect ratio video
const response = await env.AI.run(
  'pixverse/v6',
  {
    prompt:
      'A dramatic aerial shot flying over misty mountain peaks at sunrise, cinematic lighting with volumetric fog',
    aspect_ratio: '21:9',
    duration: 10,
    generate_audio: true,
    quality: '720p',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "pixverse/v6",
  "input": {
    "prompt": "A dramatic aerial shot flying over misty mountain peaks at sunrise, cinematic lighting with volumetric fog",
    "aspect_ratio": "21:9",
    "duration": 10,
    "generate_audio": true,
    "quality": "720p"
  }
}'
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "video": "https://media.pixverse.ai/pixverse%2Fmp4%2Fmedia%2Fweb%2Fori%2F54327d38-e03a-44de-9a21-2052356779e5_seed286185598.mp4"
  },
  "state": "Completed"
}
Silent Video — Video without audio generation
const response = await env.AI.run(
  'pixverse/v6',
  {
    prompt: 'Abstract ink drops spreading through water, vivid colors mixing in slow motion',
    aspect_ratio: '1:1',
    duration: 3,
    generate_audio: false,
    negative_prompt: 'blurry, low quality',
    quality: '540p',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "pixverse/v6",
  "input": {
    "prompt": "Abstract ink drops spreading through water, vivid colors mixing in slow motion",
    "aspect_ratio": "1:1",
    "duration": 3,
    "generate_audio": false,
    "negative_prompt": "blurry, low quality",
    "quality": "540p"
  }
}'
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "video": "https://media.pixverse.ai/pixverse%2Fmp4%2Fmedia%2Fweb%2Fori%2F06c27c41-cadd-44c5-b418-a78b96555479_seed1048443720.mp4"
  },
  "state": "Completed"
}

Parameters

prompt
stringrequiredmaxLength: 2048Text prompt describing the video to generate
negative_prompt
stringmaxLength: 2048Negative text prompt
image_input
stringBase64-encoded reference image for image-to-video generation (data:image/...;base64,...). The image will be uploaded to Pixverse automatically.
duration
integerrequireddefault: 5minimum: 1maximum: 15Video duration in seconds (1 to 15)
aspect_ratio
stringrequireddefault: 16:9enum: 16:9, 4:3, 1:1, 3:4, 9:16, 2:3, 3:2, 21:9Video aspect ratio
quality
stringrequireddefault: 720penum: 360p, 540p, 720p, 1080pVideo quality
seed
integerminimum: 0maximum: 2147483647Random seed for reproducibility
generate_audio
booleanrequireddefault: trueWhether to generate audio with the video
video
stringformat: uriURL to the generated video

API Schemas (Raw)

Input
Output