Luma Uni-1 Max
Model Overview
Luma Uni-1 Max is the higher-quality image generation and editing variant of Uni-1 with the same parameters.
API Schema
post
Body
modelstring · enumRequiredPossible values:
promptstring · min: 1 · max: 6000Required
Text description of the image to generate.
typestring · enumOptionalDefault:
Generation kind: "image" (text-to-image / reference) or "image_edit".
imagePossible values: aspect_ratiostring · enumOptionalPossible values:
Output aspect ratio. Omit to let the model choose automatically.
stylestring · enumOptionalDefault:
Rendering style. Defaults to "auto".
autoPossible values: output_formatstring · enumOptionalPossible values:
Output image format (png or jpeg).
web_searchbooleanOptionalDefault:
Ground the generation with web search.
falseimage_urlstring · uriOptional
A reference image URL for image generation, or source image URL for image editing.
image_urlsstring · uri[] · max: 9Optional
Up to 9 reference image URLs (or uploaded files).
Responses
200
Successful response.
application/json
post/v1/images/generations
curl --request POST \
--url 'https://api.aimlapi.com/v1/images/generations' \
--header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \
--header 'Content-Type: application/json' \
--data '{"model": "luma/uni-1-max", "prompt": "Describe what you want the model to generate.", "image_url": "https://example.com/input.jpg"}'200
Successful response.
{
"data": [
{
"url": "https://cdn.aimlapi.com/generations/hedgehog/1749730923700-29fe35d2-4aef-4bc5-a911-6c39884d16a8.png",
"b64_json": null
}
],
"meta": {
"usage": {
"credits_used": 120000,
"usd_spent": 0.06
}
}
}Code Example
Last updated
Was this helpful?