> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mynth.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Muse Image

> Use Meta Muse Image with the Mynth SDK or REST API. Capabilities, inputs, auto size, and magic prompt.

```text Model ID theme={"theme":"kanagawa-dragon"}
meta/muse-image
```

See pricing & more on [mynth.io](https://mynth.io/models/meta%2Fmuse-image).

## Capabilities

|                      |                                  |
| -------------------- | -------------------------------- |
| **Modes**            | Text-to-image · Image-to-image   |
| **Inputs**           | Up to 10 images (image-to-image) |
| **Native auto size** | Yes                              |
| **Magic prompt**     | Supported                        |

Muse Image is strong at faithful instruction-following, in-image text, plots, QR codes, and multi-turn edits that change only what you ask.

## Generate

<CodeGroup>
  ```ts Mynth SDK theme={"theme":"kanagawa-dragon"}
  import Mynth from "@mynthio/sdk";

  const mynth = new Mynth();

  const task = await mynth.image.generate({
    prompt: 'Editorial travel poster titled "NIGHT MARKET", precise bilingual typography',
    model: "meta/muse-image",
    size: "landscape",
    count: 1,
  });

  console.log(task.urls);
  ```

  ```bash REST API theme={"theme":"kanagawa-dragon"}
  curl https://api.mynth.io/image/generate \
    -X POST \
    -H "Authorization: Bearer $MYNTH_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "prompt": "Editorial travel poster titled \"NIGHT MARKET\", precise bilingual typography",
      "model": "meta/muse-image",
      "size": "landscape",
      "count": 1
    }'
  ```
</CodeGroup>

## Use inputs

Pass up to **10** input images for image-to-image. URLs or uploaded files both work. See [Upload input images](/guides/upload-input-images).

<CodeGroup>
  ```ts Mynth SDK theme={"theme":"kanagawa-dragon"}
  const task = await mynth.image.generate({
    prompt: "Replace the background with a moonlit forest while preserving the subject",
    model: "meta/muse-image",
    inputs: ["https://example.com/input-image.jpg"],
    size: "auto",
  });
  ```

  ```bash REST API theme={"theme":"kanagawa-dragon"}
  curl https://api.mynth.io/image/generate \
    -X POST \
    -H "Authorization: Bearer $MYNTH_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "prompt": "Replace the background with a moonlit forest while preserving the subject",
      "model": "meta/muse-image",
      "inputs": [
        {
          "type": "image",
          "source": { "type": "url", "url": "https://example.com/input-image.jpg" }
        }
      ],
      "size": "auto"
    }'
  ```
</CodeGroup>

## Auto size

This model supports **native auto size** for both generation and editing. When omitted, Muse chooses output dimensions from the request.

```ts theme={"theme":"kanagawa-dragon"}
size: "auto";
```

See [Control size](/guides/control-size).
