Luma Uni 1.1 Max API, Luma Ray 3.2 API, Luma Uni 1.1 API: Pricing, Documentation
by Luma AI
Luma is a breakthrough AI video generation model known for producing highly realistic, cinematic-quality videos. Through Pixazo's API, developers can generate videos from text prompts or images with exceptional visual quality and temporal consistency. The API supports multiple versions including v1.5 for enhanced capabilities, making it ideal for filmmakers, advertisers, and creative professionals.

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).
Luma Uni 1.1 Max API Documentation
Make an image from a text prompt with Luma Uni 1.1 Max Text to Image: describe the picture in prompt and pick the shape with aspect_ratio. Images in reference_image_urls guide the result, and enable_web_search lets the model look up real places, objects and people's work on the web first. Uni 1.1 Max is the higher-quality tier of Luma Uni 1.1 and takes the same inputs. Each request returns one PNG or JPEG image. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED, then download the image from output.media_url.
POST https://gateway.pixazo.ai/luma-agent-uni-1-max-text-to-image/v1/text-to-imageAuthentication
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 Image - Luma Uni 1.1 Max
Request Code
POST https://gateway.pixazo.ai/luma-agent-uni-1-max-text-to-image/v1/text-to-image
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"prompt": "A lighthouse on a rocky cliff at dusk, waves crashing below, warm light glowing in its windows, cinematic, highly detailed",
"aspect_ratio": "16:9"
}import requests
url = "https://gateway.pixazo.ai/luma-agent-uni-1-max-text-to-image/v1/text-to-image"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"prompt": "A lighthouse on a rocky cliff at dusk, waves crashing below, warm light glowing in its windows, cinematic, highly detailed",
"aspect_ratio": "16:9"
}
resp = requests.post(url, json=data, headers=headers)
print(resp.json())const res = await fetch("https://gateway.pixazo.ai/luma-agent-uni-1-max-text-to-image/v1/text-to-image", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
"prompt": "A lighthouse on a rocky cliff at dusk, waves crashing below, warm light glowing in its windows, cinematic, highly detailed",
"aspect_ratio": "16:9"
})
});
console.log(await res.json());curl -X POST 'https://gateway.pixazo.ai/luma-agent-uni-1-max-text-to-image/v1/text-to-image' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--data-raw '{"prompt": "A lighthouse on a rocky cliff at dusk, waves crashing below, warm light glowing in its windows, cinematic, highly detailed", "aspect_ratio": "16:9"}'Output
{
"request_id": "luma-agent-uni-1-max-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/luma-agent-uni-1-max-text-to-image_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/luma-agent-uni-1-max-text-to-image/v1/text-to-image' \
-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 lighthouse on a rocky cliff at dusk, waves crashing below, warm light glowing in its windows, cinematic, highly detailed", "aspect_ratio": "16:9"}'Callback Payload (success)
{
"request_id": "luma-agent-uni-1-max-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "luma-agent-uni-1-max-text-to-image",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/luma-agent-uni-1-max-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.png"
],
"media_type": "image/png"
},
"created_at": "2026-11-19T13:11:05.215Z",
"updated_at": "2026-11-19 13:13:01",
"completed_at": "2026-11-19 13:13:00"
}Failure callback shape
{
"request_id": "luma-agent-uni-1-max-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "luma-agent-uni-1-max-text-to-image",
"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 | — | Text |
| What the image should show: subject, setting, light and style. | ||||
reference_image_urls | No | array of strings | — | Publicly reachable http(s) URLs of images |
| Extra images that guide the result (a product, a person's look, a style). Each one adds a small amount to the price. | ||||
aspect_ratio | No | string | — | 3:1, 2:1, 16:9, 3:2, 1:1, 2:3, 9:16, 1:2, 1:3 |
| The shape of the image. Leave it out to let the model choose. | ||||
enable_web_search | No | boolean | false | true, false |
| Lets the model look things up on the web before it draws, for real landmarks, products or events. | ||||
style | No | string | "auto" | auto, manga |
manga draws in a manga style; auto lets the prompt decide. | ||||
output_format | No | string | "png" | png, jpeg |
| The file type of the image. | ||||
enable_safety_checker | No | boolean | true | true |
| The content safety check is always on; you may leave this out. | ||||
Good to know
- Each request returns one image. Send one request per image.
- Use the JSON types shown:
reference_image_urlsis a list, and switches aretrueorfalse, not strings. Omit a field instead of sendingnull. - To change an existing image, use Luma Uni 1.1 Max Image Editing.
- Only use images, likenesses and brands you have the right to use.
Fields this API does not accept
Each of these is refused with a 400 when you submit, before anything is held or charged. Omit a field instead of sending null.
| Parameter | Why |
|---|---|
content | Not supported: send the text as 'prompt'. |
format | Not a parameter here: use 'output_format' ('png' or 'jpeg'). |
image_size, width, height, size, resolution | Not supported: set the shape with 'aspect_ratio'. |
image_url | Not supported: this API makes a new image. To change an existing image, use Luma Uni 1.1 Max Image Editing. |
image_urls, images, image | Not supported: send guide images as 'reference_image_urls'. |
input, parameters | Not supported: send the parameters at the top level of the JSON body. |
model | Not supported: this endpoint always runs Luma Uni 1.1 Max Text to Image. |
negative_prompt | Not supported: describe what you want in 'prompt'. |
num_images, number_of_images, batch_size, n, count, num_outputs | Not supported: Luma Uni 1.1 Max returns one image per request. Send one request per image. |
reference_images | Not a parameter here: use 'reference_image_urls' (a list of image URLs). |
seed, num_inference_steps, guidance_scale | Not supported on Luma Uni 1.1 Max. |
stream | Not supported: the job runs in the queue; poll it for the result. |
text | Not a parameter here: send the text as 'prompt'. |
web_search | Not a parameter here: use 'enable_web_search' (true or false). |
webhook_url, callback_url | Not supported in the body: send the X-Webhook-URL header instead. |
Output
- One image per request, as a PNG (
output_formatpng, the default) or a JPEG (jpeg). aspect_ratiosets the shape; the model picks the pixel size.
Measured on the images made at launch:
| aspect_ratio | Size | Format | Reference images |
|---|---|---|---|
| not set | 2672 × 1504 | PNG | 0 |
16:9 | 2672 × 1504 | PNG | 0 |
1:1 | 2048 × 2048 | PNG | 2 |
9:16 | 1504 × 2672 | JPEG | 0 |
Example: a wide image with reference images, as a JPEG
{
"prompt": "A lighthouse on a rocky cliff at dusk, waves crashing below, warm light glowing in its windows, cinematic, highly detailed",
"aspect_ratio": "2:1",
"reference_image_urls": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/minimax_images/h3-image/2026/11/11/a5a743ec-24cc-424d-98df-ecd6ef235998.jpg"
],
"output_format": "jpeg"
}Timing
At launch, the example request took about 2 minutes from submit to result. Poll the status endpoint every few seconds, or use a Webhook.
Example Request
{
"prompt": "A lighthouse on a rocky cliff at dusk, waves crashing below, warm light glowing in its windows, cinematic, highly detailed",
"aspect_ratio": "16:9"
}Example Response
{
"request_id": "luma-agent-uni-1-max-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/luma-agent-uni-1-max-text-to-image_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 | Invalid request — a required field is missing, a value has the wrong type, is out of range or is not one of the allowed values, or a field this operation does not accept was sent. The message says what to fix. |
| 401 | Unauthorized — missing or invalid subscription key. |
| 402 | Insufficient balance for the hold this request needs. |
| 429 | Too many requests. |
| 500 | Internal server error. |
Parameter problems are caught when you submit and returned as a 400, before any hold is placed on your balance. Problems that need the model to run are reported through the status endpoint as status: "ERROR", with a message in error. Failed requests are not billed — the hold is released in full.
| Condition | How it surfaces |
|---|---|
| Missing or invalid subscription key | synchronous 401 |
| Balance too low for the hold | synchronous 402 |
Missing or empty prompt, or a field sent with the wrong JSON type | synchronous 400 |
style, output_format or aspect_ratio not one of the allowed values (written exactly as listed) | synchronous 400 |
| A field this API does not accept (see Request Parameters) | synchronous 400 |
| An image link that cannot be fetched, or a file that is not an image (nothing is charged) | synchronous 400 or status: "ERROR" |
| A prompt or image the model refuses under its content policy (nothing is charged) | status: "ERROR" |
| A temporary problem on the provider side (nothing is charged; try again later) | status: "ERROR" |
Example error responses
A refused request returns error, a message that joins every problem found, and the same problems one by one in violations.
An image on the text API (synchronous 400)
Sent {"prompt": "A lighthouse on a rocky cliff at dusk, waves crashing below, warm light glowing in its windows, cinematic, highly detailed", "image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}:
{
"error": "Invalid request parameters",
"message": "'image_url' must be one of: (got \"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png\"); 'image_url' is not supported: this API makes a new image. To change an existing image, use Luma Uni 1.1 Max Image Editing.",
"violations": [
"'image_url' must be one of: (got \"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png\")",
"'image_url' is not supported: this API makes a new image. To change an existing image, use Luma Uni 1.1 Max Image Editing."
]
}An aspect ratio Uni-1 does not offer (synchronous 400)
Sent {"prompt": "A lighthouse on a rocky cliff at dusk, waves crashing below, warm light glowing in its windows, cinematic, highly detailed", "aspect_ratio": "4:3"}:
{
"error": "Invalid request parameters",
"message": "'aspect_ratio' must be one of: \"3:1\", \"2:1\", \"16:9\", \"3:2\", \"1:1\", \"2:3\", \"9:16\", \"1:2\", \"1:3\" (got \"4:3\")",
"violations": [
"'aspect_ratio' must be one of: \"3:1\", \"2:1\", \"16:9\", \"3:2\", \"1:1\", \"2:3\", \"9:16\", \"1:2\", \"1:3\" (got \"4:3\")"
]
}Retrieving Results
Poll the status endpoint with the request_id from the submit response until status is COMPLETED or ERROR, then download the image from output.media_url. Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.
Endpoint
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/luma-agent-uni-1-max-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'Completed response
Captured from a real Luma Uni 1.1 Max Text to Image request at launch; the request id is masked.
{
"request_id": "luma-agent-uni-1-max-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "luma-agent-uni-1-max-text-to-image",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/luma-agent-uni-1-max-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.png"
],
"media_type": "image/png"
},
"created_at": "2026-11-19T13:11:05.215Z",
"updated_at": "2026-11-19 13:13:01",
"completed_at": "2026-11-19 13:13:00"
}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 — luma-agent-uni-1-max-text-to-image for this endpoint. |
| output.media_url | array of strings | URL of the image (one file per request). Download it and keep your own copy. |
| output.media_type | string | The image type. |
| created_at | string | Request creation timestamp. |
| completed_at | string | Completion timestamp. |
| error | string | Error message when status is ERROR. |
| polling_url | string | Status URL for this request (submit response only). |
Status Values & Flow
QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure).
Typical workflow
- Send the request to
POST https://gateway.pixazo.ai/luma-agent-uni-1-max-text-to-image/v1/text-to-image. - 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 image fromoutput.media_url.
How Billing Is Measured
Billing is per image: a fixed amount for the image, plus a small amount for each image in reference_image_urls. style, output_format, aspect_ratio, enable_web_search and the prompt do not change the price. A hold for that amount is placed when the request is submitted and charged when the image is ready; it is released in full if the request fails. The current rates are shown in the pricing panel on this page.
Luma Uni 1.1 Max API Pricing
| Usage | Price (USD) |
|---|---|
| Per image | $0.1071 |
| Per reference image | $0.00315 |
Luma Uni 1.1 Max API Documentation
Edit an image with Luma Uni 1.1 Max Image Editing: send the picture in image_url and describe the change in prompt. Extra images in reference_image_urls guide the result, for example a product or a style to bring in. Uni 1.1 Max is the higher-quality tier of Luma Uni 1.1 and takes the same inputs. Each request returns one PNG or JPEG image. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED, then download the image from output.media_url.
POST https://gateway.pixazo.ai/luma-agent-uni-1-max-edit/v1/editAuthentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Image Editing - Luma Uni 1.1 Max
Request Code
POST https://gateway.pixazo.ai/luma-agent-uni-1-max-edit/v1/edit
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"prompt": "Turn this into a snowy winter night: a dark blue sky full of stars, soft moonlight on the snow, keep the tree and its shape",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"
}import requests
url = "https://gateway.pixazo.ai/luma-agent-uni-1-max-edit/v1/edit"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"prompt": "Turn this into a snowy winter night: a dark blue sky full of stars, soft moonlight on the snow, keep the tree and its shape",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"
}
resp = requests.post(url, json=data, headers=headers)
print(resp.json())const res = await fetch("https://gateway.pixazo.ai/luma-agent-uni-1-max-edit/v1/edit", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
"prompt": "Turn this into a snowy winter night: a dark blue sky full of stars, soft moonlight on the snow, keep the tree and its shape",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"
})
});
console.log(await res.json());curl -X POST 'https://gateway.pixazo.ai/luma-agent-uni-1-max-edit/v1/edit' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--data-raw '{"prompt": "Turn this into a snowy winter night: a dark blue sky full of stars, soft moonlight on the snow, keep the tree and its shape", "image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}'Output
{
"request_id": "luma-agent-uni-1-max-edit_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/luma-agent-uni-1-max-edit_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/luma-agent-uni-1-max-edit/v1/edit' \
-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": "Turn this into a snowy winter night: a dark blue sky full of stars, soft moonlight on the snow, keep the tree and its shape", "image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}'Callback Payload (success)
{
"request_id": "luma-agent-uni-1-max-edit_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "luma-agent-uni-1-max-edit",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/luma-agent-uni-1-max-edit_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.png"
],
"media_type": "image/png"
},
"created_at": "2026-11-19T13:11:25.308Z",
"updated_at": "2026-11-19 13:14:26",
"completed_at": "2026-11-19 13:14:25"
}Failure callback shape
{
"request_id": "luma-agent-uni-1-max-edit_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "luma-agent-uni-1-max-edit",
"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 | — | Text |
What the image should show: the change to make to the image in image_url. | ||||
image_url | Yesrequired | string | — | One publicly reachable http(s) URL of a JPEG, PNG or WebP image |
| The image to edit. | ||||
reference_image_urls | No | array of strings | — | Publicly reachable http(s) URLs of images |
| Extra images that guide the result (a product, a person's look, a style). Each one adds a small amount to the price. | ||||
style | No | string | "auto" | auto, manga |
manga draws in a manga style; auto lets the prompt decide. | ||||
output_format | No | string | "png" | png, jpeg |
| The file type of the image. | ||||
enable_safety_checker | No | boolean | true | true |
| The content safety check is always on; you may leave this out. | ||||
Good to know
- Each request returns one image. Send one request per image.
- Use the JSON types shown:
reference_image_urlsis a list, and switches aretrueorfalse, not strings. Omit a field instead of sendingnull. - To make a new image from text alone, use Luma Uni 1.1 Max Text to Image.
- Only use images, likenesses and brands you have the right to use.
Fields this API does not accept
Each of these is refused with a 400 when you submit, before anything is held or charged. Omit a field instead of sending null.
| Parameter | Why |
|---|---|
content | Not supported: send the text as 'prompt'. |
format | Not a parameter here: use 'output_format' ('png' or 'jpeg'). |
image | Not supported: send the image to edit as 'image_url'. |
image_size, width, height, size, resolution | Not supported: the edit endpoint has no size setting. |
image_urls, images | Not supported: send the image to edit as 'image_url' and any extra images as 'reference_image_urls'. |
input, parameters | Not supported: send the parameters at the top level of the JSON body. |
model | Not supported: this endpoint always runs Luma Uni 1.1 Max Image Editing. |
negative_prompt | Not supported: describe what you want in 'prompt'. |
num_images, number_of_images, batch_size, n, count, num_outputs | Not supported: Luma Uni 1.1 Max returns one image per request. Send one request per image. |
reference_images | Not a parameter here: use 'reference_image_urls' (a list of image URLs). |
seed, num_inference_steps, guidance_scale | Not supported on Luma Uni 1.1 Max. |
stream | Not supported: the job runs in the queue; poll it for the result. |
text | Not a parameter here: send the text as 'prompt'. |
web_search, aspect_ratio, enable_web_search | Not supported on the edit endpoint. |
webhook_url, callback_url | Not supported in the body: send the X-Webhook-URL header instead. |
Output
- One image per request, as a PNG (
output_formatpng, the default) or a JPEG (jpeg). - The edit starts from the image in
image_url: describe only the change you want.
Measured on the images made at launch:
| Shape | Size | Format | Reference images |
|---|---|---|---|
| from the image | 2784 × 1504 | PNG | 0 |
| from the image | 2784 × 1504 | PNG | 1 |
Example: with a reference image
{
"prompt": "Turn this into a snowy winter night: a dark blue sky full of stars, soft moonlight on the snow, keep the tree and its shape",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png",
"reference_image_urls": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/minimax_images/h3-image/2026/11/11/a5a743ec-24cc-424d-98df-ecd6ef235998.jpg"
]
}Timing
At launch, the example request took about 3 minutes from submit to result. Poll the status endpoint every few seconds, or use a Webhook.
Example Request
{
"prompt": "Turn this into a snowy winter night: a dark blue sky full of stars, soft moonlight on the snow, keep the tree and its shape",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"
}Example Response
{
"request_id": "luma-agent-uni-1-max-edit_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/luma-agent-uni-1-max-edit_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 | Invalid request — a required field is missing, a value has the wrong type, is out of range or is not one of the allowed values, or a field this operation does not accept was sent. The message says what to fix. |
| 401 | Unauthorized — missing or invalid subscription key. |
| 402 | Insufficient balance for the hold this request needs. |
| 429 | Too many requests. |
| 500 | Internal server error. |
Parameter problems are caught when you submit and returned as a 400, before any hold is placed on your balance. Problems that need the model to run are reported through the status endpoint as status: "ERROR", with a message in error. Failed requests are not billed — the hold is released in full.
| Condition | How it surfaces |
|---|---|
| Missing or invalid subscription key | synchronous 401 |
| Balance too low for the hold | synchronous 402 |
Missing or empty prompt or image_url, or a field sent with the wrong JSON type | synchronous 400 |
style, output_format not one of the allowed values (written exactly as listed) | synchronous 400 |
| A field this API does not accept (see Request Parameters) | synchronous 400 |
| An image link that cannot be fetched, or a file that is not an image (nothing is charged) | synchronous 400 or status: "ERROR" |
| A prompt or image the model refuses under its content policy (nothing is charged) | status: "ERROR" |
| A temporary problem on the provider side (nothing is charged; try again later) | status: "ERROR" |
Example error responses
A refused request returns error, a message that joins every problem found, and the same problems one by one in violations.
No image (synchronous 400)
Sent {"prompt": "Turn this into a snowy winter night: a dark blue sky full of stars, soft moonlight on the snow, keep the tree and its shape"}:
{
"error": "Invalid request parameters",
"message": "'image_url' is required",
"violations": [
"'image_url' is required"
]
}Aspect_ratio on the edit API (synchronous 400)
Sent {"prompt": "Turn this into a snowy winter night: a dark blue sky full of stars, soft moonlight on the snow, keep the tree and its shape", "image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png", "aspect_ratio": "1:1"}:
{
"error": "Invalid request parameters",
"message": "'aspect_ratio' must be one of: (got \"1:1\"); 'aspect_ratio' is not supported on the edit endpoint.",
"violations": [
"'aspect_ratio' must be one of: (got \"1:1\")",
"'aspect_ratio' is not supported on the edit endpoint."
]
}Retrieving Results
Poll the status endpoint with the request_id from the submit response until status is COMPLETED or ERROR, then download the image from output.media_url. Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.
Endpoint
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/luma-agent-uni-1-max-edit_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'Completed response
Captured from a real Luma Uni 1.1 Max Image Editing request at launch; the request id is masked.
{
"request_id": "luma-agent-uni-1-max-edit_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "luma-agent-uni-1-max-edit",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/luma-agent-uni-1-max-edit_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.png"
],
"media_type": "image/png"
},
"created_at": "2026-11-19T13:11:25.308Z",
"updated_at": "2026-11-19 13:14:26",
"completed_at": "2026-11-19 13:14:25"
}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 — luma-agent-uni-1-max-edit for this endpoint. |
| output.media_url | array of strings | URL of the image (one file per request). Download it and keep your own copy. |
| output.media_type | string | The image type. |
| created_at | string | Request creation timestamp. |
| completed_at | string | Completion timestamp. |
| error | string | Error message when status is ERROR. |
| polling_url | string | Status URL for this request (submit response only). |
Status Values & Flow
QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure).
Typical workflow
- Send the request to
POST https://gateway.pixazo.ai/luma-agent-uni-1-max-edit/v1/edit. - 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 image fromoutput.media_url.
How Billing Is Measured
Billing is per image: a fixed amount for the image, plus a small amount for the image in image_url and for each image in reference_image_urls. style, output_format and the prompt do not change the price. A hold for that amount is placed when the request is submitted and charged when the image is ready; it is released in full if the request fails. The current rates are shown in the pricing panel on this page.
Luma Uni 1.1 Max API Pricing
| Usage | Price (USD) |
|---|---|
| Per edit (base) | $0.1071 |
| Per source / reference image | $0.00315 |
Luma Ray 3.2 API Documentation
POST https://gateway.pixazo.ai/luma-agent-ray-v3-2-text-to-video/v1/text-to-video
Authentication
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 - Luma Ray v3.2
Request Code
POST https://gateway.pixazo.ai/luma-agent-ray-v3-2-text-to-video/v1/text-to-video
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"prompt": "A herd of wild horses galloping across a dusty desert plain under a blazing midday sun; wide tracking shot.",
"aspect_ratio": "16:9",
"resolution": "540p",
"duration": "5s"
}
import requests
url = "https://gateway.pixazo.ai/luma-agent-ray-v3-2-text-to-video/v1/text-to-video"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
payload = {
"prompt": "A herd of wild horses galloping across a dusty desert plain under a blazing midday sun; wide tracking shot.",
"aspect_ratio": "16:9",
"resolution": "540p",
"duration": "5s"
}
resp = requests.post(url, headers=headers, json=payload)
print(resp.json()) # { "request_id": "...", "status": "QUEUED", "polling_url": "..." }
const res = await fetch("https://gateway.pixazo.ai/luma-agent-ray-v3-2-text-to-video/v1/text-to-video", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
prompt: "A herd of wild horses galloping across a dusty desert plain under a blazing midday sun; wide tracking shot.",
aspect_ratio: "16:9",
resolution: "540p",
duration: "5s"
})
});
const data = await res.json();
console.log(data); // { request_id, status: "QUEUED", polling_url }
curl -X POST "https://gateway.pixazo.ai/luma-agent-ray-v3-2-text-to-video/v1/text-to-video" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"prompt": "A herd of wild horses galloping across a dusty desert plain under a blazing midday sun; wide tracking shot.",
"aspect_ratio": "16:9",
"resolution": "540p",
"duration": "5s"
}'
Output
{
"request_id": "luma-agent-ray-v3-2-text-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/luma-agent-ray-v3-2-text-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Instead of polling, you can receive a callback when the request reaches a terminal state. Pass the webhook headers on the submit request; the gateway will POST the result to your URL.
| Header | Type | Required | Description |
|---|---|---|---|
| X-Webhook-URL | string | No | HTTPS URL to receive the callback. Providing it enables webhook delivery. |
| X-Webhook-Mode | string | No | terminal (default) fires once on COMPLETED/ERROR; sync fires on each status transition. |
Example: enable webhook
curl -X POST "https://gateway.pixazo.ai/luma-agent-ray-v3-2-text-to-video/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/webhooks/pixazo" \
-H "X-Webhook-Mode: terminal" \
--data-raw '{"prompt": "A herd of wild horses galloping across a dusty desert plain under a blazing midday sun; wide tracking shot.", "aspect_ratio": "16:9", "resolution": "540p", "duration": "5s"}'
Callback Payload (success)
{
"request_id": "luma-agent-ray-v3-2-text-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "luma-agent-ray-v3-2-text-to-video",
"output": {
"media_url": ["https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/luma-agent-ray-v3-2-text-to-video_019dxxxx.../output.mp4"],
"media_type": "video/mp4"
}
}
Failure callback shape
{
"request_id": "luma-agent-ray-v3-2-text-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"error": "Failed to download the file. Please check if the URL is accessible."
}
- terminal mode delivers one callback on COMPLETED or ERROR; sync mode delivers on each status transition.
- Deliveries are keyed by
request_id— make your handler idempotent. - Respond with HTTP 200 within a few seconds; non-2xx responses are retried.
- The webhook URL must be HTTPS and publicly reachable.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
prompt | Yesrequired | string | — | — |
| Text prompt describing the video to generate. | ||||
aspect_ratio | No | string | 16:9 | 3:4, 4:3, 1:1, 9:16, 16:9, 21:9 |
| Aspect ratio of the generated video. | ||||
resolution | No | string | 540p | 540p, 720p, 1080p |
| Output resolution. Higher resolutions cost more. | ||||
duration | No | string | 5s | 5s, 10s |
| Duration of the generated video. | ||||
loop | No | boolean | false | true, false |
| Generate a seamless loop. Only valid for 5s SDR generations without an end frame. | ||||
hdr | No | boolean | false | true, false |
| Generate an HDR-encoded MP4. Requires HDR account access and 720p/1080p; not supported with 10s or loop. Billed at 2x the SDR rate. | ||||
exr_export | No | boolean | false | true, false |
| Also export an EXR sidecar alongside the MP4. Requires hdr=true. Billed at 3x the SDR rate. | ||||
Example Request
{
"prompt": "A herd of wild horses galloping across a dusty desert plain under a blazing midday sun; wide tracking shot.",
"aspect_ratio": "16:9",
"resolution": "540p",
"duration": "5s"
}
Example Response
{
"request_id": "luma-agent-ray-v3-2-text-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/luma-agent-ray-v3-2-text-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Required | Description |
|---|---|---|
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| Content-Type | Yes | Must be application/json. |
| X-Webhook-URL | No | HTTPS callback URL (see Webhook section). |
Response Handling
Common status codes returned by the submit endpoint.
| Status Code | Meaning |
|---|---|
| 202 Accepted | Request queued. Returns request_id, status: "QUEUED", and polling_url. |
| 400 Bad Request | Invalid request body or unknown model. |
| 401 Unauthorized | Missing or invalid subscription key. |
| 402 Payment Required | Insufficient wallet balance. |
| 403 Forbidden | Subscription not permitted to access this API. |
| 429 Too Many Requests | Rate limit exceeded. |
| 500 Internal Server Error | Unexpected gateway error. |
Error Responses
Queue-system errors are returned at submit time; generation errors are surfaced via the status endpoint / webhook with status: "ERROR".
// 402 — insufficient balance
{ "error": "Insufficient balance", "message": "Wallet balance is too low for this request." }
// 400 — model not found / invalid body
{ "error": "Model not found", "message": "Model 'luma-agent-ray-v3-2-text-to-video' not found or is disabled" }
// generation failure (via status / webhook)
{ "request_id": "luma-agent-ray-v3-2-text-to-video_019dxxxx...", "status": "ERROR", "error": "Failed to download the input file." }
Retrieving Results
Poll the status endpoint with the request_id until status is COMPLETED (or FAILED/ERROR).
curl -X GET "https://gateway.pixazo.ai/v2/requests/status/luma-agent-ray-v3-2-text-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY"
Completed response
{
"request_id": "luma-agent-ray-v3-2-text-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "luma-agent-ray-v3-2-text-to-video",
"error": null,
"output": {
"media_url": ["https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/luma-agent-ray-v3-2-text-to-video_019dxxxx.../output.mp4"],
"media_type": "video/mp4"
},
"created_at": "2026-06-30T09:20:33.812Z",
"completed_at": "2026-06-30T09:22:19.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique identifier for the request. |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR. |
| model_id | string | The model that handled the request (luma-agent-ray-v3-2-text-to-video). |
| error | string | null | Error message when the request fails; null otherwise. |
| output.media_url | string[] | Array of URLs to the generated MP4 video. |
| output.media_type | string | MIME type of the output (video/mp4). |
| created_at | string | ISO-8601 timestamp when the request was created. |
| completed_at | string | ISO-8601 timestamp when the request reached a terminal state. |
| polling_url | string | URL to poll for status (returned on submit). |
Status Values & Flow
| Status | Meaning |
|---|---|
| QUEUED | Request accepted and waiting to be processed. |
| PROCESSING | The video generation job is running. |
| COMPLETED | Done — output.media_url contains the generated video. |
| FAILED / ERROR | Generation failed — see error. |
Typical workflow
QUEUED → PROCESSING → COMPLETED (or FAILED / ERROR). Submit the request, then poll GET /v2/requests/status/{request_id} (or use a webhook) until the status is terminal, then download the video from output.media_url.
Luma Ray 3.2 API Pricing
Luma Ray 3.2 API Documentation
POST https://gateway.pixazo.ai/luma-agent-ray-v3-2-image-to-video/v1/image-to-video
Authentication
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 - Luma Ray v3.2
Request Code
POST https://gateway.pixazo.ai/luma-agent-ray-v3-2-image-to-video/v1/image-to-video
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"prompt": "Low-angle shot of a majestic tiger prowling through a snowy landscape, leaving paw prints on the white blanket.",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg",
"aspect_ratio": "16:9",
"resolution": "540p",
"duration": "5s"
}
import requests
url = "https://gateway.pixazo.ai/luma-agent-ray-v3-2-image-to-video/v1/image-to-video"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
payload = {
"prompt": "Low-angle shot of a majestic tiger prowling through a snowy landscape, leaving paw prints on the white blanket.",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg",
"aspect_ratio": "16:9",
"resolution": "540p",
"duration": "5s"
}
resp = requests.post(url, headers=headers, json=payload)
print(resp.json()) # { "request_id": "...", "status": "QUEUED", "polling_url": "..." }
const res = await fetch("https://gateway.pixazo.ai/luma-agent-ray-v3-2-image-to-video/v1/image-to-video", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
prompt: "Low-angle shot of a majestic tiger prowling through a snowy landscape, leaving paw prints on the white blanket.",
image_url: "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg",
aspect_ratio: "16:9",
resolution: "540p",
duration: "5s"
})
});
const data = await res.json();
console.log(data); // { request_id, status: "QUEUED", polling_url }
curl -X POST "https://gateway.pixazo.ai/luma-agent-ray-v3-2-image-to-video/v1/image-to-video" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"prompt": "Low-angle shot of a majestic tiger prowling through a snowy landscape, leaving paw prints on the white blanket.",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg",
"aspect_ratio": "16:9",
"resolution": "540p",
"duration": "5s"
}'
Output
{
"request_id": "luma-agent-ray-v3-2-image-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/luma-agent-ray-v3-2-image-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Instead of polling, you can receive a callback when the request reaches a terminal state. Pass the webhook headers on the submit request; the gateway will POST the result to your URL.
| Header | Type | Required | Description |
|---|---|---|---|
| X-Webhook-URL | string | No | HTTPS URL to receive the callback. Providing it enables webhook delivery. |
| X-Webhook-Mode | string | No | terminal (default) fires once on COMPLETED/ERROR; sync fires on each status transition. |
Example: enable webhook
curl -X POST "https://gateway.pixazo.ai/luma-agent-ray-v3-2-image-to-video/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/webhooks/pixazo" \
-H "X-Webhook-Mode: terminal" \
--data-raw '{"prompt": "Low-angle shot of a majestic tiger prowling through a snowy landscape, leaving paw prints on the white blanket.", "image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg", "aspect_ratio": "16:9", "resolution": "540p", "duration": "5s"}'
Callback Payload (success)
{
"request_id": "luma-agent-ray-v3-2-image-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "luma-agent-ray-v3-2-image-to-video",
"output": {
"media_url": ["https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/luma-agent-ray-v3-2-image-to-video_019dxxxx.../output.mp4"],
"media_type": "video/mp4"
}
}
Failure callback shape
{
"request_id": "luma-agent-ray-v3-2-image-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"error": "Failed to download the file. Please check if the URL is accessible."
}
- terminal mode delivers one callback on COMPLETED or ERROR; sync mode delivers on each status transition.
- Deliveries are keyed by
request_id— make your handler idempotent. - Respond with HTTP 200 within a few seconds; non-2xx responses are retried.
- The webhook URL must be HTTPS and publicly reachable.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
prompt | Yesrequired | string | — | — |
| Text prompt describing the motion/scene to generate. | ||||
image_url | No | string | — | — |
| URL of the first-frame image. Provide image_url (optionally with end_image_url) OR keyframes — mutually exclusive. | ||||
end_image_url | No | string | — | — |
| Optional last-frame image; the model interpolates between image_url and end_image_url. Cannot be combined with keyframes. | ||||
aspect_ratio | No | string | 16:9 | 3:4, 4:3, 1:1, 9:16, 16:9, 21:9 |
| Aspect ratio of the generated video. | ||||
resolution | No | string | 540p | 540p, 720p, 1080p |
| Output resolution. Higher resolutions cost more. | ||||
duration | No | string | 5s | 5s, 10s |
| Duration of the generated video. 10s requires multi-keyframe input (keyframes / keyframe_indexes); not supported with a single image_url / end_image_url anchor. | ||||
loop | No | boolean | false | true, false |
| Generate a seamless loop. SDR only, no end frame or keyframes. | ||||
hdr | No | boolean | false | true, false |
| HDR-encoded MP4. Requires HDR account access and 720p/1080p; not supported with loop. Billed at 2x the SDR rate. | ||||
exr_export | No | boolean | false | true, false |
| Also export an EXR sidecar. Requires hdr=true. Billed at 3x the SDR rate. | ||||
keyframes | No | list<string> | — | 1-64 URLs |
| Multi-keyframe guide frames pinned at keyframe_indexes. Mutually exclusive with image_url/end_image_url/loop; unlocks 10s and HDR. | ||||
keyframe_indexes | No | list<integer> | — | 1-64 |
| Output-frame positions (5s -> 0-120, 10s -> 0-240) for each keyframes[i]. Non-negative, unique, same length as keyframes. | ||||
Content Item Types & Limits
| Type | Max | Format / Size | Description |
|---|---|---|---|
| image | 1 | JPG, PNG, WEBP | Start or end frame image. |
Example Request
{
"prompt": "Low-angle shot of a majestic tiger prowling through a snowy landscape, leaving paw prints on the white blanket.",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/images/input.jpg",
"aspect_ratio": "16:9",
"resolution": "540p",
"duration": "5s"
}
Example Response
{
"request_id": "luma-agent-ray-v3-2-image-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/luma-agent-ray-v3-2-image-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Required | Description |
|---|---|---|
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| Content-Type | Yes | Must be application/json. |
| X-Webhook-URL | No | HTTPS callback URL (see Webhook section). |
Response Handling
Common status codes returned by the submit endpoint.
| Status Code | Meaning |
|---|---|
| 202 Accepted | Request queued. Returns request_id, status: "QUEUED", and polling_url. |
| 400 Bad Request | Invalid request body or unknown model. |
| 401 Unauthorized | Missing or invalid subscription key. |
| 402 Payment Required | Insufficient wallet balance. |
| 403 Forbidden | Subscription not permitted to access this API. |
| 429 Too Many Requests | Rate limit exceeded. |
| 500 Internal Server Error | Unexpected gateway error. |
Error Responses
Queue-system errors are returned at submit time; generation errors are surfaced via the status endpoint / webhook with status: "ERROR".
// 402 — insufficient balance
{ "error": "Insufficient balance", "message": "Wallet balance is too low for this request." }
// 400 — model not found / invalid body
{ "error": "Model not found", "message": "Model 'luma-agent-ray-v3-2-image-to-video' not found or is disabled" }
// generation failure (via status / webhook)
{ "request_id": "luma-agent-ray-v3-2-image-to-video_019dxxxx...", "status": "ERROR", "error": "Failed to download the input file." }
Retrieving Results
Poll the status endpoint with the request_id until status is COMPLETED (or FAILED/ERROR).
curl -X GET "https://gateway.pixazo.ai/v2/requests/status/luma-agent-ray-v3-2-image-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY"
Completed response
{
"request_id": "luma-agent-ray-v3-2-image-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "luma-agent-ray-v3-2-image-to-video",
"error": null,
"output": {
"media_url": ["https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/luma-agent-ray-v3-2-image-to-video_019dxxxx.../output.mp4"],
"media_type": "video/mp4"
},
"created_at": "2026-06-30T09:20:33.812Z",
"completed_at": "2026-06-30T09:22:19.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique identifier for the request. |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR. |
| model_id | string | The model that handled the request (luma-agent-ray-v3-2-image-to-video). |
| error | string | null | Error message when the request fails; null otherwise. |
| output.media_url | string[] | Array of URLs to the generated MP4 video. |
| output.media_type | string | MIME type of the output (video/mp4). |
| created_at | string | ISO-8601 timestamp when the request was created. |
| completed_at | string | ISO-8601 timestamp when the request reached a terminal state. |
| polling_url | string | URL to poll for status (returned on submit). |
Status Values & Flow
| Status | Meaning |
|---|---|
| QUEUED | Request accepted and waiting to be processed. |
| PROCESSING | The video generation job is running. |
| COMPLETED | Done — output.media_url contains the generated video. |
| FAILED / ERROR | Generation failed — see error. |
Typical workflow
QUEUED → PROCESSING → COMPLETED (or FAILED / ERROR). Submit the request, then poll GET /v2/requests/status/{request_id} (or use a webhook) until the status is terminal, then download the video from output.media_url.
Luma Ray 3.2 API Pricing
Luma Ray 3.2 API Documentation
POST https://gateway.pixazo.ai/luma-agent-ray-v3-2-video-to-video/v1/video-to-video
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Video to Video - Luma Ray v3.2
Request Code
POST https://gateway.pixazo.ai/luma-agent-ray-v3-2-video-to-video/v1/video-to-video
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"prompt": "Restyle the footage as a hand-painted watercolor animation with soft pastel colors.",
"video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4",
"resolution": "540p",
"duration": "5s"
}
import requests
url = "https://gateway.pixazo.ai/luma-agent-ray-v3-2-video-to-video/v1/video-to-video"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
payload = {
"prompt": "Restyle the footage as a hand-painted watercolor animation with soft pastel colors.",
"video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4",
"resolution": "540p",
"duration": "5s"
}
resp = requests.post(url, headers=headers, json=payload)
print(resp.json()) # { "request_id": "...", "status": "QUEUED", "polling_url": "..." }
const res = await fetch("https://gateway.pixazo.ai/luma-agent-ray-v3-2-video-to-video/v1/video-to-video", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
prompt: "Restyle the footage as a hand-painted watercolor animation with soft pastel colors.",
video_url: "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4",
resolution: "540p",
duration: "5s"
})
});
const data = await res.json();
console.log(data); // { request_id, status: "QUEUED", polling_url }
curl -X POST "https://gateway.pixazo.ai/luma-agent-ray-v3-2-video-to-video/v1/video-to-video" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"prompt": "Restyle the footage as a hand-painted watercolor animation with soft pastel colors.",
"video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4",
"resolution": "540p",
"duration": "5s"
}'
Output
{
"request_id": "luma-agent-ray-v3-2-video-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/luma-agent-ray-v3-2-video-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Instead of polling, you can receive a callback when the request reaches a terminal state. Pass the webhook headers on the submit request; the gateway will POST the result to your URL.
| Header | Type | Required | Description |
|---|---|---|---|
| X-Webhook-URL | string | No | HTTPS URL to receive the callback. Providing it enables webhook delivery. |
| X-Webhook-Mode | string | No | terminal (default) fires once on COMPLETED/ERROR; sync fires on each status transition. |
Example: enable webhook
curl -X POST "https://gateway.pixazo.ai/luma-agent-ray-v3-2-video-to-video/v1/video-to-video" \
-H "Content-Type: application/json" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
-H "X-Webhook-URL: https://your-server.com/webhooks/pixazo" \
-H "X-Webhook-Mode: terminal" \
--data-raw '{"prompt": "Restyle the footage as a hand-painted watercolor animation with soft pastel colors.", "video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4", "resolution": "540p", "duration": "5s"}'
Callback Payload (success)
{
"request_id": "luma-agent-ray-v3-2-video-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "luma-agent-ray-v3-2-video-to-video",
"output": {
"media_url": ["https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/luma-agent-ray-v3-2-video-to-video_019dxxxx.../output.mp4"],
"media_type": "video/mp4"
}
}
Failure callback shape
{
"request_id": "luma-agent-ray-v3-2-video-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"error": "Failed to download the file. Please check if the URL is accessible."
}
- terminal mode delivers one callback on COMPLETED or ERROR; sync mode delivers on each status transition.
- Deliveries are keyed by
request_id— make your handler idempotent. - Respond with HTTP 200 within a few seconds; non-2xx responses are retried.
- The webhook URL must be HTTPS and publicly reachable.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
prompt | Yesrequired | string | — | — |
| Text prompt describing how to edit the source video. | ||||
video_url | Yesrequired | string | — | — |
| URL of the source video to edit. | ||||
start_image_url | No | string | — | — |
| Optional first-frame image (e.g. a restyled opening frame) to steer the edit's look. Leave unset to derive from the source. | ||||
resolution | No | string | 540p | 540p, 720p, 1080p |
| Output resolution. Higher resolutions cost more. | ||||
duration | No | string | 5s | 5s, 10s |
| Duration of the edited video. | ||||
edit_strength | No | string | — | adhere_1, adhere_2, adhere_3, flex_1, flex_2, flex_3, reimagine_1, reimagine_2, reimagine_3 |
| How closely the edit preserves the source (adhere = closest, reimagine = most divergent). Cannot be combined with auto_controls. | ||||
auto_controls | No | boolean | false | true, false |
| Let the model derive the edit conditioning schedule from the source. Cannot be combined with edit_strength. | ||||
hdr | No | boolean | false | true, false |
| HDR-encoded MP4. Requires HDR account access and 720p/1080p. Billed at 2x the SDR rate. | ||||
exr_export | No | boolean | false | true, false |
| Also export an EXR sidecar. Requires hdr=true. Billed at 3x the SDR rate. | ||||
controls | No | object | — | — |
| Per-signal conditioning controls (pose, depth, normals, trajectory, face) for finer edit control than edit_strength. Cannot be combined with auto_controls. | ||||
keyframes | No | list<string> | — | up to 64 URLs |
| Multi-keyframe guide frames pinned at keyframe_indexes. Mutually exclusive with start_image_url. | ||||
keyframe_indexes | No | list<integer> | — | 1-64 |
| Source-frame positions for each keyframes[i]. Non-negative, unique, same length as keyframes. | ||||
Content Item Types & Limits
| Type | Max | Format / Size | Description |
|---|---|---|---|
| video | 1 | MP4, MOV | Source video to edit. |
| image | 1 | JPG, PNG, WEBP | Start frame image. |
Example Request
{
"prompt": "Restyle the footage as a hand-painted watercolor animation with soft pastel colors.",
"video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4",
"resolution": "540p",
"duration": "5s"
}
Example Response
{
"request_id": "luma-agent-ray-v3-2-video-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/luma-agent-ray-v3-2-video-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Required | Description |
|---|---|---|
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| Content-Type | Yes | Must be application/json. |
| X-Webhook-URL | No | HTTPS callback URL (see Webhook section). |
Response Handling
Common status codes returned by the submit endpoint.
| Status Code | Meaning |
|---|---|
| 202 Accepted | Request queued. Returns request_id, status: "QUEUED", and polling_url. |
| 400 Bad Request | Invalid request body or unknown model. |
| 401 Unauthorized | Missing or invalid subscription key. |
| 402 Payment Required | Insufficient wallet balance. |
| 403 Forbidden | Subscription not permitted to access this API. |
| 429 Too Many Requests | Rate limit exceeded. |
| 500 Internal Server Error | Unexpected gateway error. |
Error Responses
Queue-system errors are returned at submit time; generation errors are surfaced via the status endpoint / webhook with status: "ERROR".
// 402 — insufficient balance
{ "error": "Insufficient balance", "message": "Wallet balance is too low for this request." }
// 400 — model not found / invalid body
{ "error": "Model not found", "message": "Model 'luma-agent-ray-v3-2-video-to-video' not found or is disabled" }
// generation failure (via status / webhook)
{ "request_id": "luma-agent-ray-v3-2-video-to-video_019dxxxx...", "status": "ERROR", "error": "Failed to download the input file." }
Retrieving Results
Poll the status endpoint with the request_id until status is COMPLETED (or FAILED/ERROR).
curl -X GET "https://gateway.pixazo.ai/v2/requests/status/luma-agent-ray-v3-2-video-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY"
Completed response
{
"request_id": "luma-agent-ray-v3-2-video-to-video_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "luma-agent-ray-v3-2-video-to-video",
"error": null,
"output": {
"media_url": ["https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/luma-agent-ray-v3-2-video-to-video_019dxxxx.../output.mp4"],
"media_type": "video/mp4"
},
"created_at": "2026-06-30T09:20:33.812Z",
"completed_at": "2026-06-30T09:22:19.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique identifier for the request. |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR. |
| model_id | string | The model that handled the request (luma-agent-ray-v3-2-video-to-video). |
| error | string | null | Error message when the request fails; null otherwise. |
| output.media_url | string[] | Array of URLs to the generated MP4 video. |
| output.media_type | string | MIME type of the output (video/mp4). |
| created_at | string | ISO-8601 timestamp when the request was created. |
| completed_at | string | ISO-8601 timestamp when the request reached a terminal state. |
| polling_url | string | URL to poll for status (returned on submit). |
Status Values & Flow
| Status | Meaning |
|---|---|
| QUEUED | Request accepted and waiting to be processed. |
| PROCESSING | The video generation job is running. |
| COMPLETED | Done — output.media_url contains the generated video. |
| FAILED / ERROR | Generation failed — see error. |
Typical workflow
QUEUED → PROCESSING → COMPLETED (or FAILED / ERROR). Submit the request, then poll GET /v2/requests/status/{request_id} (or use a webhook) until the status is terminal, then download the video from output.media_url.
Luma Ray 3.2 API Pricing
Luma Ray 3.2 API Documentation
POST https://gateway.pixazo.ai/luma-agent-ray-v3-2-reframe/v1/reframe
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Video to Video (Reframe) - Luma Ray v3.2
Request Code
POST https://gateway.pixazo.ai/luma-agent-ray-v3-2-reframe/v1/reframe
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"prompt": "Extend the scene into cinematic widescreen with matching lighting and background detail.",
"video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4",
"aspect_ratio": "21:9",
"resolution": "540p"
}
import requests
url = "https://gateway.pixazo.ai/luma-agent-ray-v3-2-reframe/v1/reframe"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
payload = {
"prompt": "Extend the scene into cinematic widescreen with matching lighting and background detail.",
"video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4",
"aspect_ratio": "21:9",
"resolution": "540p"
}
resp = requests.post(url, headers=headers, json=payload)
print(resp.json()) # { "request_id": "...", "status": "QUEUED", "polling_url": "..." }
const res = await fetch("https://gateway.pixazo.ai/luma-agent-ray-v3-2-reframe/v1/reframe", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
prompt: "Extend the scene into cinematic widescreen with matching lighting and background detail.",
video_url: "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4",
aspect_ratio: "21:9",
resolution: "540p"
})
});
const data = await res.json();
console.log(data); // { request_id, status: "QUEUED", polling_url }
curl -X POST "https://gateway.pixazo.ai/luma-agent-ray-v3-2-reframe/v1/reframe" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"prompt": "Extend the scene into cinematic widescreen with matching lighting and background detail.",
"video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4",
"aspect_ratio": "21:9",
"resolution": "540p"
}'
Output
{
"request_id": "luma-agent-ray-v3-2-reframe_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/luma-agent-ray-v3-2-reframe_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Instead of polling, you can receive a callback when the request reaches a terminal state. Pass the webhook headers on the submit request; the gateway will POST the result to your URL.
| Header | Type | Required | Description |
|---|---|---|---|
| X-Webhook-URL | string | No | HTTPS URL to receive the callback. Providing it enables webhook delivery. |
| X-Webhook-Mode | string | No | terminal (default) fires once on COMPLETED/ERROR; sync fires on each status transition. |
Example: enable webhook
curl -X POST "https://gateway.pixazo.ai/luma-agent-ray-v3-2-reframe/v1/reframe" \
-H "Content-Type: application/json" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
-H "X-Webhook-URL: https://your-server.com/webhooks/pixazo" \
-H "X-Webhook-Mode: terminal" \
--data-raw '{"prompt": "Extend the scene into cinematic widescreen with matching lighting and background detail.", "video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4", "aspect_ratio": "21:9", "resolution": "540p"}'
Callback Payload (success)
{
"request_id": "luma-agent-ray-v3-2-reframe_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "luma-agent-ray-v3-2-reframe",
"output": {
"media_url": ["https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/luma-agent-ray-v3-2-reframe_019dxxxx.../output.mp4"],
"media_type": "video/mp4"
}
}
Failure callback shape
{
"request_id": "luma-agent-ray-v3-2-reframe_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"error": "Failed to download the file. Please check if the URL is accessible."
}
- terminal mode delivers one callback on COMPLETED or ERROR; sync mode delivers on each status transition.
- Deliveries are keyed by
request_id— make your handler idempotent. - Respond with HTTP 200 within a few seconds; non-2xx responses are retried.
- The webhook URL must be HTTPS and publicly reachable.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
prompt | Yesrequired | string | — | — |
| Text prompt describing the content to paint into the newly exposed canvas when reframing. | ||||
video_url | Yesrequired | string | — | ≤30 seconds |
| URL of the source video to reframe. | ||||
aspect_ratio | Yesrequired | string | — | 3:4, 4:3, 1:1, 9:16, 16:9, 21:9 |
| Target aspect ratio for the reframed video. | ||||
resolution | No | string | 540p | 540p, 720p, 1080p |
| Output resolution. Higher resolutions cost more. | ||||
source_position | No | object | — | — |
| Optional normalized source rectangle controlling where the source video sits in the output canvas. | ||||
Content Item Types & Limits
| Type | Max | Format / Size | Description |
|---|---|---|---|
| video | 1 | MP4, MOV | Video to reframe. |
Example Request
{
"prompt": "Extend the scene into cinematic widescreen with matching lighting and background detail.",
"video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4",
"aspect_ratio": "21:9",
"resolution": "540p"
}
Example Response
{
"request_id": "luma-agent-ray-v3-2-reframe_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/luma-agent-ray-v3-2-reframe_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Required | Description |
|---|---|---|
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| Content-Type | Yes | Must be application/json. |
| X-Webhook-URL | No | HTTPS callback URL (see Webhook section). |
Response Handling
Common status codes returned by the submit endpoint.
| Status Code | Meaning |
|---|---|
| 202 Accepted | Request queued. Returns request_id, status: "QUEUED", and polling_url. |
| 400 Bad Request | Invalid request body or unknown model. |
| 401 Unauthorized | Missing or invalid subscription key. |
| 402 Payment Required | Insufficient wallet balance. |
| 403 Forbidden | Subscription not permitted to access this API. |
| 429 Too Many Requests | Rate limit exceeded. |
| 500 Internal Server Error | Unexpected gateway error. |
Error Responses
Queue-system errors are returned at submit time; generation errors are surfaced via the status endpoint / webhook with status: "ERROR".
// 402 — insufficient balance
{ "error": "Insufficient balance", "message": "Wallet balance is too low for this request." }
// 400 — model not found / invalid body
{ "error": "Model not found", "message": "Model 'luma-agent-ray-v3-2-reframe' not found or is disabled" }
// generation failure (via status / webhook)
{ "request_id": "luma-agent-ray-v3-2-reframe_019dxxxx...", "status": "ERROR", "error": "Failed to download the input file." }
Retrieving Results
Poll the status endpoint with the request_id until status is COMPLETED (or FAILED/ERROR).
curl -X GET "https://gateway.pixazo.ai/v2/requests/status/luma-agent-ray-v3-2-reframe_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY"
Completed response
{
"request_id": "luma-agent-ray-v3-2-reframe_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "luma-agent-ray-v3-2-reframe",
"error": null,
"output": {
"media_url": ["https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/luma-agent-ray-v3-2-reframe_019dxxxx.../output.mp4"],
"media_type": "video/mp4"
},
"created_at": "2026-06-30T09:20:33.812Z",
"completed_at": "2026-06-30T09:22:19.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique identifier for the request. |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR. |
| model_id | string | The model that handled the request (luma-agent-ray-v3-2-reframe). |
| error | string | null | Error message when the request fails; null otherwise. |
| output.media_url | string[] | Array of URLs to the generated MP4 video. |
| output.media_type | string | MIME type of the output (video/mp4). |
| created_at | string | ISO-8601 timestamp when the request was created. |
| completed_at | string | ISO-8601 timestamp when the request reached a terminal state. |
| polling_url | string | URL to poll for status (returned on submit). |
Status Values & Flow
| Status | Meaning |
|---|---|
| QUEUED | Request accepted and waiting to be processed. |
| PROCESSING | The video generation job is running. |
| COMPLETED | Done — output.media_url contains the generated video. |
| FAILED / ERROR | Generation failed — see error. |
Typical workflow
QUEUED → PROCESSING → COMPLETED (or FAILED / ERROR). Submit the request, then poll GET /v2/requests/status/{request_id} (or use a webhook) until the status is terminal, then download the video from output.media_url. Reframe has no duration parameter — the output length matches the source video length, and the request is billed per started source second.
Luma Ray 3.2 API Pricing
Luma Uni 1.1 API Documentation
https://gateway.pixazo.ai/luma-agent-uni-1-text-to-image/v1/luma-agent-uni-1-text-to-image-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 |
Luma Agent Uni-1 Text to Image generate request
Request Code
POST https://gateway.pixazo.ai/luma-agent-uni-1-text-to-image/v1/luma-agent-uni-1-text-to-image-request
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_API_KEY
{
"prompt": "A retro-futurist subway station with chrome arches and warm overhead lighting, cinematic",
"aspect_ratio": "16:9",
"style": "auto",
"output_format": "png",
"enable_web_search": false
}
import requests
url = "https://gateway.pixazo.ai/luma-agent-uni-1-text-to-image/v1/luma-agent-uni-1-text-to-image-request"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_API_KEY"
}
data = {
"prompt": "A retro-futurist subway station with chrome arches and warm overhead lighting, cinematic",
"aspect_ratio": "16:9",
"style": "auto",
"output_format": "png",
"enable_web_search": false
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = "https://gateway.pixazo.ai/luma-agent-uni-1-text-to-image/v1/luma-agent-uni-1-text-to-image-request";
const headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_API_KEY"
};
const data = {
"prompt": "A retro-futurist subway station with chrome arches and warm overhead lighting, cinematic",
"aspect_ratio": "16:9",
"style": "auto",
"output_format": "png",
"enable_web_search": 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/luma-agent-uni-1-text-to-image/v1/luma-agent-uni-1-text-to-image-request" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
--data-raw '{
"prompt": "A retro-futurist subway station with chrome arches and warm overhead lighting, cinematic",
"aspect_ratio": "16:9",
"style": "auto",
"output_format": "png",
"enable_web_search": false
}'
Output
{
"request_id": "luma-agent-uni-1-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/luma-agent-uni-1-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your generate request to receive a POST callback instead of polling.
X-Webhook-URL: https://your-server.com/webhook/callback
Request Parameters - Luma Agent Uni-1 Text to Image generate request
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
prompt | Yesrequired | string | — | non-empty; ≤ 6000 chars |
| Text description for image generation. Must be 1–6000 characters. | ||||
aspect_ratio | No | enum | — | "3:1", "2:1", "16:9", "3:2", "1:1", "2:3", "9:16", "1:2", "1:3" |
| Image aspect ratio. | ||||
style | No | enum | "auto" | "auto", "manga" |
| Visual style of the output. | ||||
output_format | No | enum | — | "png", "jpeg" |
| Output file format. | ||||
enable_web_search | No | boolean | false | — |
| When true, the model may perform web search to enrich context and improve visual accuracy. | ||||
reference_image_urls | No | string[] | — | up to 9 URLs |
| Array of up to 9 HTTPS URLs to reference images that guide generation. Each URL must be publicly accessible. Each one adds a small amount to the price (see the pricing panel). Send guide images only here: image_url, image and image_urls are refused with a 400. | ||||
Content Item Types & Limits
| Type | Max | Format / Size | Description |
|---|---|---|---|
| reference_image_urls | 8 | JPG, PNG, WEBP, GIF, AVIF | Reference image(s), up to 8. |
Example Request
{
"prompt": "A retro-futurist subway station with chrome arches and warm overhead lighting, cinematic",
"aspect_ratio": "16:9",
"style": "auto",
"output_format": "png",
"enable_web_search": false
}
Response
{
"request_id": "luma-agent-uni-1-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/luma-agent-uni-1-text-to-image_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 'luma-agent-uni-1-text-to-image' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "luma-agent-uni-1-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "luma-agent-uni-1-text-to-image",
"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/luma-agent-uni-1-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "luma-agent-uni-1-text-to-image_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "luma-agent-uni-1-text-to-image",
"error": null,
"output": {
"media_url": ["https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/luma-agent-uni-1-text-to-image_019dxxxx/output.png"],
"media_type": "image/png"
},
"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.
Luma Uni 1.1 API Pricing
| Usage | Price (USD) |
|---|---|
| Per image | $0.042 |
| Per reference image | $0.003 |
Luma Uni 1.1 API Documentation
https://gateway.pixazo.ai/luma-agent-uni-1-edit/v1/luma-agent-uni-1-edit-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 |
Luma Agent Uni-1 Edit generate request
Request Code
POST https://gateway.pixazo.ai/luma-agent-uni-1-edit/v1/luma-agent-uni-1-edit-request
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_API_KEY
{
"prompt": "Restyle the scene as a vibrant manga panel with bold ink lines and soft color washes",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/nano-banana/nano-banana-a382a80b-f8df-4de1-a0c1-a5dcfd42dae4-1758783383399.jpg",
"style": "auto",
"output_format": "png"
}
import requests
url = "https://gateway.pixazo.ai/luma-agent-uni-1-edit/v1/luma-agent-uni-1-edit-request"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_API_KEY"
}
data = {
"prompt": "Restyle the scene as a vibrant manga panel with bold ink lines and soft color washes",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/nano-banana/nano-banana-a382a80b-f8df-4de1-a0c1-a5dcfd42dae4-1758783383399.jpg",
"style": "auto",
"output_format": "png"
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = "https://gateway.pixazo.ai/luma-agent-uni-1-edit/v1/luma-agent-uni-1-edit-request";
const headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_API_KEY"
};
const data = {
"prompt": "Restyle the scene as a vibrant manga panel with bold ink lines and soft color washes",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/nano-banana/nano-banana-a382a80b-f8df-4de1-a0c1-a5dcfd42dae4-1758783383399.jpg",
"style": "auto",
"output_format": "png"
};
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/luma-agent-uni-1-edit/v1/luma-agent-uni-1-edit-request" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
--data-raw '{
"prompt": "Restyle the scene as a vibrant manga panel with bold ink lines and soft color washes",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/Image.jpeg",
"style": "auto",
"output_format": "png"
}'
Output
{
"request_id": "luma-agent-uni-1-edit_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/luma-agent-uni-1-edit_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your generate request to receive a POST callback instead of polling.
X-Webhook-URL: https://your-server.com/webhook/callback
Request Parameters - Luma Agent Uni-1 Edit generate request
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
prompt | Yesrequired | string | — | 1–6000 characters |
| Text instruction describing the desired edit (1–6000 characters). | ||||
image_url | Yesrequired | string | — | — |
| URL of the source image to edit. Supported formats: JPG, JPEG, PNG, WebP, GIF, AVIF. | ||||
style | No | enum | auto | auto, manga |
| Visual style to apply. Allowed values: auto, manga. | ||||
output_format | No | enum | — | png, jpeg |
| Output encoding format. Allowed values: png, jpeg. If omitted, defaults to the source image format. | ||||
reference_image_urls | No | string[] | — | up to 8 URLs |
| Up to 8 additional reference image URLs to guide the editing process. Each reference image incurs an additional $0.003 charge. | ||||
Content Item Types & Limits
| Type | Max | Format / Size | Description |
|---|---|---|---|
| image_url | 1 | JPG, PNG, WEBP, GIF, AVIF | Image to edit. |
| reference_image_urls | 8 | JPG, PNG, WEBP, GIF, AVIF | Reference image(s), up to 8. |
Example Request
{
"prompt": "Restyle the scene as a vibrant manga panel with bold ink lines and soft color washes",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/nano-banana/nano-banana-a382a80b-f8df-4de1-a0c1-a5dcfd42dae4-1758783383399.jpg",
"style": "auto",
"output_format": "png"
}
Response
{
"request_id": "luma-agent-uni-1-edit_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/luma-agent-uni-1-edit_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 'luma-agent-uni-1-edit' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "luma-agent-uni-1-edit_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "luma-agent-uni-1-edit",
"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/luma-agent-uni-1-edit_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "luma-agent-uni-1-edit_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "luma-agent-uni-1-edit",
"error": null,
"output": {
"media_url": ["https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/luma-agent-uni-1-edit_019dxxxx/output.png"],
"media_type": "image/png"
},
"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.
Luma Uni 1.1 API Pricing
| Usage | Price (USD) |
|---|---|
| Per edit (base) | $0.042 |
| Per source / reference image | $0.003 |
⚡ 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.