Mage API · Image model

Anima API

Purpose-built for anime

Get an API keyTry Anima in the playground
POST https://api.mage.space/v1/anima/generate

At a glance

The Anima API runs Anima v1 through Mage at POST https://api.mage.space/v1/anima/generate. A request at the default settings costs 20 Gems (about $0.02), with no subscription. Anima takes no @handle mentions.

Overview

What the Anima API does

An anime and illustration model with clean linework and flat color. Text-to-image up to 2K, with Danbooru-style tags and prompt weighting.

An anime and illustration model with clean lines and flat color, with Danbooru-style tags and prompt weighting.

It generates from the prompt alone.

Quick start

Call the Anima API

Set MAGE_API_KEY, submit to /anima/generate, and poll status_url until the request completes.

cURL
STATUS_URL=$(curl --request POST 'https://api.mage.space/v1/anima/generate' \
  --header "Authorization: Bearer $MAGE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt": "Editorial portrait in soft daylight, 35mm film look",
  "aspect_ratio": "4:5",
  "model_id": "anima-v1"
}' | jq -r '.status_url')

# Repeat until status is "completed"; result.url is the file
curl "$STATUS_URL" --header "Authorization: Bearer $MAGE_API_KEY"
Python
import os, time, requests

headers = {"Authorization": f"Bearer {os.environ['MAGE_API_KEY']}"}
request = requests.post(
    "https://api.mage.space/v1/anima/generate",
    headers=headers,
    json={
      "prompt": "Editorial portrait in soft daylight, 35mm film look",
      "aspect_ratio": "4:5",
      "model_id": "anima-v1"
    },
).json()

while request["status"] in ("queued", "in_progress"):
    time.sleep(3)
    request = requests.get(request["status_url"], headers=headers).json()

print(request["status"], request["result"] and request["result"]["url"])
JavaScript
const headers = {
  Authorization: `Bearer ${process.env.MAGE_API_KEY}`,
  'Content-Type': 'application/json',
};
let request = await fetch('https://api.mage.space/v1/anima/generate', {
  method: 'POST',
  headers,
  body: JSON.stringify({
    "prompt": "Editorial portrait in soft daylight, 35mm film look",
    "aspect_ratio": "4:5",
    "model_id": "anima-v1"
  }),
}).then((response) => response.json());

while (['queued', 'in_progress'].includes(request.status)) {
  await new Promise((resolve) => setTimeout(resolve, 3000));
  request = await fetch(request.status_url, { headers }).then((r) => r.json());
}

console.log(request.status, request.result?.url);

Models

Anima model_id values

Send model_id to pick a variant. A request without one runs the default.

model_idNameDefault
anima-v1Anima v1Yes

Options

Anima parameters

Allowed values across all variants; a variant may offer fewer. The docs list the options per variant.

FieldValues
aspect_ratio21:9, 16:9, 3:2, 5:4, 1:1, 4:5, 2:3, 9:16, 9:21
resolution1k, 2k

Rules

What the Anima API enforces

More image models

Other image generation APIs on Mage

Image · from 35 Gems

Chroma API

Open-weights, built on Flux

Image · from 40 Gems

Flux 2 API

Long prompts and multi-reference edits

Image · from 9 Gems

GPT Image 2 API

Precise prompts and readable text

Image · from 75 Gems

Grok Image API

Grok Imagine, in three quality tiers

Image · from 37 Gems

Guava API

Photorealism that passes for a photograph

Image · from 20 Gems

HiDream API

Fast and versatile, with negative prompts

FAQ

Frequently asked questions

How much does the Anima API cost?

A Anima request at the default settings (Anima v1) costs 20 Gems, about $0.02. Other resolutions, durations, and variants change the price; the response reports the exact charge. A generation that fails is refunded; one Mage's content policy blocks is not.

What is the Anima API endpoint?

POST https://api.mage.space/v1/anima/generate with an Authorization: Bearer header carrying your Mage API key. The response includes a status_url to poll for the result.

Which Anima models can I call?

anima-v1 (Anima v1). The default is Anima v1.

Does Anima support reference images or characters?

Anima takes no image, video, or audio inputs. Anima takes no @handle mentions.

Can I use Anima from Claude or ChatGPT?

Yes. Connect the Mage MCP server to Claude, ChatGPT, Claude Code, Grok, or Cursor and ask for Anima by name. Your assistant reads its options with get_model and quotes the price before it generates.

How long are Anima results kept?

Results and inputs are kept for 30 days. Download anything you want to keep to your own storage.

Start building with Mage

One account, one Gems balance, every model. Pay only for what you generate.

Get an API keyTry Anima in the playground

Related