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.
| Type | Price |
|---|---|
| Output | |
| Model | Input | Output | Context | Best for |
|---|---|---|---|---|
uni-1 This page | Image generation at scale | |||
| Image generation at scale | ||||
| Image generation at scale | ||||
| Image generation at scale | ||||
| Image generation at scale |
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.