Skip to main content
Model ID
luma/uni-1-max
See pricing & more on mynth.io.

Capabilities

ModesText-to-image · Image-to-image
Inputssource + reference roles
Native auto sizeNo
Magic promptSupported
Text-to-image accepts up to 9 reference images (no source). Image-to-image requires exactly 1 source and up to 9 reference images (max 9 total).

Generate

import Mynth from "@mynthio/sdk";

const mynth = new Mynth();

const task = await mynth.image.generate({
  prompt: "Architectural photograph of a brutalist library at golden hour",
  model: "luma/uni-1-max",
  size: "landscape",
  count: 1,
});

console.log(task.urls);
curl https://api.mynth.io/image/generate \
  -X POST \
  -H "Authorization: Bearer $MYNTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Architectural photograph of a brutalist library at golden hour",
    "model": "luma/uni-1-max",
    "size": "landscape",
    "count": 1
  }'

Use inputs

Roles matter for this model:
  • Text-to-image: up to 9 reference images (style / composition guidance)
  • Image-to-image: exactly 1 source plus up to 9 reference images (max 9 total)
See Upload input images.

Image-to-image (source + reference)

const task = await mynth.image.generate({
  prompt: "Product hero shot on a marble pedestal, studio lighting",
  model: "luma/uni-1-max",
  inputs: [
    {
      type: "image",
      as: "source",
      source: { type: "url", url: "https://example.com/product.png" },
    },
    {
      type: "image",
      as: "reference",
      source: { type: "url", url: "https://example.com/style-ref.png" },
    },
  ],
  size: "landscape",
});
curl https://api.mynth.io/image/generate \
  -X POST \
  -H "Authorization: Bearer $MYNTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Product hero shot on a marble pedestal, studio lighting",
    "model": "luma/uni-1-max",
    "inputs": [
      {
        "type": "image",
        "as": "source",
        "source": { "type": "url", "url": "https://example.com/product.png" }
      },
      {
        "type": "image",
        "as": "reference",
        "source": { "type": "url", "url": "https://example.com/style-ref.png" }
      }
    ],
    "size": "landscape"
  }'

Text-to-image with references

const task = await mynth.image.generate({
  prompt: "Architectural photograph of a brutalist library at golden hour",
  model: "luma/uni-1-max",
  inputs: [
    {
      type: "image",
      as: "reference",
      source: { type: "url", url: "https://example.com/moodboard.png" },
    },
  ],
  size: "landscape",
});
curl https://api.mynth.io/image/generate \
  -X POST \
  -H "Authorization: Bearer $MYNTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Architectural photograph of a brutalist library at golden hour",
    "model": "luma/uni-1-max",
    "inputs": [
      {
        "type": "image",
        "as": "reference",
        "source": { "type": "url", "url": "https://example.com/moodboard.png" }
      }
    ],
    "size": "landscape"
  }'