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

# Anima

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

```text Model ID theme={"theme":"kanagawa-dragon"}
circlestone-labs/anima
```

See pricing & more on [mynth.io](https://mynth.io/models/circlestone-labs%2Fanima).

## Capabilities

|                      |                                |
| -------------------- | ------------------------------ |
| **Modes**            | Text-to-image · Image-to-image |
| **Inputs**           | Up to 1 image (image-to-image) |
| **Native auto size** | Image-to-image only            |
| **Magic prompt**     | Supported                      |

Anima is CircleStone Labs' 2B anime model. Text-to-image generates tag-driven illustrations at native 1K. Image-to-image restyles a single source image. Danbooru-style tags work best.

## 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:
      "masterpiece, best quality, 1girl, solo, long silver hair, blue eyes, white summer dress, standing in a sunflower field",
    model: "circlestone-labs/anima",
    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": "masterpiece, best quality, 1girl, solo, long silver hair, blue eyes, white summer dress, standing in a sunflower field",
      "model": "circlestone-labs/anima",
      "size": "portrait",
      "count": 1
    }'
  ```
</CodeGroup>

## Use inputs

Pass **1** input image 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: "masterpiece, best quality, restyle as a school uniform in afternoon sunlight",
    model: "circlestone-labs/anima",
    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": "masterpiece, best quality, restyle as a school uniform in afternoon sunlight",
      "model": "circlestone-labs/anima",
      "inputs": [
        {
          "type": "image",
          "source": { "type": "url", "url": "https://example.com/input-image.jpg" }
        }
      ],
      "size": "auto"
    }'
  ```
</CodeGroup>

## Auto size

Image-to-image supports **native auto size**. Left unset, output keeps the source image's ratio.

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

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