# Luma UNI-1

ID: luma/uni-1
Type: image generation
Vendor: Luma
Released: 2026-05-05 (1.1)
Description: Luma UNI-1 is a unified understanding-and-generation image model for text-to-image, natural-language edits, and multi-reference direction.

## Modes and inputs
- Text → Image (`txt->img`)
  - `as: "reference"`: up to 9
- Image → Image (`img->img`)
  - `as: "source"`: exactly 1 (required)
  - `as: "reference"`: up to 9
  - At most 9 inputs in total

Input roles, set in `inputs[].as` (omit it, or send `auto`, to let Mynth assign one):
- `source`: The image to edit
- `reference`: An image to take style or content from

## Output
- Aspect ratios: 1:1, 2:1, 16:9, 3:2, 2:3, 9:16, 1:2. Other ratios snap to the closest one. Without `size` (or with `"auto"`), Mynth picks a ratio for the prompt.
- 4K: no
- Negative prompt: not supported (dropped, no error)

## Pricing (USD)
- Per image: $0.042
- Per input image: $0.0030, charged once for each image it goes into
- Only successful results are charged.

## Usage
Set the request's `model` field to `luma/uni-1`. Always pass it explicitly.

TypeScript SDK, Text → Image:

```ts
import Mynth from "@mynthio/sdk";

const mynth = new Mynth();

const task = await mynth.image.generate({
  model: "luma/uni-1",
  prompt: "A lighthouse at dusk, 35mm film",
  size: "16:9",
});

console.log(task.urls[0]);
```

REST (cURL), Text → Image:

```bash
curl https://api.mynth.io/image/generate \
  -H "Authorization: Bearer $MYNTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "luma/uni-1",
    "prompt": "A lighthouse at dusk, 35mm film",
    "size": "16:9"
  }'
```

CLI, Text → Image:

```bash
npx @mynthio/cli image generate \
  -m luma/uni-1 \
  -p "A lighthouse at dusk, 35mm film" \
  -s 16:9
```

TypeScript SDK, Image → Image:

```ts
import Mynth from "@mynthio/sdk";

const mynth = new Mynth();

const task = await mynth.image.generate({
  model: "luma/uni-1",
  prompt: "The same lighthouse, now in heavy fog",
  inputs: [
    {
      type: "image",
      as: "source",
      source: { type: "url", url: "https://cdn.example.com/lighthouse.png" },
    },
  ],
});

console.log(task.urls[0]);
```

REST (cURL), Image → Image:

```bash
curl https://api.mynth.io/image/generate \
  -H "Authorization: Bearer $MYNTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "luma/uni-1",
    "prompt": "The same lighthouse, now in heavy fog",
    "inputs": [
      {
        "type": "image",
        "as": "source",
        "source": { "type": "url", "url": "https://cdn.example.com/lighthouse.png" }
      }
    ]
  }'
```

CLI, Image → Image:

```bash
npx @mynthio/cli image generate \
  -m luma/uni-1 \
  -p "The same lighthouse, now in heavy fog" \
  -i source:https://cdn.example.com/lighthouse.png
```

## Links
- Model page: https://mynth.io/models/luma%2Funi-1
- Playground: https://mynth.io/playground?_m=luma%2Funi-1
- Vendor page: https://lumalabs.ai/uni-1
- API docs (image generation request): https://mynth.io/docs/api-reference/endpoints/image/generate.md
- Quickstart: https://mynth.io/docs/getting-started.md
- SDK (JS/TS): https://mynth.io/docs/sdks/typescript.md
- This page as JSON: https://mynth.io/models/luma%2Funi-1.json

## More from Luma
- Luma UNI-1 Max [luma/uni-1-max]: https://mynth.io/models/luma%2Funi-1-max.md

## Similar models
- Gemini 3.1 Flash-Lite Image [google/gemini-3.1-flash-lite-image]: https://mynth.io/models/google%2Fgemini-3.1-flash-lite-image.md
- Krea 2 Medium [krea/krea-2-medium]: https://mynth.io/models/krea%2Fkrea-2-medium.md
- ImagineArt 2.0 [imagineart/imagineart-2.0]: https://mynth.io/models/imagineart%2Fimagineart-2.0.md
- MAI Image 2.6 [microsoft/mai-image-2.6]: https://mynth.io/models/microsoft%2Fmai-image-2.6.md
- Grok Imagine Image Quality [xai/grok-imagine-image-quality]: https://mynth.io/models/xai%2Fgrok-imagine-image-quality.md
