pixverse-v6/image-to-video works in two ways:
- First-frame image-to-video: one image in
image_urlsis 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_idselects 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).
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.
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:
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 getdata.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.
Effect templates
Withtemplate_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.
Callback
PasscallBackUrl (a public http / https URL) when creating the task; when the task succeeds or fails DreamTo POSTs 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:
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 for secret management and verification code.
Notes
taskIdis issued by DreamTo (32 hex digits) and can only be queried with an API Key of the same account; an unknown or expired task returnscode: 422withmsg: recordInfo is null.- The body accepts only
model,callBackUrlandinput; undeclaredinputfields, wrong types and out-of-range values returncode: 422with an English reason inmsg; no task is created or charged. - Video links (
response.resultUrls, the same as inresultJson) are DreamTo download links (/v1/tasks/{task_id}/artifacts/...) that work without an API Key and supportRange; they stay valid for about 14 days after the task is created, so download and keep the videos promptly. paramechoes the create request, withinputas a JSON string that needs a second parse;creditsConsumedis not returned, and the charge is shown in the DreamTo console bills.failCode/failMsgof a failed task come from the model service (an image that cannot be downloaded, content moderation and so on); internal errors are reported asfailCode: "500"withfailMsg: "Internal Error, Please try again later.".

