Pixazo API→Models→Text to Video API→Hunyuan Video
Pixazo API→Models→Text to Video API→Hunyuan Video

Hunyuan Video 1.5 API, Hunyuan Video v1 API: Pricing, Documentation

by Tencent

Hunyuan Video by Tencent delivers high-quality AI video generation across text-to-video, image-to-video, and video-to-video editing workflows. Through Pixazo's API, developers can produce cinematic video content from prompts, animate static images, or transform existing footage.

Get API Key
Hunyuan Video API

Models Version

WELCOME BONUS

Get 10% Cashback on Your First Payment (up to $500)

Add funds and get 10% cashback on your first payment (up to $500).

Claim Your Cashback →

HunyuanVideo 1.5 API Documentation

Turn a text prompt into a video: HunyuanVideo 1.5 makes one 5-second 720p video (no sound) from your prompt, in the frame you choose with aspect_ratio (16:9 by default, or 9:16, 1:1, 4:3, 3:4). To animate a picture instead, use https://gateway.pixazo.ai/hunyuan-video-1-5/v1/image-to-video. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED, then download the video from output.media_url.

POST https://gateway.pixazo.ai/hunyuan-video-1-5/v1/text-to-video

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Text to Video - HunyuanVideo 1.5

Request Code

POST https://gateway.pixazo.ai/hunyuan-video-1-5/v1/text-to-video
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "prompt": "A red fox trots through fresh snow in a pine forest at sunrise, soft golden light, slow tracking shot"
}
import requests

url = "https://gateway.pixazo.ai/hunyuan-video-1-5/v1/text-to-video"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "prompt": "A red fox trots through fresh snow in a pine forest at sunrise, soft golden light, slow tracking shot"
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/hunyuan-video-1-5/v1/text-to-video", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "prompt": "A red fox trots through fresh snow in a pine forest at sunrise, soft golden light, slow tracking shot"
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/hunyuan-video-1-5/v1/text-to-video' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"prompt": "A red fox trots through fresh snow in a pine forest at sunrise, soft golden light, slow tracking shot"}'

Output

{
  "request_id": "hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/hunyuan-video-1-5/v1/text-to-video' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  -H 'X-Webhook-URL: https://your-server.com/webhook' \
  --data-raw '{"prompt": "A red fox trots through fresh snow in a pine forest at sunrise, soft golden light, slow tracking shot"}'

Callback Payload (success)

{
  "request_id": "hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "hunyuan-video-1-5",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
    ],
    "media_type": "video/mp4"
  },
  "created_at": "2026-11-21T07:17:08.116Z",
  "updated_at": "2026-11-21 07:19:24",
  "completed_at": "2026-11-21 07:19:23"
}

Failure callback shape

{
  "request_id": "hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "hunyuan-video-1-5",
  "error": "Description of the failure"
}

Delivery semantics

  • terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
  • sync mode: a Webhook callback on every poll while the request is processing (status PROCESSING), plus the final COMPLETED/ERROR callback.
  • Callbacks are idempotent on request_id — de-duplicate on it.
  • Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / range
promptYesrequiredstring—Up to 4,000 characters
What the video shows: the subject, the action, the setting, the light and the camera movement.
aspect_ratioNostring"16:9"16:9, 9:16, 1:1, 4:3, 3:4
The frame of the video: landscape, portrait, square or 4:3 either way.
negative_promptNostring—Up to 2,000 characters
What to keep out of the video, for example blur or extra people.
seedNointegerrandom0 to 2,147,483,647
Seed for the generation. Send the same seed with the same request to try to repeat a result.
enable_prompt_rewriteNobooleanthe model's defaulttrue, false
Let the model expand your prompt into a more detailed description before it generates. Send false to use your prompt as written.
durationNointeger55
Every video is 5 seconds long. Any other value is refused.
resolutionNostring"720p""720p"
Every video is 720p. Any other value is refused.

Good to know

  • Each request returns one video: 5 seconds, 720p, without sound. Send one request per video.
  • Use the JSON types shown: a number for seed, true / false without quotes for the switch. Omit a field instead of sending null.

Parameters not supported

Rejected with 400

Checked when you submit: the request is rejected before it is queued, and nothing is held or charged.

ParameterWhy
batch_size, count, n, num_images, num_outputs, num_videos, number_of_videosNot supported: HunyuanVideo 1.5 makes one 5-second clip per request, so send one request per video.
duration_seconds, fps, frames, num_frames, video_lengthNot supported: HunyuanVideo 1.5 renders a fixed 5-second 720p clip.
footnote, image_base64, model, moderationNot supported by this API.
height, image_size, size, widthNot supported: text-to-video takes aspect_ratio (16:9, 9:16, 1:1, 4:3, 3:4); image-to-video follows the image.
imageNot supported: send a public JPG or PNG URL as image_url.
image_urlNot accepted by text-to-video. To animate an image use POST https://gateway.pixazo.ai/hunyuan-video-1-5/v1/image-to-video.
reviseNot supported: send enable_prompt_rewrite (true or false).

Accepted, then the request fails

These pass the submit check, so the submit returns 202, but the request then fails with status: "ERROR". Nothing is charged.

ParameterWhen the request fails
promptThe prompt is blocked by the content rules.

Accepted but ignored

Any other parameter is dropped and has no effect.

The output video

output.media_url is one MP4, 5 seconds at 720p, without sound. The frame follows aspect_ratio.

Measured at launch:

RequestSizeLengthFrame rateSound
aspect_ratio not sent (16:9)1280×7205.04 s24 fpsNo
aspect_ratio 9:16720×12805.04 s24 fpsNo

Timing

At launch, a video took about 2 minutes to 4 minutes from submit to COMPLETED. Poll the status endpoint every 10 seconds or so, or use a Webhook.

Example Request

{
  "prompt": "A red fox trots through fresh snow in a pine forest at sunrise, soft golden light, slow tracking shot"
}

Example Response

{
  "request_id": "hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).
X-Webhook-ModeNoterminal (default) or sync (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad request — the body failed the submit check (see Request Parameters); nothing was queued.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance for the hold this request needs.
429Too many requests.
500Internal server error.

Error Responses

A refused body names every rejected parameter in violations.

No prompt: sent {"aspect_ratio": "16:9"}

{
  "error": "Invalid request parameters",
  "message": "'prompt' is required",
  "violations": [
    "'prompt' is required"
  ]
}

A batch field: sent {"prompt": "a fox", "n": 2}

{
  "error": "Invalid request parameters",
  "message": "'n' must be one of:  (got 2); 'n' is not supported: HunyuanVideo 1.5 makes one 5-second clip per request, so send one request per video.",
  "violations": [
    "'n' must be one of:  (got 2)",
    "'n' is not supported: HunyuanVideo 1.5 makes one 5-second clip per request, so send one request per video."
  ]
}

Retrieving Results

Poll the status endpoint with the request_id until status is COMPLETED or ERROR, then download the video from output.media_url.

GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

cURL example

curl 'https://gateway.pixazo.ai/v2/requests/status/hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

Captured from a real HunyuanVideo 1.5 request at launch; the request id is masked.

{
  "request_id": "hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "hunyuan-video-1-5",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
    ],
    "media_type": "video/mp4"
  },
  "created_at": "2026-11-21T07:17:08.116Z",
  "updated_at": "2026-11-21 07:19:24",
  "completed_at": "2026-11-21 07:19:23"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED or ERROR.
model_idstringThe model that handled the request — hunyuan-video-1-5 for this endpoint.
errorstring or nullError message when status is ERROR; otherwise null.
output.media_urlarray of stringsURL of the MP4 (one per request). Download it and keep your own copy.
output.media_typestringvideo/mp4.
created_atstringRequest creation timestamp.
completed_atstringCompletion timestamp.
polling_urlstringStatus URL for this request (in the submit response).

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure).

Typical workflow

  1. Send the request to POST https://gateway.pixazo.ai/hunyuan-video-1-5/v1/text-to-video.
  2. Save the request_id from the 202 response.
  3. Poll GET /v2/requests/status/{request_id} every 10 seconds or so, or use a Webhook instead.
  4. When status is COMPLETED, download the video from output.media_url.

How Billing Is Measured

Billed per video: every request makes one 5-second 720p video, so every completed request costs the same, whatever the prompt, the aspect ratio or the other settings. The price of one video is held when the request is submitted and charged when the video is ready; the hold is released in full if the request fails. The current price is shown in the pricing panel on this page.

HunyuanVideo 1.5 API Pricing

Your request will cost $0.252 per video.
Each request makes one 5-second 720p video. Nothing is charged for a request that fails.
Image to Video

HunyuanVideo 1.5 API Documentation

Bring a picture to life: HunyuanVideo 1.5 animates the image in image_url into one 5-second 720p video (no sound) that keeps the image's shape. Describe the motion in prompt (optional). To make a video from text alone, use https://gateway.pixazo.ai/hunyuan-video-1-5/v1/text-to-video. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED, then download the video from output.media_url.

POST https://gateway.pixazo.ai/hunyuan-video-1-5/v1/image-to-video

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Image to Video - HunyuanVideo 1.5

Request Code

POST https://gateway.pixazo.ai/hunyuan-video-1-5/v1/image-to-video
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg",
  "prompt": "She smiles, tucks her hair behind her ear and looks toward the city as a light breeze moves her hair"
}
import requests

url = "https://gateway.pixazo.ai/hunyuan-video-1-5/v1/image-to-video"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg",
  "prompt": "She smiles, tucks her hair behind her ear and looks toward the city as a light breeze moves her hair"
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/hunyuan-video-1-5/v1/image-to-video", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg",
  "prompt": "She smiles, tucks her hair behind her ear and looks toward the city as a light breeze moves her hair"
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/hunyuan-video-1-5/v1/image-to-video' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg", "prompt": "She smiles, tucks her hair behind her ear and looks toward the city as a light breeze moves her hair"}'

Output

{
  "request_id": "hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/hunyuan-video-1-5/v1/image-to-video' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  -H 'X-Webhook-URL: https://your-server.com/webhook' \
  --data-raw '{"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg", "prompt": "She smiles, tucks her hair behind her ear and looks toward the city as a light breeze moves her hair"}'

Callback Payload (success)

{
  "request_id": "hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "hunyuan-video-1-5",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
    ],
    "media_type": "video/mp4"
  },
  "created_at": "2026-11-21T07:17:12.713Z",
  "updated_at": "2026-11-21 07:20:07",
  "completed_at": "2026-11-21 07:20:06"
}

Failure callback shape

{
  "request_id": "hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "hunyuan-video-1-5",
  "error": "Description of the failure"
}

Delivery semantics

  • terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
  • sync mode: a Webhook callback on every poll while the request is processing (status PROCESSING), plus the final COMPLETED/ERROR callback.
  • Callbacks are idempotent on request_id — de-duplicate on it.
  • Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / range
image_urlYesrequiredstring—One publicly reachable http(s) URL of a JPG or PNG image, up to 10 MB
The picture to animate. The video keeps its shape (portrait, landscape or square).
promptNostring—Up to 4,000 characters
What should happen: the motion, the action and the camera. Without it the model chooses the motion.
negative_promptNostring—Up to 2,000 characters
What to keep out of the video, for example blur or extra people.
seedNointegerrandom0 to 2,147,483,647
Seed for the generation. Send the same seed with the same request to try to repeat a result.
enable_prompt_rewriteNobooleanthe model's defaulttrue, false
Let the model expand your prompt into a more detailed description before it generates. Send false to use your prompt as written.
durationNointeger55
Every video is 5 seconds long. Any other value is refused.
resolutionNostring"720p""720p"
Every video is 720p. Any other value is refused.

Good to know

  • Each request returns one video: 5 seconds, 720p, without sound. Send one request per video.
  • Use the JSON types shown: a number for seed, true / false without quotes for the switch. Omit a field instead of sending null.
  • Use only images you have the right to use, and do not animate a real person without their consent.

Parameters not supported

Rejected with 400

Checked when you submit: the request is rejected before it is queued, and nothing is held or charged.

ParameterWhy
aspect_ratioNot accepted by image-to-video: the video takes the image's shape.
batch_size, count, n, num_images, num_outputs, num_videos, number_of_videosNot supported: HunyuanVideo 1.5 makes one 5-second clip per request, so send one request per video.
duration_seconds, fps, frames, num_frames, video_lengthNot supported: HunyuanVideo 1.5 renders a fixed 5-second 720p clip.
footnote, image_base64, model, moderationNot supported by this API.
height, image_size, size, widthNot supported: text-to-video takes aspect_ratio (16:9, 9:16, 1:1, 4:3, 3:4); image-to-video follows the image.
imageNot supported: send a public JPG or PNG URL as image_url.
reviseNot supported: send enable_prompt_rewrite (true or false).

Accepted, then the request fails

These pass the submit check, so the submit returns 202, but the request then fails with status: "ERROR". Nothing is charged.

ParameterWhen the request fails
image_urlThe image cannot be read: the link does not answer, or the file is not a JPG or PNG of at most 10 MB.
image_url, promptThe image or the prompt is blocked by the content rules.

Accepted but ignored

Any other parameter is dropped and has no effect.

The output video

output.media_url is one MP4, 5 seconds at 720p, without sound. The frame follows the shape of your image.

Measured at launch:

RequestSizeLengthFrame rateSound
a 853×1280 image784×11685.04 s24 fpsNo

Timing

At launch, a video took about 3 minutes from submit to COMPLETED. Poll the status endpoint every 10 seconds or so, or use a Webhook.

Example Request

{
  "image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg",
  "prompt": "She smiles, tucks her hair behind her ear and looks toward the city as a light breeze moves her hair"
}

Example Response

{
  "request_id": "hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).
X-Webhook-ModeNoterminal (default) or sync (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad request — the body failed the submit check (see Request Parameters); nothing was queued.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance for the hold this request needs.
429Too many requests.
500Internal server error.

Error Responses

A refused body names every rejected parameter in violations.

No image_url: sent {"prompt": "she waves"}

{
  "error": "Invalid request parameters",
  "message": "'image_url' is required",
  "violations": [
    "'image_url' is required"
  ]
}

Aspect_ratio on image-to-video: sent {"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg", "aspect_ratio": "16:9"}

{
  "error": "Invalid request parameters",
  "message": "'aspect_ratio' is not accepted by image-to-video: the video takes the image's shape.",
  "violations": [
    "'aspect_ratio' is not accepted by image-to-video: the video takes the image's shape."
  ]
}

Retrieving Results

Poll the status endpoint with the request_id until status is COMPLETED or ERROR, then download the video from output.media_url.

GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

cURL example

curl 'https://gateway.pixazo.ai/v2/requests/status/hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

Captured from a real HunyuanVideo 1.5 request at launch; the request id is masked.

{
  "request_id": "hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "hunyuan-video-1-5",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/hunyuan-video-1-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
    ],
    "media_type": "video/mp4"
  },
  "created_at": "2026-11-21T07:17:12.713Z",
  "updated_at": "2026-11-21 07:20:07",
  "completed_at": "2026-11-21 07:20:06"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED or ERROR.
model_idstringThe model that handled the request — hunyuan-video-1-5 for this endpoint.
errorstring or nullError message when status is ERROR; otherwise null.
output.media_urlarray of stringsURL of the MP4 (one per request). Download it and keep your own copy.
output.media_typestringvideo/mp4.
created_atstringRequest creation timestamp.
completed_atstringCompletion timestamp.
polling_urlstringStatus URL for this request (in the submit response).

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure).

Typical workflow

  1. Send the request to POST https://gateway.pixazo.ai/hunyuan-video-1-5/v1/image-to-video.
  2. Save the request_id from the 202 response.
  3. Poll GET /v2/requests/status/{request_id} every 10 seconds or so, or use a Webhook instead.
  4. When status is COMPLETED, download the video from output.media_url.

How Billing Is Measured

Billed per video: every request makes one 5-second 720p video, so every completed request costs the same, whatever the prompt, the image or the other settings. The price of one video is held when the request is submitted and charged when the video is ready; the hold is released in full if the request fails. The current price is shown in the pricing panel on this page.

HunyuanVideo 1.5 API Pricing

Your request will cost $0.252 per video.
Each request makes one 5-second 720p video. Nothing is charged for a request that fails.
2. Hunyuan Video v1

Hunyuan Video v1 API Documentation

https://gateway.pixazo.ai/hunyuan-video/v1/hunyuan-video-request

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Hunyuan Video generate request

Request Code

POST https://gateway.pixazo.ai/hunyuan-video/v1/hunyuan-video-request
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_API_KEY

{
  "prompt": "A cinematic close-up of a wolf walking through a snowy forest at dawn, soft golden light filtering through pine trees.",
  "aspect_ratio": "16:9",
  "resolution": "720p",
  "num_frames": "129",
  "num_inference_steps": 30,
  "pro_mode": false
}
import requests

url = "https://gateway.pixazo.ai/hunyuan-video/v1/hunyuan-video-request"
headers = {
    "Content-Type": "application/json",
    "Cache-Control": "no-cache",
    "Ocp-Apim-Subscription-Key": "YOUR_API_KEY"
}
data = {
    "prompt": "A cinematic close-up of a wolf walking through a snowy forest at dawn, soft golden light filtering through pine trees.",
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "num_frames": "129",
    "num_inference_steps": 30,
    "pro_mode": False
}

response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = "https://gateway.pixazo.ai/hunyuan-video/v1/hunyuan-video-request";
const headers = {
  "Content-Type": "application/json",
  "Cache-Control": "no-cache",
  "Ocp-Apim-Subscription-Key": "YOUR_API_KEY"
};
const data = {
  "prompt": "A cinematic close-up of a wolf walking through a snowy forest at dawn, soft golden light filtering through pine trees.",
  "aspect_ratio": "16:9",
  "resolution": "720p",
  "num_frames": "129",
  "num_inference_steps": 30,
  "pro_mode": false
};

fetch(url, {
  method: "POST",
  headers: headers,
  body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data));
curl -X POST "https://gateway.pixazo.ai/hunyuan-video/v1/hunyuan-video-request" \
  -H "Content-Type: application/json" \
  -H "Cache-Control: no-cache" \
  -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
  --data-raw '{
    "prompt": "A cinematic close-up of a wolf walking through a snowy forest at dawn, soft golden light filtering through pine trees.",
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "num_frames": "129",
    "num_inference_steps": 30,
    "pro_mode": false
  }'

Output

{
  "request_id": "hunyuan-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/hunyuan-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.

Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.

Webhook Headers

HeaderRequiredDefaultDescription
X-Webhook-URLYes (to enable)—HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed).
X-Webhook-ModeNoterminalterminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates.

Example: enable webhook

X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal

Callback Payload

Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):

{
  "request_id": "hunyuan-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "hunyuan-video",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/hunyuan-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
    ],
    "media_type": "video/mp4"
  },
  "created_at": "2026-05-22T13:17:32.110Z",
  "updated_at": "2026-05-22 13:19:23",
  "completed_at": "2026-05-22 13:19:23"
}

Failure callback shape

{
  "request_id": "hunyuan-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "hunyuan-video",
  "error": "Description of the error",
  "output": null,
  "created_at": "...",
  "updated_at": "...",
  "completed_at": "..."
}

Delivery semantics

  • terminal mode (default) — exactly one POST when the request reaches a terminal status. No callback during PROCESSING.
  • sync mode — POST on every status poll (with delay capped at ~15s) plus a final POST at terminal status. Use when you want progress updates.
  • Idempotency — use request_id as your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates.
  • Response — respond 200 OK within a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries.
  • HTTPS required — plain http:// URLs are rejected.

Request Parameters - Hunyuan Video generate request

ParameterRequiredTypeDefaultAllowed values / range
promptYesrequiredstring——
Text description of the video to generate.
num_inference_stepsNointeger301-50 (50 = Pro mode quality)
Number of refinement steps the model runs while generating. Higher values refine detail and quality but increase processing time; lower values are faster.
pro_modeNobooleanfalsetrue, false
By default generations run 35 steps. Pro mode runs 55 steps for higher-quality video — it takes longer and costs 2x more billing units.
aspect_ratioNostring"16:9""16:9", "9:16"
Video aspect ratio.
resolutionNostring"720p""480p", "580p", "720p"
Output video resolution.
num_framesNostring"129""129", "85"
Number of frames in the output video. Sent as a string. 129 frames at 24fps is roughly 5 seconds; 85 frames is roughly 3.5 seconds.
enable_safety_checkerNobooleanfalsetrue, false
Turns on automatic filtering of unsafe or explicit (NSFW) content. Leave enabled unless you have a specific reason to disable it.
seedNointeger——
Random seed that controls the generation's randomness. Reuse the same seed with identical settings to reproduce the same result; leave it empty for a different output each time.

Example Request

POST https://gateway.pixazo.ai/hunyuan-video/v1/hunyuan-video-request
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_API_KEY

{
  "prompt": "A cinematic close-up of a wolf walking through a snowy forest at dawn, soft golden light filtering through pine trees.",
  "aspect_ratio": "16:9",
  "resolution": "720p",
  "num_frames": "129",
  "num_inference_steps": 30,
  "pro_mode": false
}

Response

{
  "request_id": "hunyuan-video_019xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/hunyuan-video_019xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

Header Value
Content-Typeapplication/json
Cache-Controlno-cache
Ocp-Apim-Subscription-KeyYOUR_SUBSCRIPTION_KEY

Hunyuan Video v1 API Pricing

Your request will cost $0.40 per video.
Image to Video

Hunyuan Video v1 API Documentation

https://gateway.pixazo.ai/hunyuan-video-image-to-video/v1/hunyuan-video-image-to-video-request

Authentication

All requests require an API key passed via header.

Header Type Required Description
Ocp-Apim-Subscription-Key string Yes Your API subscription key

Hunyuan Video (Image to Video) generate request - Hunyuan Video (Image to Video)

Request Code

POST https://gateway.pixazo.ai/hunyuan-video-image-to-video/v1/hunyuan-video-image-to-video-request
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "prompt": "Two muscular cats boxing in a boxing ring.",
  "image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg"
}
import requests

url = "https://gateway.pixazo.ai/hunyuan-video-image-to-video/v1/hunyuan-video-image-to-video-request"
headers = {
    "Content-Type": "application/json",
    "Cache-Control": "no-cache",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
    "prompt": "Two muscular cats boxing in a boxing ring.",
    "image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg"
}

response = requests.post(url, headers=headers, json=data)
print(response.json())
const url = "https://gateway.pixazo.ai/hunyuan-video-image-to-video/v1/hunyuan-video-image-to-video-request";
const headers = {
  "Content-Type": "application/json",
  "Cache-Control": "no-cache",
  "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
};
const data = {
  "prompt": "Two muscular cats boxing in a boxing ring.",
  "image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg"
};

fetch(url, {
  method: "POST",
  headers: headers,
  body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
curl -X POST "https://gateway.pixazo.ai/hunyuan-video-image-to-video/v1/hunyuan-video-image-to-video-request" \
  -H "Content-Type: application/json" \
  -H "Cache-Control: no-cache" \
  -H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
  --data-raw '{
    "prompt": "Two muscular cats boxing in a boxing ring.",
    "image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg"
  }'

Output

{
  "video": {
    "file_size": 14530500,
    "file_name": "output.mp4",
    "content_type": "application/octet-stream",
    "url": "[RESPONSE_URL]"
  }
}

Request Parameters - Hunyuan Video (Image to Video) generate request

ParameterRequiredTypeDefaultAllowed values / range
promptYesrequiredstring—Up to 1000 characters
Text description guiding the video generation. Must be detailed for best results.
image_urlYesrequiredstring——
The input image to convert into video. Must be reachable by the service.
seedNointeger——
Random seed that controls the generation's randomness. Reuse the same seed with identical settings to reproduce the same result; leave it empty for a different output each time.
aspect_ratioNostring16:916:9, 9:16
Aspect ratio of the output video.
resolutionNostring720p720p
Resolution of the generated video. This model supports 720p only.
num_framesNostring129129
Number of frames to generate. This model supports 129 frames only (roughly 5 seconds at 24fps).
i2v_stabilityNobooleanfalsetrue, false
Reduces glitches and odd artifacts when animating an image, at the cost of less motion.

Content Item Types & Limits

TypeMaxFormat / SizeDescription
image1JPG, PNG, WEBP · < 10 MBInput image to animate.

Minimum Request

{
  "prompt": "Two muscular cats boxing in a boxing ring.",
  "image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg"
}

Full Request (all options)

{
  "prompt": "Two muscular cats boxing in a boxing ring.",
  "image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg",
  "seed": 42,
  "aspect_ratio": "16:9",
  "resolution": "720p",
  "num_frames": "129",
  "i2v_stability": false
}

Response

{
  "video": {
    "file_size": 14530500,
    "file_name": "output.mp4",
    "content_type": "application/octet-stream",
    "url": "[RESPONSE_URL]"
  }
}

Response Fields - Hunyuan Video (Image to Video) generate request

Field Type Description
video object Object containing video output details
video.file_size integer Size of the video file in bytes
video.file_name string Filename of the output video
video.content_type string MIME type of the video file
video.url string URL to download the generated video

Request Headers

Header Value
Content-Type application/json
Cache-Control no-cache
Ocp-Apim-Subscription-Key Your API subscription key

Response Handling

Common status codes for Hunyuan Video (Image to Video) generate request.

Code Meaning
200 Success
Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
Too Many Requests
500 Internal Server Error

Error Responses

400 Validation Error

{
  "error": "Missing required parameter: prompt"
}

404 Not Found

{
  "error": "Resource not found"
}

Job Status Workflow

Poll the status endpoint to track progress after submitting a request.

Status Description
QUEUED Request accepted, waiting to be processed
PROCESSING Being processed by the model
COMPLETED Done — output contains the result
FAILED Failed — check error field for details
ERROR System error occurred — request was not processed and not charged

Status Flow

Submitted → QUEUED → PROCESSING → COMPLETED
                               ↘ FAILED
                               ↘ ERROR

Typical Workflow

  1. Submit request using POST /hunyuan-video-image-to-video-request
  2. Receive response with request_id
  3. Poll the status endpoint every 2–5 seconds with the request_id
  4. When status is COMPLETED, extract the video URL from output
  5. Download the video using the provided URL

Hunyuan Video (Image to Video) check status - Hunyuan Video (Image to Video)

Request Code

POST https://gateway.pixazo.ai/hunyuan-video-image-to-video/v1/hunyuan-video-image-to-video-request-result
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "request_id": "hunyuan-video-image-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
import requests

url = "https://gateway.pixazo.ai/hunyuan-video-image-to-video/v1/hunyuan-video-image-to-video-request-result"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
    "request_id": "hunyuan-video-image-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

response = requests.post(url, headers=headers, json=data)
print(response.json())
const url = "https://gateway.pixazo.ai/hunyuan-video-image-to-video/v1/hunyuan-video-image-to-video-request-result";
const headers = {
  "Content-Type": "application/json",
  "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
};
const data = {
  "request_id": "hunyuan-video-image-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
};

fetch(url, {
  method: "POST",
  headers: headers,
  body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
curl -X POST "https://gateway.pixazo.ai/hunyuan-video-image-to-video/v1/hunyuan-video-image-to-video-request-result" \
  -H "Content-Type: application/json" \
  -H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
  --data-raw '{
    "request_id": "hunyuan-video-image-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  }'

Output

{
  "video": {
    "file_size": 14530500,
    "file_name": "output.mp4",
    "content_type": "application/octet-stream",
    "url": "[RESPONSE_URL]"
  }
}

Request Parameters - Hunyuan Video (Image to Video) check status

ParameterRequiredTypeDefaultAllowed values / range
request_idYesrequiredstring——
The unique identifier returned from the initial request to check status.

Minimum Request

{
  "request_id": "hunyuan-video-image-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Full Request (all options)

{
  "request_id": "hunyuan-video-image-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Response

{
  "video": {
    "file_size": 14530500,
    "file_name": "output.mp4",
    "content_type": "application/octet-stream",
    "url": "[RESPONSE_URL]"
  }
}

Response Fields - Hunyuan Video (Image to Video) check status

Field Type Description
video object Object containing video output details
video.file_size integer Size of the video file in bytes
video.file_name string Filename of the output video
video.content_type string MIME type of the video file
video.url string URL to download the generated video

Request Headers

Header Value
Content-Type application/json
Ocp-Apim-Subscription-Key Your API subscription key

Response Handling

Common status codes for Hunyuan Video (Image to Video) check status.

Code Meaning
200 Success
Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
Too Many Requests
500 Internal Server Error

Usage Notes

  1. Poll the status endpoint every 2–5 seconds until COMPLETED, FAILED, or ERROR is returned.
  2. Implement exponential backoff for retry logic on ERROR or 500 responses.
  3. Use detailed, action-oriented prompts (e.g., “a cat jumps over a fence with motion blur”) for more dynamic results.
  4. For consistent outputs across runs, explicitly set the seed parameter.
  5. Ensure image_url points to a publicly accessible, static image with reasonable size (under 10MB recommended).
  6. Use i2v_stability: true for scenes requiring high visual fidelity over motion intensity.

Hunyuan Video v1 API Pricing

Your request will cost $0.40 per video.
Video to Video (Video Editing)

Hunyuan Video v1 API Documentation

https://gateway.pixazo.ai/hunyuan-video-video-to-video/v1/hunyuan-video-video-to-video-request

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Hunyuan Video (Video to Video) generate request

Request Code

POST https://gateway.pixazo.ai/hunyuan-video-video-to-video/v1/hunyuan-video-video-to-video-request
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_API_KEY

{
  "prompt": "A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a dark blue leather jacket, a long pink dress, and bright yellow boots, and carries a black purse.",
  "aspect_ratio": "16:9",
  "resolution": "720p",
  "num_frames": "129",
  "enable_safety_checker": true,
  "video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4",
  "strength": 0.85
}
import requests

url = "https://gateway.pixazo.ai/hunyuan-video-video-to-video/v1/hunyuan-video-video-to-video-request"
headers = {
    "Content-Type": "application/json",
    "Cache-Control": "no-cache",
    "Ocp-Apim-Subscription-Key": "YOUR_API_KEY"
}
data = {
    "prompt": "A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a dark blue leather jacket, a long pink dress, and bright yellow boots, and carries a black purse.",
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "num_frames": "129",
    "enable_safety_checker": true,
    "video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4",
    "strength": 0.85
}

response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = "https://gateway.pixazo.ai/hunyuan-video-video-to-video/v1/hunyuan-video-video-to-video-request";

const data = {
  prompt: "A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a dark blue leather jacket, a long pink dress, and bright yellow boots, and carries a black purse.",
  aspect_ratio: "16:9",
  resolution: "720p",
  num_frames: "129",
  enable_safety_checker: true,
  video_url: "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4",
  strength: 0.85
};

fetch(url, {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Cache-Control": "no-cache",
    "Ocp-Apim-Subscription-Key": "YOUR_API_KEY"
  },
  body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data));
curl -X POST "https://gateway.pixazo.ai/hunyuan-video-video-to-video/v1/hunyuan-video-video-to-video-request" \
  -H "Content-Type: application/json" \
  -H "Cache-Control: no-cache" \
  -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
  --data-raw '{
    "prompt": "A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a dark blue leather jacket, a long pink dress, and bright yellow boots, and carries a black purse.",
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "num_frames": "129",
    "enable_safety_checker": true,
    "video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4",
    "strength": 0.85
  }'

Output

{
  "request_id": "hunyuan-video-video-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/hunyuan-video-video-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.

Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.

Webhook Headers

HeaderRequiredDefaultDescription
X-Webhook-URLYes (to enable)—HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed).
X-Webhook-ModeNoterminalterminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates.

Example: enable webhook

X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal

Callback Payload

Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):

{
  "request_id": "hunyuan-video-video-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "hunyuan-video-video-to-video",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/hunyuan-video-video-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
    ],
    "media_type": "video/mp4"
  },
  "created_at": "2026-05-22T13:17:32.110Z",
  "updated_at": "2026-05-22 13:19:23",
  "completed_at": "2026-05-22 13:19:23"
}

Failure callback shape

{
  "request_id": "hunyuan-video-video-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "hunyuan-video-video-to-video",
  "error": "Description of the error",
  "output": null,
  "created_at": "...",
  "updated_at": "...",
  "completed_at": "..."
}

Delivery semantics

  • terminal mode (default) — exactly one POST when the request reaches a terminal status. No callback during PROCESSING.
  • sync mode — POST on every status poll (with delay capped at ~15s) plus a final POST at terminal status. Use when you want progress updates.
  • Idempotency — use request_id as your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates.
  • Response — respond 200 OK within a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries.
  • HTTPS required — plain http:// URLs are rejected.

Request Parameters - Hunyuan Video (Video to Video) generate request

ParameterRequiredTypeDefaultAllowed values / range
promptYesrequiredstring——
The prompt to guide video transformation. Must describe the desired visual changes to the input video.
video_urlYesrequiredstring——
The input video file to be transformed. Must be reachable by the Pixazo service.
strengthNofloat0.850.01 to 1.0
How much the result may differ from the input. Higher values allow bigger changes from the source; lower values keep the output closer to the original.
seedNointeger——
Random seed that controls the generation's randomness. Reuse the same seed with identical settings to reproduce the same result; leave it empty for a different output each time.
pro_modeNobooleanfalsetrue, false
By default generations run 35 steps. Pro mode runs 55 steps for higher-quality video — it takes longer and costs 2x more billing units.
aspect_ratioNostring"16:9""16:9", "9:16"
Output video aspect ratio.
resolutionNostring"720p""480p", "580p", "720p"
Output video resolution.
num_framesNostring"129""129", "85"
Number of frames in the output video.
enable_safety_checkerNobooleanfalsetrue, false
Turns on automatic filtering of unsafe or explicit (NSFW) content. Leave enabled unless you have a specific reason to disable it.

Content Item Types & Limits

TypeMaxFormat / SizeDescription
video1MP4, MOVSource video to transform.

Example Request

{
  "prompt": "A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a dark blue leather jacket, a long pink dress, and bright yellow boots, and carries a black purse.",
  "aspect_ratio": "16:9",
  "resolution": "720p",
  "num_frames": "129",
  "enable_safety_checker": true,
  "video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4",
  "strength": 0.85
}

Response

{
  "request_id": "hunyuan-video-video-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/hunyuan-video-video-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

Header Value
Content-Typeapplication/json
Cache-Controlno-cache
Ocp-Apim-Subscription-KeyYOUR_API_KEY

Response Handling

Common status codes.

CodeMeaning
202Accepted — Request queued
Bad Request
401Unauthorized
402Insufficient Balance
403Forbidden
Too Many Requests
500Internal Server Error

Error Responses

Queue system errors and model validation errors.

Queue System Errors

// 402 — Insufficient balance
{
  "error": "Insufficient Balance",
  "message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
  "error": "Model not found",
  "message": "Model 'hunyuan-video-video-to-video' not found or is disabled"
}

Error via Status/Webhook

{
  "request_id": "hunyuan-video-video-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "hunyuan-video-video-to-video",
  "error": "Description of the error",
  "output": null
}

Retrieving Results

Poll the universal status endpoint to check progress and retrieve results.

Endpoint

GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY

cURL Example

curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
  "https://gateway.pixazo.ai/v2/requests/status/hunyuan-video-video-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

Response (Completed)

{
  "request_id": "hunyuan-video-video-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "hunyuan-video-video-to-video",
  "error": null,
  "output": {
    "media_url": ["https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/hunyuan-video-video-to-video_019dxxxx/output.mp4"],
    "media_type": "video/mp4"
  },
  "created_at": "2026-03-31T10:00:00.000Z",
  "updated_at": "2026-03-31T10:00:15.000Z",
  "completed_at": "2026-03-31T10:00:15.000Z"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR
model_idstringModel that processed the request
errorstring|nullError message if failed
output.media_urlarrayURLs to generated media (R2 CDN)
output.media_typestringMIME type of the output
created_atstringWhen request was created
completed_atstringWhen request completed
polling_urlstringStatus URL (initial response only)

Status Values

StatusDescription
QUEUEDRequest accepted, waiting to be processed
PROCESSINGBeing processed by the model
COMPLETEDDone — output contains the result
FAILEDFailed — check error field
ERRORSystem error — not charged

Status Flow

QUEUED → PROCESSING → COMPLETED
                    → FAILED
                    → ERROR

Typical Workflow

  1. Send a generate request to the API endpoint
  2. Save the request_id from the response
  3. Poll every 5-10 seconds: GET /v2/requests/status/{request_id}
  4. When status is "COMPLETED", download from output.media_url

Tip: Use X-Webhook-URL header to get a callback instead of polling.

Hunyuan Video v1 API Pricing

Your request will cost $0.30 per compute second.
A compute second = 1 second of GPU time, not 1 second of output video. A typical 5-second 720p input takes ~30 compute seconds ≈ $0.04. Cost scales with input length, resolution, and processing complexity.

⚡ Performance

Live usage measured on Pixazo's gateway, split by model version. Generation time is how long a generation takes end-to-end (lower is better). Success rate is the percent of generations that complete (higher is better).

Show data for the last
Generations
1,400last 30d
~47 per day
Success rate
21.4%
of completed generations
Generation time
3.1minavg
p95 2.9min
Requests
Nov 1max 1,400Nov 30
HunyuanVideo 1.5Avg 47/day
Generation Time
Nov 1max 3.1minNov 30
HunyuanVideo 1.5Avg 3.1min
Error Rate
Nov 1max 78.6%Nov 30
HunyuanVideo 1.5Avg 78.6%

〰 Uptime

Percent of generations that succeeded over the selected period, per model version.

Avg. Success Rate (30d)
21.43%
across all generations of this model family
Uptime
Nov 1max 100%Nov 30
SuccessfulAvg 21.43%