> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dreamto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# PixVerse V6 Image to Video

> PixVerse V6 image-to-video: animate one image as the first frame, or create an effect video from one of 50 PixVerse effect templates.

PixVerse V6 is the video generation model PixVerse released in March 2026. It advances shot execution, character performance and multi-shot audio-visual generation: camera movement is more accurate with fewer artifacts, characters keep their emotion and body language consistent across scenes, and a single prompt can produce a multi-shot short film with sound, the audio generated together with the picture. On-screen text in English, Chinese and other languages renders correctly.

`pixverse-v6/image-to-video` works in two ways:

* **First-frame image-to-video**: one image in `image_urls` is the first frame of a 1–15 second video that keeps the image's aspect ratio, with optional multi-shot and native audio.
* **Effect templates**: `template_id` selects a PixVerse effect template that takes one or two images and fixes the duration.

## Setup

The PixVerse V6 models use an asynchronous task API: `POST /api/v1/jobs/createTask` creates a task (`model` selects the model and the parameters go in `input`), `GET /api/v1/jobs/recordInfo?taskId=` queries it, and with `callBackUrl` the result is pushed to that URL when the task finishes. The base URL is `https://api.dreamto.ai`; send the API Key in the `Authorization: Bearer` header.

Every response has HTTP status 200; the `code` in the body tells the outcome: `200` is success, anything else an error (see the response examples of each endpoint).

| Endpoint | Purpose |
| - | - |
| [`POST /api/v1/jobs/createTask`](https://docs.dreamto.ai/en/api-reference/pixverse-v6-image-to-video/create-task) | Create task |
| [`GET /api/v1/jobs/recordInfo?taskId=...`](https://docs.dreamto.ai/en/api-reference/pixverse-v6-image-to-video/query-task) | Get task |
| [`POST callBackUrl`](https://docs.dreamto.ai/en/api-reference/pixverse-v6-image-to-video/task-callback) | Task callback |

## Parameters

`model` is `pixverse-v6/image-to-video`; the generation parameters go in `input`. Requests out of range return `code: 422`; no task is created or charged.

| Field | Values |
| - | - |
| `prompt` | Required, 3–5,000 characters |
| `image_urls` | Required: exactly one first-frame image without `template_id`; one or two images as the template requires with `template_id`. JPG / JPEG / PNG / WebP, up to 20 MB each and 10,000 px per side, as public `http(s)` URLs |
| `quality` | Required: `360p` / `540p` / `720p` / `1080p`, case-insensitive |
| `duration` | Required without `template_id`, `1`–`15` seconds; must be omitted with `template_id` (the template sets the duration) |
| `generate_audio_switch` | `false` (default) / `true` (dialogue, sound effects and music generated with the picture, at a higher price) |
| `generate_multi_clip_switch` | `false` (default, single shot) / `true` (multi-shot) |
| `seed` | Optional, `0`–`2147483647`; random when omitted |
| `template_id` | Optional effect template ID; see the template list below |

## Pricing

Billed per second of generated video at the official PixVerse list price (225 credits = 1 USD); the model price in the console is authoritative:

| Quality | Without audio | With audio (`generate_audio_switch: true`) |
| - | - | - |
| `360p` | \$0.0222 / second | \$0.0311 / second |
| `540p` | \$0.0311 / second | \$0.04 / second |
| `720p` | \$0.04 / second | \$0.0533 / second |
| `1080p` | \$0.08 / second | \$0.1022 / second |

Cost of a task = price per second × `duration`. `generate_multi_clip_switch` does not change the price. The balance is checked for the request's full cost when the task is created (`code: 402` when insufficient); invalid requests and failed tasks are not charged.

With `template_id` the task is billed for the template's fixed duration (it differs per template): the balance is checked for 15 seconds when the task is created and the actual duration is charged when it finishes.

## Quick start

Create a task to get `data.taskId`, poll about every 10 seconds, and download `response.resultUrls` once `state` is `success`; or pass `callBackUrl` to be called back when the task finishes. `$DREAMTO_API_KEY` is your API Key.

```bash cURL theme={null}
# 1. Create the task
curl -X POST "https://api.dreamto.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $DREAMTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "pixverse-v6/image-to-video",
    "input": {
      "prompt": "The paper boat slowly drifts away on the calm lake, ripples spreading in soft morning light",
      "image_urls": [
        "https://your-cdn.example.com/first-frame.jpg"
      ],
      "quality": "720p",
      "duration": 5
    }
  }'

# 2. Query the task
curl "https://api.dreamto.ai/api/v1/jobs/recordInfo?taskId=7d3f0a9c41e85b2f6a1c9e04b8d27f53" \
  -H "Authorization: Bearer $DREAMTO_API_KEY"
```

```python Python theme={null}
import os
import time

import requests

BASE_URL = "https://api.dreamto.ai"
HEADERS = {"Authorization": f"Bearer {os.environ['DREAMTO_API_KEY']}"}

payload = {
    "model": "pixverse-v6/image-to-video",
    "input": {
        "prompt": "The paper boat slowly drifts away on the calm lake, ripples spreading in soft morning light",
        "image_urls": [
            "https://your-cdn.example.com/first-frame.jpg"
        ],
        "quality": "720p",
        "duration": 5
    }
}

created = requests.post(f"{BASE_URL}/api/v1/jobs/createTask", headers=HEADERS, json=payload, timeout=60).json()
if created["code"] != 200:
    raise SystemExit(f"{created['code']}: {created['msg']}")
task_id = created["data"]["taskId"]
while True:
    record = requests.get(f"{BASE_URL}/api/v1/jobs/recordInfo", headers=HEADERS, params={"taskId": task_id}, timeout=60).json()["data"]
    if record["state"] in ("success", "fail"):
        break
    time.sleep(10)
if record["state"] == "success":
    print(record["response"]["resultUrls"])
else:
    print(record["failCode"], record["failMsg"])
```

## Effect templates

With `template_id` the template sets the video duration (`duration` must be omitted), `image_urls` takes the template's number of images (1 or 2), and `prompt` is still required (3–5,000 characters); `quality`, `generate_audio_switch` and the other parameters still apply.

| `template_id` | Template | Description | Images |
| - | - | - | - |
| `412736208886848` | Dive into the deep blue of love | Let every kiss turn into a dream. | 2 |
| `411563216524736` | Skyline Track Flag | Unwavering. Next is the city-level entrance effect. | 1 |
| `411316927927040` | Vibe Copines | Capture this vibe with tungtung. | 1 |
| `411174903569216` | Crowd Focus | First person: the camera caught you. Upload a selfie or group photo to become the focus of the audience. | 1 |
| `410999246341952` | Poke my little cutie | Pinch this little guy and watch it get cutely angry. | 1 |
| `408891141511104` | Today is my birthday | Yes, I know you don't know me, but today is my birthday. | 1 |
| `410317363057408` | Mini Football Hero | Turn any photo into a mini chibi football hero competing with giant players in a cinematic, hyper-realistic stadium. | 1 |
| `410285445698304` | Magma Rise | Rise from the ashes. Fight fire with fire. | 1 |
| `410133101388544` | Cyber Armor: Reborn in the Rain | Shatter the storm. Awaken the body of steel within. | 1 |
| `409899296377728` | Product Landmark | Upload your product and turn it into a building. | 1 |
| `408897485909952` | Mini Football Pitch | Upload your product and create a mini football pitch inside it. | 1 |
| `408869061406656` | A kick through the world | Upload your product and let it shine on the night of the grand annual global competition. | 1 |
| `408661207662528` | Small Town Footballer | Upload your product and enjoy the moment of victory. | 1 |
| `409767750265728` | Crowned God in One Battle | You unexpectedly became the MVP of the game. | 1 |
| `409766559675264` | Thriller Dance Steps | Upload a photo and watch it turn into an iconic viral dance trend. | 1 |
| `409589071559552` | Dai Dai Dance | A vibe cheering dance: one front-facing photo joins the dance floor clip. | 1 |
| `407804339389760` | Fluffy Chef | Upload your product and cook in the fluffy kitchen. | 1 |
| `407658863287616` | Summer Postcard | Upload your product and join the summer special. | 1 |
| `407474361215744` | Inhaled into Product Universe | Upload your product and enter the product universe. | 1 |
| `407473438360320` | Fluffy Factory | Upload your product to make it in the fluffy factory. | 1 |
| `407467702283008` | Surfing Summer | Upload your product photo and start surfing. | 1 |
| `385844572217469` | Love Launcher | A Valentine's Day moment in one shot. | 1 |
| `406428904874432` | Kitty Shop | Upload your product image and let the cute cat become your street vendor. | 1 |
| `406423682060736` | Courtyard Makeover Party | Upload your courtyard and give it a magical makeover. | 1 |
| `406411724685760` | Ski Joy | Upload a photo of your pet, toy or product and send it on a fun skiing adventure. | 1 |
| `406372274350528` | Nail Lab | Upload your nail photos and let exclusive manicurists create exquisite nails for you. | 1 |
| `406218913317312` | Rhythm Dash | Hit the beat, take the crown. Welcome to the perfect-score frenzy. | 1 |
| `406218479198656` | Screen Killer King | The court needs a hero, so you break through the screen. | 1 |
| `406064763308480` | Dynamic Football Poster | From selfie to jersey photo (single and multiplayer). | 1 |
| `406413607395776` | Football Live King! | The moment you score a wonderful goal, supercar gifts pour down. | 1 |
| `405662117814720` | Trophy Breakthrough | Upload your photo, become a champion football player, break through the screen and win the trophy. | 1 |
| `406014934000064` | Post-match Sharp Comment | If the microphone is handed to you after the game, what would you say? | 1 |
| `405658369331648` | Stadium Legend | Run, celebrate, create a legendary football moment. | 1 |
| `405321470423488` | Step by Step | Step by step, shining with confidence. | 1 |
| `405175211454656` | Superstar Lobby | Welcome to your championship season. | 1 |
| `404955806201792` | Post-match Sharp Comment 2 | If it's your turn for a post-match interview, what would you say about this game? | 1 |
| `404820147974080` | Top of the World | Hold the trophy high and become the well-deserved hero of the football feast. | 2 |
| `398980393937856` | The Last Hug | The last hug before the tsunami comes. | 2 |
| `403916646846400` | My Future has Infinite Possibilities | Embrace your infinite potential and shine your future. | 1 |
| `403739217192896` | Apex Dance | Flat rhythm, decadent chaotic dance steps. | 1 |
| `403560060358144` | Idol Ending Shot | One look up is a million direct shots. | 1 |
| `403556618212098` | MotoGP Live | Live an unchoreographed moment. | 1 |
| `398965022284579` | Knee Slide | Celebrate the victory with an iconic, energetic knee-slide goal. | 1 |
| `402201060373270` | Tunnel to Captain | Transform from an ordinary girl into a legendary football captain in a cinematic stadium journey. | 1 |
| `403085292466285` | Golden Field Breaker | He is not on the list, but he still controls the scene. | 1 |
| `402061828030966` | Trophy Celebration | Always wanted a huge trophy? Here you can at least get it digitally. | 1 |
| `402888569901524` | Jump into the Crowd 2 | Jump into the crowd. | 1 |
| `402155676592228` | World Champion Lift | You are the captain lifting the trophy: crowds of people, golden ribbons, pure victory. | 1 |
| `402047865383360` | Sideline Ball Boy | Experience the game from the sidelines as a young talent ready to join in. | 1 |
| `402046136040202` | Epic Save | Become a legendary goalkeeper and catch the ball with a stunning flying save. | 1 |

## Callback

Pass `callBackUrl` (a public `http` / `https` URL) when creating the task; when the task succeeds or fails DreamTo `POST`s the result there once: the outer `code` is `200` (success) or `501` (failure) and `data` is the same as the `data` of the query endpoint. The request carries `X-DreamTo-Event: task.completed`, `X-DreamTo-Timestamp` (UTC, RFC 3339) and `X-DreamTo-Signature`:

```
X-DreamTo-Signature = hex( HMAC-SHA256( secret, X-DreamTo-Timestamp + "." + data.taskId + "." + status ) )
```

`status` is `success` when the task succeeded and `failed` when it failed (not the `fail` of `data.state`). Generate the secret under Webhook signing secret on the API Key page of the console; without a secret `X-DreamTo-Signature` is not sent. The callback times out after 10 seconds and any `2xx` counts as delivered; otherwise it is retried after 1, 5 and 30 minutes, at most 4 deliveries, so handle it idempotently by `data.taskId`. See [Task callback](https://docs.dreamto.ai/en/webhooks/task-callback.md) for secret management and verification code.

## Notes

* `taskId` is issued by DreamTo (32 hex digits) and can only be queried with an API Key of the same account; an unknown or expired task returns `code: 422` with `msg: recordInfo is null`.
* The body accepts only `model`, `callBackUrl` and `input`; undeclared `input` fields, wrong types and out-of-range values return `code: 422` with an English reason in `msg`; no task is created or charged.
* Video links (`response.resultUrls`, the same as in `resultJson`) are DreamTo download links (`/v1/tasks/{task_id}/artifacts/...`) that work without an API Key and support `Range`; they stay valid for about 14 days after the task is created, so download and keep the videos promptly.
* `param` echoes the create request, with `input` as a JSON string that needs a second parse; `creditsConsumed` is not returned, and the charge is shown in the DreamTo console bills.
* `failCode` / `failMsg` of a failed task come from the model service (an image that cannot be downloaded, content moderation and so on); internal errors are reported as `failCode: "500"` with `failMsg: "Internal Error, Please try again later."`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.