API guides

PixVerse V6 API Guide: Text, Image, Transition, Extend

How to call PixVerse V6 on DreamTo: text-to-video, image-to-video, transition, extend, reference-to-video and Max, with parameters, limits and code samples.

Five glass prisms in a row on a dark table, each bending a beam of light into a different shape
On this page

PixVerse V6 on DreamTo is seven models behind one task API: five standard V6 models and two V6 Max models. You choose one by the material you already have: a prompt, one image, a first and a last frame, an existing clip, or a set of reference images. Every model takes a quality from 360p to 1080p and has an optional audio switch, and outside effect templates you set a duration of 1 to 15 seconds.

This guide lists each model's parameters as the API reference gives them, the rules that get a request rejected, and a request you can copy.

Pick the model by your input#

You haveModel IDNotes
A text promptpixverse-v6/text-to-video8 aspect ratios, optional multi-shot
One imagepixverse-v6/image-to-videoThe image is the first frame; also runs 50 effect templates
A first and a last imagepixverse-v6/transitionThe prompt describes what happens in between
An existing videopixverse-v6/extendAdds 1 to 15 seconds after it
1 to 7 subject or background imagespixverse-v6/reference-to-videoRefer to them as @name in the prompt
A prompt, on the Max tierpixverse-v6-max/text-to-videoNo multi-shot switch
One image, on the Max tierpixverse-v6-max/image-to-videoOutput follows the image's aspect ratio

Each model has a page with sample outputs and a playground: text-to-video (playground), image-to-video (playground) and transition (playground). The other four are linked in their sections below, and the full catalog is at /models.

One task API: create, poll, read the result#

All PixVerse V6 models use the asynchronous flow documented in the text-to-video reference:

  1. POST https://api.dreamto.ai/api/v1/jobs/createTask with a model and an input object. The response carries data.taskId.
  2. GET https://api.dreamto.ai/api/v1/jobs/recordInfo?taskId=... returns the task. state moves through waiting, queuing and generating and ends as success or fail. The reference suggests polling about every 10 seconds and says generation usually takes 30 seconds to a few minutes.
  3. On success, response.resultUrls holds the video links. If you pass callBackUrl when creating the task, DreamTo also posts the result to that URL.

Send your API key as a bearer token: Authorization: Bearer $DREAMTO_API_KEY (see Authentication). The request body accepts only model, callBackUrl and input.

Both calls always answer with HTTP status 200. The outcome is the code field in the body, so a client that checks only the HTTP status will read errors as successes.

codeMeaning
200Success
401API key missing or invalid
402Insufficient balance
404The model does not exist or is not enabled
422Invalid request: an undeclared input field, a wrong type or an out-of-range value, with the reason in msg. No task is created or charged
429Too many requests
500Server error

The query call also returns 422 with msg: recordInfo is null when the taskId is unknown, expired or belongs to another account.

The Python examples below reuse one helper. Save it as pixverse.py:

python
import osimport timeimport requestsBASE_URL = "https://api.dreamto.ai"HEADERS = {"Authorization": f"Bearer {os.environ['DREAMTO_API_KEY']}"}def run(model: str, payload: dict) -> list[str]:    """Create a task, poll it, and return the result URLs."""    body = {"model": model, "input": payload}    created = requests.post(        f"{BASE_URL}/api/v1/jobs/createTask", headers=HEADERS, json=body, timeout=60    ).json()    if created["code"] != 200:        raise SystemExit(f"{created['code']}: {created['msg']}")    task_id = created["data"]["taskId"]    print("task:", task_id)    while True:        queried = requests.get(            f"{BASE_URL}/api/v1/jobs/recordInfo",            headers=HEADERS,            params={"taskId": task_id},            timeout=60,        ).json()        if queried["code"] != 200:            raise SystemExit(f"{queried['code']}: {queried['msg']}")        record = queried["data"]        if record["state"] in ("success", "fail"):            break        time.sleep(10)    if record["state"] != "success":        raise SystemExit(f"{record['failCode']}: {record['failMsg']}")    return record["response"]["resultUrls"]

Text to video: the base request#

pixverse-v6/text-to-video takes a prompt and four required settings.

FieldValues
promptRequired, 3 to 5,000 characters
aspect_ratioRequired: 16:9, 4:3, 1:1, 3:4, 9:16, 2:3, 3:2, 21:9
qualityRequired: 360p, 540p, 720p, 1080p (case-insensitive)
durationRequired: integer, 1 to 15 seconds
generate_audio_switchfalse (default) or true
generate_multi_clip_switchfalse (default, single shot) or true (multi-shot)
seedOptional, 0 to 2147483647; random if omitted

The minimal request as raw HTTP:

bash
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/text-to-video",    "input": {      "prompt": "A cinematic sunrise lights a misty mountain lake; the camera skims slowly over the water as a flock of birds crosses the sky",      "aspect_ratio": "16:9",      "quality": "720p",      "duration": 5    }  }'

Two switches change the output. generate_audio_switch adds dialogue, sound effects and music generated together with the picture, at a higher price per second. generate_multi_clip_switch produces several shots in one video and does not change the price. This request uses both:

python
from pixverse import runurls = run("pixverse-v6/text-to-video", {    "prompt": "An old fisherman heads out at dawn: wide shot of the pier as he unties the rope; close-up of the bow cutting through waves; finally he looks at the rising sun and smiles. Sounds of waves and gulls",    "aspect_ratio": "16:9",    "quality": "1080p",    "duration": 12,    "generate_audio_switch": True,    "generate_multi_clip_switch": True,})print(urls)

Image to video: first frame or effect template#

pixverse-v6/image-to-video works in two ways, and each has its own rules for image_urls and duration.

First-frame mode#

Pass exactly one image in image_urls. The video starts from it and keeps its aspect ratio, so there is no aspect_ratio field on this model. duration is required, 1 to 15 seconds. Images must be public http(s) URLs in JPG, JPEG, PNG or WebP, up to 20 MB and 10,000 px per side.

python
from pixverse import runurls = run("pixverse-v6/image-to-video", {    "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,})print(urls)

generate_multi_clip_switch, generate_audio_switch and seed work here as they do in text-to-video.

Effect templates#

Set template_id to one of the 50 PixVerse effect templates listed in the image-to-video reference and the rules change:

  • duration must be omitted. The template sets it.
  • image_urls takes the number of images the template needs: one for 47 of the templates, two for the other three.
  • prompt is still required, 3 to 5,000 characters.
  • quality and generate_audio_switch still apply.
python
from pixverse import runurls = run("pixverse-v6/image-to-video", {    "prompt": "The stadium camera finds me in the crowd",    "image_urls": ["https://your-cdn.example.com/selfie.jpg"],    "quality": "720p",    "template_id": "411174903569216",})print(urls)

Billing differs too. The balance is checked for 15 seconds when the task is created, and the template's actual duration, which differs per template, is charged when it finishes.

Transition: first frame to last frame#

pixverse-v6/transition takes first_frame_image_url and last_frame_image_url and generates the video between them. Both are required and follow the image limits above. The reference names transformations, day-to-night shifts, scene changes and product morphs as its uses.

The remaining fields are prompt, quality, duration, generate_audio_switch and seed. This model has no aspect_ratio and no generate_multi_clip_switch.

python
from pixverse import runurls = run("pixverse-v6/transition", {    "prompt": "The street slowly turns from day to night as the streetlights come on one by one; the camera stays still",    "first_frame_image_url": "https://your-cdn.example.com/street-day.jpg",    "last_frame_image_url": "https://your-cdn.example.com/street-night.jpg",    "quality": "720p",    "duration": 5,})print(urls)

The catalog's advice is to spend the prompt on what moves in between and how the camera responds, and to keep subject positions in the two images close so the connecting movement is easy to review. For first and last frames on other models, see the image-to-video API guide.

Extend an existing video#

pixverse-v6/extend (model page, playground) continues a clip with a new segment. Give the source as one of two fields:

  • taskId: a PixVerse task on your account that succeeded within the last 14 days.
  • video_url: a publicly reachable video link.

prompt, quality and duration (the seconds to add, 1 to 15) are required. So is seed, which is optional on every other model in the family. The helper prints each task ID, so you can paste one from an earlier run:

python
from pixverse import runurls = run("pixverse-v6/extend", {    "prompt": "The camera keeps flying forward through the clouds toward distant snowy mountains",    "taskId": "PASTE_A_SUCCESSFUL_PIXVERSE_TASK_ID",    "quality": "720p",    "duration": 5,    "seed": 42,})print(urls)

The extend reference passes on PixVerse's limits: the source can be up to 30 seconds and 50 MB, the total after extension up to 40 seconds, and the result may contain the source video plus the extension. Only the added seconds are billed.

The catalog's tip is to look at the last frame of the source (subject position, camera direction, ongoing action) and write the next beat from that state. For extension on a different model, see Long videos with Seedance 2.5.

Reference to video: 1 to 7 named images#

pixverse-v6/reference-to-video (model page, playground) blends 1 to 7 reference images into one video. Each entry in image_references has an image_url (required), a type (subject, the default, or background) and a ref_name of up to 30 characters, unique within the list. The prompt refers to an image as @ref_name.

python
from pixverse import runurls = run("pixverse-v6/reference-to-video", {    "prompt": "@dog rolls over on the sofa in @room, then jumps down and runs toward the camera",    "image_references": [        {"image_url": "https://your-cdn.example.com/dog.png", "type": "subject", "ref_name": "dog"},        {"image_url": "https://your-cdn.example.com/room.png", "type": "background", "ref_name": "room"},    ],    "aspect_ratio": "16:9",    "quality": "720p",    "duration": 5,})print(urls)

Unlike image-to-video, aspect_ratio is required here, with the same eight values as text-to-video. The reference-to-video reference notes that only image references are supported: PixVerse's video_references are not available.

PixVerse V6 Max: what it adds and what it drops#

PixVerse V6 Max is a separate pair of models: pixverse-v6-max/text-to-video (model page) and pixverse-v6-max/image-to-video (model page). The reference describes it as the flagship version of V6, tuned for film, short drama and advertising, with stronger prompt following and camera control, more stable subject consistency across shots, and more reliable product appearance and on-screen text.

The request is the standard one with fewer fields. The prompt minimum is 1 character instead of 3. Image-to-video takes exactly one image and does not accept aspect_ratio, because the output follows the image. Max has no multi-shot switch, effect templates, first and last frame, reference images or extension; for those, use the matching standard V6 model.

bash
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-max/image-to-video",    "input": {      "prompt": "The girl turns to the camera and smiles, her hair lifted by a light breeze, slow push-in",      "image_urls": ["https://your-cdn.example.com/portrait.jpg"],      "quality": "1080p",      "duration": 5    }  }'

To decide between V6 and V6 Max for a shot, the catalog suggests holding the prompt, opening image and duration constant, recording the model and settings, and comparing subject detail, readable motion and when important sounds enter.

What PixVerse V6 costs per second#

Billing is per second of generated video, and the rate depends on quality and audio. As of December 2026, DreamTo lists these prices in USD per second, each shown with a 15% discount:

QualityV6V6 with audioV6 MaxV6 Max with audio
360p$0.0187$0.02635$0.02295$0.034
540p$0.02635$0.034$0.034$0.04165
720p$0.034$0.04505$0.04165$0.05695
1080p$0.068$0.0867$0.0833$0.1054

The five standard models share the V6 columns and the two Max models share the Max columns. Check the prices page before you budget. The API reference pages print the official PixVerse list price, which is the figure before the discount ($0.04 per second for V6 at 720p without audio, against $0.034 here), and state that the model price in the console is authoritative.

How a task is charged:

  • Cost is the per-second price times duration. The 5-second 720p text-to-video request above costs 5 × $0.034 = $0.17, and the 12-second 1080p request with audio costs 12 × $0.0867, about $1.04.
  • The balance is checked when the task is created, and code: 402 comes back if it is too low.
  • Invalid requests and failed tasks are not charged.

The task record does not include the amount charged. It appears in your bills in the DreamTo console.

The links in response.resultUrls are DreamTo download links to the MP4. They work without an API key, support Range requests, and stay valid for about 14 days after the task is created, so download what you want to keep.

The reference recommends a callback in production. Pass a public http or https URL as callBackUrl, next to model and input, and DreamTo sends one POST when the task succeeds or fails. The outer code is 200 for success or 501 for failure, and data is the same object the query call returns. Answer with any 2xx within 10 seconds. Otherwise the call is retried after 1, 5 and 30 minutes, for at most 4 deliveries, so handle it idempotently by data.taskId.

Each callback carries X-DreamTo-Event: task.completed, X-DreamTo-Timestamp and, once you have generated a webhook signing secret on the API Key page of the console, X-DreamTo-Signature. The signature is the hex HMAC-SHA256 of the timestamp, the task ID and a status word joined by periods. The status word is success or failed, not the fail that data.state uses:

python
import hashlibimport hmacdef signature_is_valid(secret: str, timestamp: str, body: dict, signature: str) -> bool:    """timestamp and signature come from the X-DreamTo-* headers, body is the parsed JSON."""    status = "success" if body["data"]["state"] == "success" else "failed"    message = f"{timestamp}.{body['data']['taskId']}.{status}"    expected = hmac.new(secret.encode(), message.encode(), hashlib.sha256).hexdigest()    return hmac.compare_digest(expected, signature)

Secret management is covered in Task callback. The sample body on that page belongs to a different task API, so read the fields as shown above.

When a task fails, failCode and failMsg come from the model service, for example an image that could not be downloaded or a content moderation rejection. Internal errors are reported as failCode: "500".

To compare PixVerse V6 with the other video models on the platform, see How to choose an AI video API.

FAQ#

How do I call the PixVerse V6 API?#

Send a POST to https://api.dreamto.ai/api/v1/jobs/createTask with a model such as pixverse-v6/text-to-video and an input object, using your API key as a bearer token. Query the returned taskId at /api/v1/jobs/recordInfo until state is success or fail, then read the video links from response.resultUrls.

How long can a PixVerse V6 video be?#

Text-to-video, image-to-video, transition, reference-to-video and both Max models take a duration from 1 to 15 seconds. Extend adds 1 to 15 seconds to an existing clip, and the reference gives PixVerse's limit of 40 seconds in total after extension. Effect templates set their own duration.

What is the difference between PixVerse V6 and V6 Max?#

V6 Max is described as the flagship version, tuned for film, short drama and advertising, and it covers text-to-video and image-to-video only. Multi-shot, effect templates, transition, extend and reference-to-video exist only on standard V6. As of December 2026, Max starts at $0.02295 per second and V6 at $0.0187; see the prices page.

Does PixVerse V6 generate audio?#

Yes, on all seven models. Set generate_audio_switch to true and dialogue, sound effects and music are generated with the picture. It is off by default and costs more per second.

Can I use a video as a reference in PixVerse V6?#

No. The reference-to-video model accepts 1 to 7 images, and PixVerse's video_references are not available. To continue an existing video, use pixverse-v6/extend.

How long do PixVerse V6 results stay available?#

The download links stay valid for about 14 days after the task is created. Extend likewise accepts a taskId only for a task that succeeded within the last 14 days. After that, host the downloaded file at a public URL and pass it as video_url.

  • PixVerse V6
  • Video API