> ## 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.

# Reve

> Use the latest Reve image model with the Mynth SDK or REST API for generation and single-image editing.

```text Model ID theme={"theme":"kanagawa-dragon"}
reve/reve
```

Currently runs **Reve 2.1** under the hood. The `reve/reve` ID always tracks the latest Reve version available through Mynth. Pricing may be adjusted if a newer version is more expensive to serve.

See pricing & more on [mynth.io](https://mynth.io/models/reve%2Freve).

## Capabilities

|                      |                                |
| -------------------- | ------------------------------ |
| **Modes**            | Text-to-image · Image-to-image |
| **Inputs**           | Exactly 1 image for editing    |
| **Native auto size** | Yes                            |
| **Magic prompt**     | Supported                      |

Reve produces native high-resolution output and is especially strong at layout-driven images, in-image text, posters, packaging, infographics, and precise natural-language edits.

## 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 poster for a design conference titled "FORM / FUNCTION"',
    model: "reve/reve",
    size: "portrait",
    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 poster for a design conference titled \"FORM / FUNCTION\"",
      "model": "reve/reve",
      "size": "portrait",
      "count": 1
    }'
  ```
</CodeGroup>

## Edit an image

Pass exactly **one** input image for image-to-image editing. 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: "reve/reve",
    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": "reve/reve",
      "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.

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

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