# Luma | Uni-1 | Max | Edit Luma Uni-1 Max Edit delivers high-fidelity image edits from text instructions, preserving the source image structure while using reference images for precise, detailed revisions. ## API Information - **Model Slug:** luma-uni-1-max-edit - **Branded URL:** https://www.eachlabs.ai/luma/luma-uni/luma-uni-1-max-edit - **Provider:** Luma - **Category:** Image to Image - **Output Type:** image - **Status:** active - **Base Cost:** $0.105 per image - **Estimated Processing Time:** 60 seconds - **Interactive Demo:** https://www.eachlabs.ai/ai-models/luma-uni-1-max-edit ## Pricing - **Charge Type:** dynamic - **Estimate:** $0.105 per image - **Pricing Details:** 1 input image (default): $0.105 - **Pricing Details:** + each additional input image: $0.003 ## Input Schema | Parameter | Type | Required | Default | Constraints | Description | |-----------|------|----------|---------|-------------|-------------| | prompt | string | Yes | - | - | Text prompt describing the edit to apply. | | image_url | string | Yes | - | - | URL of the source image to edit. | | style | string | No | auto | auto, manga | Visual style of the edited image. Default: auto. | | output_format | string | No | png | png, jpeg | Encoding format of the edited image. Default: png. | | reference_image_urls | array | No | - | - | Optional reference images used to guide the edit. | ## Example Request ```bash curl -X POST https://api.eachlabs.ai/v1/prediction/ \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "luma-uni-1-max-edit", "input": { "image_url": "https://cdn-us.eachlabs.ai/defaults/1c6a12689fd5492a8d649ba245e2fb1f.png", "prompt": "Using the uploaded fabric pattern from the reference image, design an elegant traditional folk dress and dress a model in it. Faithfully preserve the exact pattern from the reference — the same red, blue and golden floral motifs, the deer figures, the decorative border stripes, the cream linen background and the woven embroidered texture — and apply this pattern realistically onto a flowing traditional long-sleeve dress with natural fabric folds and draping. A graceful female model wears the dress in a clean white studio portrait, standing in a relaxed elegant pose, soft even studio lighting, plain pure white seamless background. Full-body fashion-editorial shot, photorealistic, sharp detail on the embroidered pattern, high-end studio photography. Keep the pattern's colors, motifs and texture authentic and unchanged." } }' ``` ## Output Schema Response returned by `GET /v1/prediction/{id}` when the job completes: ```json { "status": "success", "predictionID": "string", "output": "string (URL of generated image)", "metrics": { "predict_time": "number (seconds)" } } ``` ## Polling ```bash curl https://api.eachlabs.ai/v1/prediction/{PREDICTION_ID} \ -H "Authorization: Bearer YOUR_API_KEY" ``` | Status | Meaning | |--------|---------| | `processing` | Still running — poll again | | `success` | Done — read `output` | | `error` | Failed — read `message` / `details` | ## Webhook (alternative to polling) Pass `"webhook_url": "https://your.host/path"` in the create request. Eachlabs POSTs this payload when the job ends: ```json { "exec_id": "prediction-uuid", "status": "succeeded", "output": "https://...", "error": "" } ``` `status` is `"succeeded"` or `"failed"`. `exec_id` equals the `predictionID` from create. Return 2xx within 30 seconds. ## Errors Error body: `{ "status": "error", "message": "...", "details": "..." }` | Code | Meaning | |------|---------| | `400` | Invalid input | | `401` | Missing / invalid `Authorization` bearer token | | `404` | Unknown model or prediction id | | `429` | Rate limit — 100 creates / min, 10 concurrent per key | | `5xx` | Retry with backoff | ## Overview **Luma | Uni-1 | Max | Edit Overview** **Luma | Uni-1 | Max | Edit** is an image-to-image model designed to revise an existing image from text instructions while keeping the original structure intact. On each::labs, it is positioned for high-fidelity editing workflows where the source composition matters and the goal is precise visual changes rather than a full regeneration. The model name suggests an internal or product-level identifier rather than a widely documented public brand name, so the safest presentation is to use the full model title exactly as provided. For creators, designers, and marketers, the main value of **Luma | Uni-1 | Max | Edit** is controlled transformation: you can adjust details, restyle elements, or refine visual direction while preserving layout, subject placement, and scene continuity. Because the available research results do not include official documentation for this specific endpoint, any implementation details beyond the provided short description should be treated as unverified. ## Usage Notes - API Base URL: `https://api.eachlabs.ai/v1` - Authentication: send `Authorization: Bearer YOUR_API_KEY`. Generate a key from the Eachlabs dashboard at https://www.eachlabs.ai/dashboard/api-keys. - File-typed parameters (`*_url`, `image_url`, `video_url`, `audio_url`, etc.) accept publicly-reachable HTTPS URLs only. Upload your asset first (GCS / S3 / your CDN) and pass the resulting URL. Data-URIs and localhost URLs are rejected. - For structured parameters (arrays / objects) send real JSON values, not stringified payloads. - Monetary values are reported in USD; per-token / per-megapixel rates may be billed in micro-cents internally. - Prefer `webhook_url` over polling for long-running predictions — see the Webhook Callback section.