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.

Models Version
Get 10% Cashback on Your First Payment (up to $500)
Add funds and get 10% cashback on your first payment (up to $500).
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-videoAuthentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your 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.
| Header | Required | Description |
|---|---|---|
| X-Webhook-URL | To enable | HTTPS URL to receive the Webhook callback. |
| X-Webhook-Mode | No | terminal (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
200within a few seconds; the Webhook endpoint must be HTTPS.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
prompt | Yesrequired | string | — | Up to 4,000 characters |
| What the video shows: the subject, the action, the setting, the light and the camera movement. | ||||
aspect_ratio | No | string | "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_prompt | No | string | — | Up to 2,000 characters |
| What to keep out of the video, for example blur or extra people. | ||||
seed | No | integer | random | 0 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_rewrite | No | boolean | the model's default | true, false |
Let the model expand your prompt into a more detailed description before it generates. Send false to use your prompt as written. | ||||
duration | No | integer | 5 | 5 |
| Every video is 5 seconds long. Any other value is refused. | ||||
resolution | No | string | "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/falsewithout quotes for the switch. Omit a field instead of sendingnull.
Parameters not supported
Rejected with 400
Checked when you submit: the request is rejected before it is queued, and nothing is held or charged.
| Parameter | Why |
|---|---|
batch_size, count, n, num_images, num_outputs, num_videos, number_of_videos | Not supported: HunyuanVideo 1.5 makes one 5-second clip per request, so send one request per video. |
duration_seconds, fps, frames, num_frames, video_length | Not supported: HunyuanVideo 1.5 renders a fixed 5-second 720p clip. |
footnote, image_base64, model, moderation | Not supported by this API. |
height, image_size, size, width | Not supported: text-to-video takes aspect_ratio (16:9, 9:16, 1:1, 4:3, 3:4); image-to-video follows the image. |
image | Not supported: send a public JPG or PNG URL as image_url. |
image_url | Not accepted by text-to-video. To animate an image use POST https://gateway.pixazo.ai/hunyuan-video-1-5/v1/image-to-video. |
revise | Not 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.
| Parameter | When the request fails |
|---|---|
prompt | 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 aspect_ratio.
Measured at launch:
| Request | Size | Length | Frame rate | Sound |
|---|---|---|---|---|
aspect_ratio not sent (16:9) | 1280×720 | 5.04 s | 24 fps | No |
aspect_ratio 9:16 | 720×1280 | 5.04 s | 24 fps | No |
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
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | application/json |
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| X-Webhook-URL | No | Enable Webhook callbacks (see Webhook section). |
| X-Webhook-Mode | No | terminal (default) or sync (see Webhook section). |
Response Handling
| Status Code | Meaning |
|---|---|
| 202 | Accepted — request queued; returns request_id and polling_url. |
| 400 | Bad request — the body failed the submit check (see Request Parameters); nothing was queued. |
| 401 | Unauthorized — missing or invalid subscription key. |
| 402 | Insufficient balance for the hold this request needs. |
| 429 | Too many requests. |
| 500 | Internal 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_KEYcURL 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
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier. |
| status | string | QUEUED, PROCESSING, COMPLETED or ERROR. |
| model_id | string | The model that handled the request — hunyuan-video-1-5 for this endpoint. |
| error | string or null | Error message when status is ERROR; otherwise null. |
| output.media_url | array of strings | URL of the MP4 (one per request). Download it and keep your own copy. |
| output.media_type | string | video/mp4. |
| created_at | string | Request creation timestamp. |
| completed_at | string | Completion timestamp. |
| polling_url | string | Status URL for this request (in the submit response). |
Status Values & Flow
QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure).
Typical workflow
- Send the request to
POST https://gateway.pixazo.ai/hunyuan-video-1-5/v1/text-to-video. - Save the
request_idfrom the202response. - Poll
GET /v2/requests/status/{request_id}every 10 seconds or so, or use a Webhook instead. - When
statusisCOMPLETED, download the video fromoutput.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
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-videoAuthentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your 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.
| Header | Required | Description |
|---|---|---|
| X-Webhook-URL | To enable | HTTPS URL to receive the Webhook callback. |
| X-Webhook-Mode | No | terminal (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
200within a few seconds; the Webhook endpoint must be HTTPS.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
image_url | Yesrequired | string | — | 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). | ||||
prompt | No | string | — | Up to 4,000 characters |
| What should happen: the motion, the action and the camera. Without it the model chooses the motion. | ||||
negative_prompt | No | string | — | Up to 2,000 characters |
| What to keep out of the video, for example blur or extra people. | ||||
seed | No | integer | random | 0 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_rewrite | No | boolean | the model's default | true, false |
Let the model expand your prompt into a more detailed description before it generates. Send false to use your prompt as written. | ||||
duration | No | integer | 5 | 5 |
| Every video is 5 seconds long. Any other value is refused. | ||||
resolution | No | string | "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/falsewithout quotes for the switch. Omit a field instead of sendingnull. - 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.
| Parameter | Why |
|---|---|
aspect_ratio | Not accepted by image-to-video: the video takes the image's shape. |
batch_size, count, n, num_images, num_outputs, num_videos, number_of_videos | Not supported: HunyuanVideo 1.5 makes one 5-second clip per request, so send one request per video. |
duration_seconds, fps, frames, num_frames, video_length | Not supported: HunyuanVideo 1.5 renders a fixed 5-second 720p clip. |
footnote, image_base64, model, moderation | Not supported by this API. |
height, image_size, size, width | Not supported: text-to-video takes aspect_ratio (16:9, 9:16, 1:1, 4:3, 3:4); image-to-video follows the image. |
image | Not supported: send a public JPG or PNG URL as image_url. |
revise | Not 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.
| Parameter | When the request fails |
|---|---|
image_url | The 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, prompt | The 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:
| Request | Size | Length | Frame rate | Sound |
|---|---|---|---|---|
| a 853×1280 image | 784×1168 | 5.04 s | 24 fps | No |
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
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | application/json |
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| X-Webhook-URL | No | Enable Webhook callbacks (see Webhook section). |
| X-Webhook-Mode | No | terminal (default) or sync (see Webhook section). |
Response Handling
| Status Code | Meaning |
|---|---|
| 202 | Accepted — request queued; returns request_id and polling_url. |
| 400 | Bad request — the body failed the submit check (see Request Parameters); nothing was queued. |
| 401 | Unauthorized — missing or invalid subscription key. |
| 402 | Insufficient balance for the hold this request needs. |
| 429 | Too many requests. |
| 500 | Internal 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_KEYcURL 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
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier. |
| status | string | QUEUED, PROCESSING, COMPLETED or ERROR. |
| model_id | string | The model that handled the request — hunyuan-video-1-5 for this endpoint. |
| error | string or null | Error message when status is ERROR; otherwise null. |
| output.media_url | array of strings | URL of the MP4 (one per request). Download it and keep your own copy. |
| output.media_type | string | video/mp4. |
| created_at | string | Request creation timestamp. |
| completed_at | string | Completion timestamp. |
| polling_url | string | Status URL for this request (in the submit response). |
Status Values & Flow
QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure).
Typical workflow
- Send the request to
POST https://gateway.pixazo.ai/hunyuan-video-1-5/v1/image-to-video. - Save the
request_idfrom the202response. - Poll
GET /v2/requests/status/{request_id}every 10 seconds or so, or use a Webhook instead. - When
statusisCOMPLETED, download the video fromoutput.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
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.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your 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
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (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-Mode | No | terminal | terminal — 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
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin 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
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
prompt | Yesrequired | string | — | — |
| Text description of the video to generate. | ||||
num_inference_steps | No | integer | 30 | 1-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_mode | No | boolean | false | true, 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_ratio | No | string | "16:9" | "16:9", "9:16" |
| Video aspect ratio. | ||||
resolution | No | string | "720p" | "480p", "580p", "720p" |
| Output video resolution. | ||||
num_frames | No | string | "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_checker | No | boolean | false | true, false |
| Turns on automatic filtering of unsafe or explicit (NSFW) content. Leave enabled unless you have a specific reason to disable it. | ||||
seed | No | integer | — | — |
| 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-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Hunyuan Video v1 API Pricing
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
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
prompt | Yesrequired | string | — | Up to 1000 characters |
| Text description guiding the video generation. Must be detailed for best results. | ||||
image_url | Yesrequired | string | — | — |
| The input image to convert into video. Must be reachable by the service. | ||||
seed | No | integer | — | — |
| 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_ratio | No | string | 16:9 | 16:9, 9:16 |
| Aspect ratio of the output video. | ||||
resolution | No | string | 720p | 720p |
| Resolution of the generated video. This model supports 720p only. | ||||
num_frames | No | string | 129 | 129 |
| Number of frames to generate. This model supports 129 frames only (roughly 5 seconds at 24fps). | ||||
i2v_stability | No | boolean | false | true, false |
| Reduces glitches and odd artifacts when animating an image, at the cost of less motion. | ||||
Content Item Types & Limits
| Type | Max | Format / Size | Description |
|---|---|---|---|
| image | 1 | JPG, PNG, WEBP · < 10 MB | Input 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 |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 429 | 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
- Submit request using POST /hunyuan-video-image-to-video-request
- Receive response with
request_id - Poll the status endpoint every 2–5 seconds with the
request_id - When status is
COMPLETED, extract the video URL from output - 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
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
request_id | Yesrequired | string | — | — |
| 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 |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Usage Notes
- Poll the status endpoint every 2–5 seconds until
COMPLETED,FAILED, orERRORis returned. - Implement exponential backoff for retry logic on
ERRORor500responses. - Use detailed, action-oriented prompts (e.g., “a cat jumps over a fence with motion blur”) for more dynamic results.
- For consistent outputs across runs, explicitly set the
seedparameter. - Ensure
image_urlpoints to a publicly accessible, static image with reasonable size (under 10MB recommended). - Use
i2v_stability: truefor scenes requiring high visual fidelity over motion intensity.
Hunyuan Video v1 API Pricing
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.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your 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
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (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-Mode | No | terminal | terminal — 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
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin 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
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
prompt | Yesrequired | string | — | — |
| The prompt to guide video transformation. Must describe the desired visual changes to the input video. | ||||
video_url | Yesrequired | string | — | — |
| The input video file to be transformed. Must be reachable by the Pixazo service. | ||||
strength | No | float | 0.85 | 0.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. | ||||
seed | No | integer | — | — |
| 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_mode | No | boolean | false | true, 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_ratio | No | string | "16:9" | "16:9", "9:16" |
| Output video aspect ratio. | ||||
resolution | No | string | "720p" | "480p", "580p", "720p" |
| Output video resolution. | ||||
num_frames | No | string | "129" | "129", "85" |
| Number of frames in the output video. | ||||
enable_safety_checker | No | boolean | false | true, 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
| Type | Max | Format / Size | Description |
|---|---|---|---|
| video | 1 | MP4, MOV | Source 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-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_API_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal 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
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| 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 |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Hunyuan Video v1 API Pricing
⚡ 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).
〰 Uptime
Percent of generations that succeeded over the selected period, per model version.