Pixazo API→Models→Image to Video API→Luma Dream Machine
Pixazo API→Models→Image to Video API→Luma Dream Machine

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.

Get API Key
Luma AI API

Models Version

WELCOME BONUS

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

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

Claim Your Cashback →

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-image

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour 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.

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

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/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 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / range
promptYesrequiredstring—Text
What the image should show: subject, setting, light and style.
reference_image_urlsNoarray 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_ratioNostring—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_searchNobooleanfalsetrue, false
Lets the model look things up on the web before it draws, for real landmarks, products or events.
styleNostring"auto"auto, manga
manga draws in a manga style; auto lets the prompt decide.
output_formatNostring"png"png, jpeg
The file type of the image.
enable_safety_checkerNobooleantruetrue
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_urls is a list, and switches are true or false, not strings. Omit a field instead of sending null.
  • 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.

ParameterWhy
contentNot supported: send the text as 'prompt'.
formatNot a parameter here: use 'output_format' ('png' or 'jpeg').
image_size, width, height, size, resolutionNot supported: set the shape with 'aspect_ratio'.
image_urlNot supported: this API makes a new image. To change an existing image, use Luma Uni 1.1 Max Image Editing.
image_urls, images, imageNot supported: send guide images as 'reference_image_urls'.
input, parametersNot supported: send the parameters at the top level of the JSON body.
modelNot supported: this endpoint always runs Luma Uni 1.1 Max Text to Image.
negative_promptNot supported: describe what you want in 'prompt'.
num_images, number_of_images, batch_size, n, count, num_outputsNot supported: Luma Uni 1.1 Max returns one image per request. Send one request per image.
reference_imagesNot a parameter here: use 'reference_image_urls' (a list of image URLs).
seed, num_inference_steps, guidance_scaleNot supported on Luma Uni 1.1 Max.
streamNot supported: the job runs in the queue; poll it for the result.
textNot a parameter here: send the text as 'prompt'.
web_searchNot a parameter here: use 'enable_web_search' (true or false).
webhook_url, callback_urlNot supported in the body: send the X-Webhook-URL header instead.

Output

  • One image per request, as a PNG (output_format png, the default) or a JPEG (jpeg).
  • aspect_ratio sets the shape; the model picks the pixel size.

Measured on the images made at launch:

aspect_ratioSizeFormatReference images
not set2672 × 1504PNG0
16:92672 × 1504PNG0
1:12048 × 2048PNG2
9:161504 × 2672JPEG0

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

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

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Invalid 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.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance for the hold this request needs.
429Too many requests.
500Internal 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.

ConditionHow it surfaces
Missing or invalid subscription keysynchronous 401
Balance too low for the holdsynchronous 402
Missing or empty prompt, or a field sent with the wrong JSON typesynchronous 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_KEY

cURL 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

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED or ERROR.
model_idstringThe model that handled the request — luma-agent-uni-1-max-text-to-image for this endpoint.
output.media_urlarray of stringsURL of the image (one file per request). Download it and keep your own copy.
output.media_typestringThe image type.
created_atstringRequest creation timestamp.
completed_atstringCompletion timestamp.
errorstringError message when status is ERROR.
polling_urlstringStatus URL for this request (submit response only).

Status Values & Flow

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

Typical workflow

  1. Send the request to POST https://gateway.pixazo.ai/luma-agent-uni-1-max-text-to-image/v1/text-to-image.
  2. Save the request_id from the 202 response.
  3. Poll GET /v2/requests/status/{request_id} every 10 seconds or so, or use a Webhook instead.
  4. When status is COMPLETED, download the image from output.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

UsagePrice (USD)
Per image$0.1071
Per reference image$0.00315
Image to Image (Image Editing)

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/edit

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour 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.

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

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/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 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / range
promptYesrequiredstring—Text
What the image should show: the change to make to the image in image_url.
image_urlYesrequiredstring—One publicly reachable http(s) URL of a JPEG, PNG or WebP image
The image to edit.
reference_image_urlsNoarray 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.
styleNostring"auto"auto, manga
manga draws in a manga style; auto lets the prompt decide.
output_formatNostring"png"png, jpeg
The file type of the image.
enable_safety_checkerNobooleantruetrue
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_urls is a list, and switches are true or false, not strings. Omit a field instead of sending null.
  • 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.

ParameterWhy
contentNot supported: send the text as 'prompt'.
formatNot a parameter here: use 'output_format' ('png' or 'jpeg').
imageNot supported: send the image to edit as 'image_url'.
image_size, width, height, size, resolutionNot supported: the edit endpoint has no size setting.
image_urls, imagesNot supported: send the image to edit as 'image_url' and any extra images as 'reference_image_urls'.
input, parametersNot supported: send the parameters at the top level of the JSON body.
modelNot supported: this endpoint always runs Luma Uni 1.1 Max Image Editing.
negative_promptNot supported: describe what you want in 'prompt'.
num_images, number_of_images, batch_size, n, count, num_outputsNot supported: Luma Uni 1.1 Max returns one image per request. Send one request per image.
reference_imagesNot a parameter here: use 'reference_image_urls' (a list of image URLs).
seed, num_inference_steps, guidance_scaleNot supported on Luma Uni 1.1 Max.
streamNot supported: the job runs in the queue; poll it for the result.
textNot a parameter here: send the text as 'prompt'.
web_search, aspect_ratio, enable_web_searchNot supported on the edit endpoint.
webhook_url, callback_urlNot supported in the body: send the X-Webhook-URL header instead.

Output

  • One image per request, as a PNG (output_format png, 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:

ShapeSizeFormatReference images
from the image2784 × 1504PNG0
from the image2784 × 1504PNG1

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

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

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Invalid 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.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance for the hold this request needs.
429Too many requests.
500Internal 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.

ConditionHow it surfaces
Missing or invalid subscription keysynchronous 401
Balance too low for the holdsynchronous 402
Missing or empty prompt or image_url, or a field sent with the wrong JSON typesynchronous 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_KEY

cURL 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

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED or ERROR.
model_idstringThe model that handled the request — luma-agent-uni-1-max-edit for this endpoint.
output.media_urlarray of stringsURL of the image (one file per request). Download it and keep your own copy.
output.media_typestringThe image type.
created_atstringRequest creation timestamp.
completed_atstringCompletion timestamp.
errorstringError message when status is ERROR.
polling_urlstringStatus URL for this request (submit response only).

Status Values & Flow

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

Typical workflow

  1. Send the request to POST https://gateway.pixazo.ai/luma-agent-uni-1-max-edit/v1/edit.
  2. Save the request_id from the 202 response.
  3. Poll GET /v2/requests/status/{request_id} every 10 seconds or so, or use a Webhook instead.
  4. When status is COMPLETED, download the image from output.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

UsagePrice (USD)
Per edit (base)$0.1071
Per source / reference image$0.00315
2. Luma Ray 3.2

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.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour 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.

HeaderTypeRequiredDescription
X-Webhook-URLstringNoHTTPS URL to receive the callback. Providing it enables webhook delivery.
X-Webhook-ModestringNoterminal (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

ParameterRequiredTypeDefaultAllowed values / range
promptYesrequiredstring——
Text prompt describing the video to generate.
aspect_ratioNostring16:93:4, 4:3, 1:1, 9:16, 16:9, 21:9
Aspect ratio of the generated video.
resolutionNostring540p540p, 720p, 1080p
Output resolution. Higher resolutions cost more.
durationNostring5s5s, 10s
Duration of the generated video.
loopNobooleanfalsetrue, false
Generate a seamless loop. Only valid for 5s SDR generations without an end frame.
hdrNobooleanfalsetrue, 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_exportNobooleanfalsetrue, 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

HeaderRequiredDescription
Ocp-Apim-Subscription-KeyYesYour API subscription key.
Content-TypeYesMust be application/json.
X-Webhook-URLNoHTTPS callback URL (see Webhook section).

Response Handling

Common status codes returned by the submit endpoint.

Status CodeMeaning
202 AcceptedRequest queued. Returns request_id, status: "QUEUED", and polling_url.
400 Bad RequestInvalid request body or unknown model.
401 UnauthorizedMissing or invalid subscription key.
402 Payment RequiredInsufficient wallet balance.
403 ForbiddenSubscription not permitted to access this API.
429 Too Many RequestsRate limit exceeded.
500 Internal Server ErrorUnexpected 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

FieldTypeDescription
request_idstringUnique identifier for the request.
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR.
model_idstringThe model that handled the request (luma-agent-ray-v3-2-text-to-video).
errorstring | nullError message when the request fails; null otherwise.
output.media_urlstring[]Array of URLs to the generated MP4 video.
output.media_typestringMIME type of the output (video/mp4).
created_atstringISO-8601 timestamp when the request was created.
completed_atstringISO-8601 timestamp when the request reached a terminal state.
polling_urlstringURL to poll for status (returned on submit).

Status Values & Flow

StatusMeaning
QUEUEDRequest accepted and waiting to be processed.
PROCESSINGThe video generation job is running.
COMPLETEDDone — output.media_url contains the generated video.
FAILED / ERRORGeneration 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

Your request will cost $0.10 per second of output video (by resolution).
5-second 540p clip ≈ $0.50
Image to Video

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.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour 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.

HeaderTypeRequiredDescription
X-Webhook-URLstringNoHTTPS URL to receive the callback. Providing it enables webhook delivery.
X-Webhook-ModestringNoterminal (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

ParameterRequiredTypeDefaultAllowed values / range
promptYesrequiredstring——
Text prompt describing the motion/scene to generate.
image_urlNostring——
URL of the first-frame image. Provide image_url (optionally with end_image_url) OR keyframes — mutually exclusive.
end_image_urlNostring——
Optional last-frame image; the model interpolates between image_url and end_image_url. Cannot be combined with keyframes.
aspect_ratioNostring16:93:4, 4:3, 1:1, 9:16, 16:9, 21:9
Aspect ratio of the generated video.
resolutionNostring540p540p, 720p, 1080p
Output resolution. Higher resolutions cost more.
durationNostring5s5s, 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.
loopNobooleanfalsetrue, false
Generate a seamless loop. SDR only, no end frame or keyframes.
hdrNobooleanfalsetrue, false
HDR-encoded MP4. Requires HDR account access and 720p/1080p; not supported with loop. Billed at 2x the SDR rate.
exr_exportNobooleanfalsetrue, false
Also export an EXR sidecar. Requires hdr=true. Billed at 3x the SDR rate.
keyframesNolist<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_indexesNolist<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

TypeMaxFormat / SizeDescription
image1JPG, PNG, WEBPStart 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

HeaderRequiredDescription
Ocp-Apim-Subscription-KeyYesYour API subscription key.
Content-TypeYesMust be application/json.
X-Webhook-URLNoHTTPS callback URL (see Webhook section).

Response Handling

Common status codes returned by the submit endpoint.

Status CodeMeaning
202 AcceptedRequest queued. Returns request_id, status: "QUEUED", and polling_url.
400 Bad RequestInvalid request body or unknown model.
401 UnauthorizedMissing or invalid subscription key.
402 Payment RequiredInsufficient wallet balance.
403 ForbiddenSubscription not permitted to access this API.
429 Too Many RequestsRate limit exceeded.
500 Internal Server ErrorUnexpected 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

FieldTypeDescription
request_idstringUnique identifier for the request.
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR.
model_idstringThe model that handled the request (luma-agent-ray-v3-2-image-to-video).
errorstring | nullError message when the request fails; null otherwise.
output.media_urlstring[]Array of URLs to the generated MP4 video.
output.media_typestringMIME type of the output (video/mp4).
created_atstringISO-8601 timestamp when the request was created.
completed_atstringISO-8601 timestamp when the request reached a terminal state.
polling_urlstringURL to poll for status (returned on submit).

Status Values & Flow

StatusMeaning
QUEUEDRequest accepted and waiting to be processed.
PROCESSINGThe video generation job is running.
COMPLETEDDone — output.media_url contains the generated video.
FAILED / ERRORGeneration 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

Your request will cost $0.03 per second of output video (by resolution).
5-second 540p clip ≈ $0.15
Video to Video (Video Editing)

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.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour 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.

HeaderTypeRequiredDescription
X-Webhook-URLstringNoHTTPS URL to receive the callback. Providing it enables webhook delivery.
X-Webhook-ModestringNoterminal (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

ParameterRequiredTypeDefaultAllowed values / range
promptYesrequiredstring——
Text prompt describing how to edit the source video.
video_urlYesrequiredstring——
URL of the source video to edit.
start_image_urlNostring——
Optional first-frame image (e.g. a restyled opening frame) to steer the edit's look. Leave unset to derive from the source.
resolutionNostring540p540p, 720p, 1080p
Output resolution. Higher resolutions cost more.
durationNostring5s5s, 10s
Duration of the edited video.
edit_strengthNostring—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_controlsNobooleanfalsetrue, false
Let the model derive the edit conditioning schedule from the source. Cannot be combined with edit_strength.
hdrNobooleanfalsetrue, false
HDR-encoded MP4. Requires HDR account access and 720p/1080p. Billed at 2x the SDR rate.
exr_exportNobooleanfalsetrue, false
Also export an EXR sidecar. Requires hdr=true. Billed at 3x the SDR rate.
controlsNoobject——
Per-signal conditioning controls (pose, depth, normals, trajectory, face) for finer edit control than edit_strength. Cannot be combined with auto_controls.
keyframesNolist<string>—up to 64 URLs
Multi-keyframe guide frames pinned at keyframe_indexes. Mutually exclusive with start_image_url.
keyframe_indexesNolist<integer>—1-64
Source-frame positions for each keyframes[i]. Non-negative, unique, same length as keyframes.

Content Item Types & Limits

TypeMaxFormat / SizeDescription
video1MP4, MOVSource video to edit.
image1JPG, PNG, WEBPStart 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

HeaderRequiredDescription
Ocp-Apim-Subscription-KeyYesYour API subscription key.
Content-TypeYesMust be application/json.
X-Webhook-URLNoHTTPS callback URL (see Webhook section).

Response Handling

Common status codes returned by the submit endpoint.

Status CodeMeaning
202 AcceptedRequest queued. Returns request_id, status: "QUEUED", and polling_url.
400 Bad RequestInvalid request body or unknown model.
401 UnauthorizedMissing or invalid subscription key.
402 Payment RequiredInsufficient wallet balance.
403 ForbiddenSubscription not permitted to access this API.
429 Too Many RequestsRate limit exceeded.
500 Internal Server ErrorUnexpected 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

FieldTypeDescription
request_idstringUnique identifier for the request.
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR.
model_idstringThe model that handled the request (luma-agent-ray-v3-2-video-to-video).
errorstring | nullError message when the request fails; null otherwise.
output.media_urlstring[]Array of URLs to the generated MP4 video.
output.media_typestringMIME type of the output (video/mp4).
created_atstringISO-8601 timestamp when the request was created.
completed_atstringISO-8601 timestamp when the request reached a terminal state.
polling_urlstringURL to poll for status (returned on submit).

Status Values & Flow

StatusMeaning
QUEUEDRequest accepted and waiting to be processed.
PROCESSINGThe video generation job is running.
COMPLETEDDone — output.media_url contains the generated video.
FAILED / ERRORGeneration 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

Your request will cost $0.144 per second of output video (by resolution).
5-second 540p clip ≈ $0.72
Video to Video (Reframe)

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.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour 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.

HeaderTypeRequiredDescription
X-Webhook-URLstringNoHTTPS URL to receive the callback. Providing it enables webhook delivery.
X-Webhook-ModestringNoterminal (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

ParameterRequiredTypeDefaultAllowed values / range
promptYesrequiredstring——
Text prompt describing the content to paint into the newly exposed canvas when reframing.
video_urlYesrequiredstring—≤30 seconds
URL of the source video to reframe.
aspect_ratioYesrequiredstring—3:4, 4:3, 1:1, 9:16, 16:9, 21:9
Target aspect ratio for the reframed video.
resolutionNostring540p540p, 720p, 1080p
Output resolution. Higher resolutions cost more.
source_positionNoobject——
Optional normalized source rectangle controlling where the source video sits in the output canvas.

Content Item Types & Limits

TypeMaxFormat / SizeDescription
video1MP4, MOVVideo 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

HeaderRequiredDescription
Ocp-Apim-Subscription-KeyYesYour API subscription key.
Content-TypeYesMust be application/json.
X-Webhook-URLNoHTTPS callback URL (see Webhook section).

Response Handling

Common status codes returned by the submit endpoint.

Status CodeMeaning
202 AcceptedRequest queued. Returns request_id, status: "QUEUED", and polling_url.
400 Bad RequestInvalid request body or unknown model.
401 UnauthorizedMissing or invalid subscription key.
402 Payment RequiredInsufficient wallet balance.
403 ForbiddenSubscription not permitted to access this API.
429 Too Many RequestsRate limit exceeded.
500 Internal Server ErrorUnexpected 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

FieldTypeDescription
request_idstringUnique identifier for the request.
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR.
model_idstringThe model that handled the request (luma-agent-ray-v3-2-reframe).
errorstring | nullError message when the request fails; null otherwise.
output.media_urlstring[]Array of URLs to the generated MP4 video.
output.media_typestringMIME type of the output (video/mp4).
created_atstringISO-8601 timestamp when the request was created.
completed_atstringISO-8601 timestamp when the request reached a terminal state.
polling_urlstringURL to poll for status (returned on submit).

Status Values & Flow

StatusMeaning
QUEUEDRequest accepted and waiting to be processed.
PROCESSINGThe video generation job is running.
COMPLETEDDone — output.media_url contains the generated video.
FAILED / ERRORGeneration 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

Your request will cost $0.06 per second of source video (by resolution).
5-second 540p source ≈ $0.30
3. Luma Uni 1.1

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.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour 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

ParameterRequiredTypeDefaultAllowed values / range
promptYesrequiredstring—non-empty; ≤ 6000 chars
Text description for image generation. Must be 1–6000 characters.
aspect_ratioNoenum—"3:1", "2:1", "16:9", "3:2", "1:1", "2:3", "9:16", "1:2", "1:3"
Image aspect ratio.
styleNoenum"auto""auto", "manga"
Visual style of the output.
output_formatNoenum—"png", "jpeg"
Output file format.
enable_web_searchNobooleanfalse—
When true, the model may perform web search to enrich context and improve visual accuracy.
reference_image_urlsNostring[]—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

TypeMaxFormat / SizeDescription
reference_image_urls8JPG, PNG, WEBP, GIF, AVIFReference 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-Typeapplication/json
Cache-Controlno-cache
Ocp-Apim-Subscription-KeyYOUR_API_KEY

Response Handling

Common status codes.

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

Error Responses

Queue system errors and model validation errors.

Queue System Errors

// 402 — Insufficient balance
{
  "error": "Insufficient Balance",
  "message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
  "error": "Model not found",
  "message": "Model '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

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

Status Values

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

Status Flow

QUEUED → PROCESSING → COMPLETED
                    → FAILED
                    → ERROR

Typical Workflow

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

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

Luma Uni 1.1 API Pricing

UsagePrice (USD)
Per image$0.042
Per reference image$0.003
Image to Image (Image Editing)

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.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour 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

ParameterRequiredTypeDefaultAllowed values / range
promptYesrequiredstring—1–6000 characters
Text instruction describing the desired edit (1–6000 characters).
image_urlYesrequiredstring——
URL of the source image to edit. Supported formats: JPG, JPEG, PNG, WebP, GIF, AVIF.
styleNoenumautoauto, manga
Visual style to apply. Allowed values: auto, manga.
output_formatNoenum—png, jpeg
Output encoding format. Allowed values: png, jpeg. If omitted, defaults to the source image format.
reference_image_urlsNostring[]—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

TypeMaxFormat / SizeDescription
image_url1JPG, PNG, WEBP, GIF, AVIFImage to edit.
reference_image_urls8JPG, PNG, WEBP, GIF, AVIFReference 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-Typeapplication/json
Cache-Controlno-cache
Ocp-Apim-Subscription-KeyYOUR_API_KEY

Response Handling

Common status codes.

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

Error Responses

Queue system errors and model validation errors.

Queue System Errors

// 402 — Insufficient balance
{
  "error": "Insufficient Balance",
  "message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
  "error": "Model not found",
  "message": "Model '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

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

Status Values

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

Status Flow

QUEUED → PROCESSING → COMPLETED
                    → FAILED
                    → ERROR

Typical Workflow

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

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

Luma Uni 1.1 API Pricing

UsagePrice (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).

Show data for the last
Generations
900last 30d
~30 per day
Success rate
88.9%
of completed generations
Generation time
2.1minavg
p95 112.3s
Requests
Nov 1max 700Nov 30
Luma Uni 1.1 MaxAvg 23/day
Luma Ray 3.2Avg 7/day
Generation Time
Nov 1max 2.3minNov 30
Luma Uni 1.1 MaxAvg 2.3min
Luma Ray 3.2Avg 105.0s
Error Rate
Nov 1max 14.3%Nov 30
Luma Uni 1.1 MaxAvg 14.3%
Luma Ray 3.2Avg 0.0%

〰 Uptime

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

Avg. Success Rate (30d)
88.89%
across all generations of this model family
Uptime
Nov 1max 100%Nov 30
Luma Uni 1.1 MaxAvg 85.71%
Luma Ray 3.2Avg 100.00%