UNI-1
UNI-1 is a unified image model in Luma's UNI-1 family for both image creation and precision image editing. It combines text prompting, source-image modification, multi-reference guidance, seed-based reproducibility, and reasoning-informed visual generation in one system, with strong control over composition, identity, style, and visual plausibility.
API Options
Platform-level options for task execution and delivery.
-
taskType
string required value: imageInference -
Identifier for the type of task being performed
-
taskUUID
string required UUID v4 -
UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.
-
outputType
string default: URL -
Image output type.
Allowed values 3 values
-
outputFormat
string default: JPG -
Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.
- `JPG`: Best for photorealistic images with smaller file sizes (no transparency).
- `PNG`: Lossless compression, supports high quality and transparency (alpha channel).
- `WEBP`: Modern format providing superior compression and transparency support.
**Transparency**: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., `PNG`, `WEBP`, `TIFF`). `JPG` does not support transparency.Allowed values 3 values
-
outputQuality
integer min: 20 max: 99 default: 95 -
Compression quality of the output. Higher values preserve quality but increase file size.
-
webhookURL
string URI -
Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.
Learn more 1 resource
- Webhooks PLATFORM
- Webhooks
-
deliveryMethod
string default: sync -
Determines how the API delivers task results.
Allowed values 2 values
- Returns complete results directly in the API response.
- Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.
Learn more 1 resource
- Task Polling PLATFORM
-
uploadEndpoint
string URI -
Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.
Common use cases:
- Cloud storage: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- CDN integration: Upload to content delivery networks for immediate distribution.
// S3 presigned URL for secure upload https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600 // Google Cloud Storage presigned URL https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789 // Custom storage endpoint https://storage.example.com/uploads/generated-image.jpgThe content data will be sent as the request body to the specified URL when generation is complete.
-
safety
object -
Content safety checking configuration for image generation.
Properties 2 properties
-
safety»checkContentcheckContent
boolean default: false -
Enable or disable content safety checking. When enabled, defaults to
fastmode.
-
safety»modemode
string default: none -
Safety checking mode for image generation.
Allowed values 2 values
- Disables checking.
- Performs a single check.
-
-
ttl
integer min: 60 -
Time-to-live (TTL) in seconds for generated content. Only applies when
outputTypeisURL.
-
includeCost
boolean default: false -
Include task cost in the response.
-
numberResults
integer min: 1 max: 20 default: 1 -
Number of results to generate. Each result uses a different seed, producing variations of the same parameters.
Inputs
Input resources for the task (images, audio, etc). These must be nested inside the inputs object.
inputs object.-
inputs»seedImageseedImage
string -
Image used as a starting point for the generation (UUID, URL, Data URI, or Base64).
Learn more 3 resources
-
inputs»referenceImagesreferenceImages
array of strings min items: 1max items: 9 -
List of reference images (UUID, URL, Data URI, or Base64).
Generation Parameters
Core parameters for controlling the generated content.
-
model
string required value: luma:uni@1 -
Identifier of the model to use for generation.
Learn more 3 resources
-
positivePrompt
string required min: 1 max: 6000 -
Text prompt describing elements to include in the generated output.
Learn more 2 resources
-
Width of the generated media in pixels.
Learn more 2 resources
-
Height of the generated media in pixels.
Learn more 2 resources
Settings
Technical parameters to fine-tune the inference process. These must be nested inside the settings object.
settings object.-
settings»searchsearch
boolean default: false -
When enabled, the model searches the web for visual references before generating. This improves accuracy for prompts that reference real-world subjects, landmarks, or products.
-
settings»stylestyle
string default: auto -
Applies a style preset to the generation.
Allowed values 2 values
- Model selects the best style for the prompt.
- Manga/anime aesthetic with ink outlines and screentone shading.
Deserted Arcade Relic Chamber
{
"taskType": "imageInference",
"taskUUID": "29988756-e5c5-4ff0-af62-ed6b5d197365",
"model": "luma:uni@1",
"positivePrompt": "Transform the seed image into a grand forgotten relic chamber inside a derelict arcade, keeping the same wide interior layout, aisle perspective, and machine-row spacing from the seed image. Reimagine the arcade cabinets as monumental shrine-like relic housings with carved stone, aged brass trim, mosaic panels, ceremonial motifs, and artifact compartments inspired by the reference image. Preserve believable architectural structure while blending decayed entertainment venue details with ancient treasury ornament. Dust in the air, shafts of warm light from broken ceiling panels, scattered tokens and fractured tiles on the floor, faint glowing indicator lights hidden among the relic surfaces, cinematic depth, highly detailed textures, realistic materials, immersive atmosphere, dramatic contrast, visually plausible scene.",
"width": 2464,
"height": 1696,
"settings": {
"style": "auto"
},
"inputs": {
"seedImage": "https://assets.runware.ai/assets/inputs/f6fa2240-f675-4a49-bbe2-b4af131f627a.jpg",
"referenceImages": [
"https://assets.runware.ai/assets/inputs/65ac7da7-0b8f-40c7-b1a3-2ea1e5fd787b.jpg"
]
}
}{
"taskType": "imageInference",
"taskUUID": "29988756-e5c5-4ff0-af62-ed6b5d197365",
"imageUUID": "4c33c723-f8a7-45a8-8168-aaba85f86959",
"imageURL": "https://im.runware.ai/image/os/a08dlim3/ws/4/ii/4c33c723-f8a7-45a8-8168-aaba85f86959.jpg",
"seed": 2093462,
"cost": 0.0464
}Moonlit Bazaar Rooftop Garden
{
"taskType": "imageInference",
"taskUUID": "e2bff59d-9255-4f60-ae9c-68c74d8daa29",
"referenceImages": [
"https://assets.runware.ai/assets/inputs/cd8c0af8-7f97-405d-830e-5dfce217188b.jpg",
"https://assets.runware.ai/assets/inputs/636838cb-a9e5-4286-b5e4-b105e74a6801.jpg"
],
"model": "luma:uni@1",
"positivePrompt": "Create a cinematic night scene that fuses a lively old-world market district with an intimate rooftop garden retreat. View from a slightly elevated angle across tiled rooftops toward a hidden terrace above the bazaar. Include citrus trees in painted ceramic pots, layered woven rugs, low seating, brass lanterns, patterned masonry, suspended fabric canopies below, drifting cooking smoke, and clusters of tiny market lights stretching into the distance. A small group of musicians sits near the terrace edge while shoppers move through the lanes beneath. Emphasize believable architecture, rich textures, moonlit atmosphere, warm-and-cool light contrast, deep spatial layering, and highly detailed environmental storytelling. Realistic, elegant, immersive, visually plausible.",
"width": 2912,
"height": 1440,
"settings": {
"style": "auto",
"search": false
}
}{
"taskType": "imageInference",
"taskUUID": "e2bff59d-9255-4f60-ae9c-68c74d8daa29",
"imageUUID": "3584a22c-3f7a-4bdf-ae9f-0128e2860e9f",
"imageURL": "https://im.runware.ai/image/os/a01d21/ws/4/ii/3584a22c-3f7a-4bdf-ae9f-0128e2860e9f.jpg",
"seed": 1213119862,
"cost": 0.0464
}Glasshouse Clockwork Tea Library
{
"taskType": "imageInference",
"taskUUID": "8f67abb9-b185-41fa-9f00-e2c06f0bd4fc",
"model": "luma:uni@1",
"positivePrompt": "An expansive Victorian-inspired glasshouse transformed into a tea library filled with towering bookshelves, hanging brass gears, suspended teapots, narrow rolling ladders, and delicate steam-powered reading lamps. In the center, a circular tasting table displays porcelain cups, handwritten labels, dried herbs, and tiny mechanical birds sorting bookmarks. Sunlight pours through patterned glass panels overhead, casting prismatic reflections across polished wood floors and copper piping. Dense indoor citrus trees and climbing vines weave around the architecture, blending botanical elegance with precise clockwork engineering. Rich environmental storytelling, highly detailed textures, cinematic depth, balanced composition, natural color harmony, crisp focus, imaginative yet plausible design.",
"width": 2464,
"height": 1696,
"settings": {
"style": "auto"
}
}{
"taskType": "imageInference",
"taskUUID": "8f67abb9-b185-41fa-9f00-e2c06f0bd4fc",
"imageUUID": "16f0a674-cfb3-4d71-9095-9cefac3a204f",
"imageURL": "https://im.runware.ai/image/os/a07dlim3/ws/4/ii/16f0a674-cfb3-4d71-9095-9cefac3a204f.jpg",
"seed": 356708615,
"cost": 0.0404
}