uni-1 API

luma/uni-1
Luma Uni-1 generates and edits images from text prompts with support for up to 9 reference images, styles, and web-search grounding.
Output
$0.052 / gen
Released
Mar 23, 2026

Overview

What is Luma Uni-1 API?

Luma Uni-1 generates and edits images from text prompts with support for up to 9 reference images, styles, and web-search grounding.

Technical Specifications
- Supported inputs: Image, Text
- Output: Image
- Endpoint: /images/generations

Performance Benchmarks
[embed]

Luma Uni-1 API Pricing
- Pricing on request

Where to Use Luma Uni-1

High-volume image generation
Produce product visuals, thumbnails, and marketing assets programmatically at scale.

Creative and concept art
Turn text prompts into illustrations, mockups, and design explorations.

Image editing and variations
Provide a reference image to guide edits, restyles, or variations.

Code Sample
[embed]

Uptime and performance

  • Uptime (7d): 100%

Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.

Use cases

Image generation: Uni-1 is documented as able to create images from a text prompt, spanning many genres and styles.

Image editing: Uni-1 is documented as able to edit an input image using modification instructions, including direct, prompt-based changes.

Reference-guided generation: Uni-1 is documented as able to generate an output image using up to 9 reference images for style, character, or content guidance.

Brand and marketing creative: Uni-1 is documented as suited to brand and campaign assets, including social content, ads, and hero shots for marketing use.

How to use uni-1 API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to luma/uni-1.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/images/generations",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "luma/uni-1",
      "prompt": "A cat holding a sign that says hello"
    },
)
print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/images/generations", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "luma/uni-1",
    "prompt": "A cat holding a sign that says hello"
  }),
});
console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/images/generations \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"luma/uni-1","prompt":"A cat holding a sign that says hello"}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

uni-1 API Pricing

TypePrice
Output
$0.052 / gen

uni-1 vs other models

ModelInputOutputContextBest for
uni-1
This page
$0.052 / gen
Image generation at scale
$0.325 / 1M tokens
$78 / 1M tokens
128K tokens
Image generation at scale
$6.5 / 1M tokens
$39 / 1M tokens
Image generation at scale
Image generation at scale
$0.0195 / MP (variable)
Image generation at scale

Frequently asked questions

uni-1 takes image, text as input and returns image.

uni-1 is priced at $0.052 / gen.

uni-1 is billed per generation — a fixed charge per output rather than by prompt length.

Yes, uni-1 accepts image input as well as a text prompt.

uni-1 was built by Luma AI.

Send a request to https://api.aimlapi.com/v1/images/generations with luma/uni-1 as the model id.

Yes. uni-1 is served through AI/ML API, so the same key and endpoint format used for other models applies.

Uni-1 is an image generation model by Luma AI that creates images from text prompts and can edit existing images.

Yes, Uni-1 supports both generating new images and editing images from text prompts.

Uni-1 accepts up to 9 reference images as input.

Uni-1 includes a web search feature that can ground its image generation and editing.

Start building with uni-1

Get API Key
1000+ models, one API.