Mage API · Image model
Anima API
Purpose-built for anime
POST https://api.mage.space/v1/anima/generateAt 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.
- ImageOutput
- 1Variant
- 20Gems per image, default
- $0.02About, in USD
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"TypeScript
// npm install @mage-space/sdk
import Mage from '@mage-space/sdk';
const mage = new Mage(); // reads MAGE_API_KEY
const request = await mage.run('anima', {
prompt: 'Editorial portrait in soft daylight, 35mm film look',
aspect_ratio: '4:5',
model_id: 'anima-v1',
});
console.log(request.result.url);Python
# pip install mage-space
from mage_space import Mage
mage = Mage() # reads MAGE_API_KEY
request = mage.run("anima", {
"prompt": "Editorial portrait in soft daylight, 35mm film look",
"aspect_ratio": "4:5",
"model_id": "anima-v1",
})
print(request["result"]["url"])Models
Anima model_id values
Send model_id to pick a variant. A request without one runs the default.
| model_id | Name | Default |
|---|---|---|
| anima-v1 | Anima v1 | Yes |
Options
Anima parameters
Allowed values across all variants; a variant may offer fewer. The docs list the options per variant.
| Field | Values |
|---|---|
| aspect_ratio | 21:9, 16:9, 3:2, 5:4, 1:1, 4:5, 2:3, 9:16, 9:21 |
| resolution | 1k, 2k |
Rules
What the Anima API enforces
- Escape literal parentheses in the prompt as `\(` and `\)`; unescaped parentheses are read as prompt weighting.
More image models
Other image generation APIs on Mage
Chroma API
Open-weights, built on Flux
Flux 2 API
Long prompts and multi-reference edits
GPT Image 2 API
Precise prompts and readable text
Grok Image API
Grok Imagine, in two tiers
Guava API
Photorealism that passes for a photograph
HiDream API
Fast and versatile, with negative prompts
FAQ
Frequently asked questions
How much does the Anima API cost?
What is the Anima API endpoint?
Which Anima models can I call?
Does Anima support reference images or characters?
Can I use Anima from Claude or ChatGPT?
How long are Anima results kept?
Start building with Mage
One account, one Gems balance, every model. Pay only for what you generate.