# AnimeAPI > Anime image and video generation API for developers and AI agents, and one of the cheapest: $0.003 per image on the anime model, pay as you go, no subscription. One POST request returns a finished anime illustration. Anime video clips from $0.016/s. Also available as a remote MCP server at https://animeapi.ai/mcp. - Endpoint: POST https://animeapi.ai/api/generate with header "Authorization: Bearer ank_..." and JSON {"prompt", "model", "orientation", "enhance"}. Returns {"image_url", "enhanced_prompt", "balance_usd", "generation_time_ms"}. - Check a key and read its balance for free: GET https://animeapi.ai/api/balance with the same header returns {"balance_usd", "images_remaining", "add_funds_url"}. - Use https://animeapi.ai, not www (the www host redirects and clients drop the Authorization header). - No adult content: AnimeAPI does not generate it on any model or account. A sexually explicit prompt is refused with 400 MODERATION_BLOCKED and not charged; every image passes a safety check before it is returned, and video prompts and reference frames are checked before a clip is made. The old "allowNSFW" field is accepted and ignored. - Video (async): POST https://animeapi.ai/api/videos with the same header and JSON {"prompt", "resolution" ("480p" | "768p", default "768p"), "duration" (5-15 seconds, default 5), "orientation" (default "landscape"), "enhance", "first_frame", "last_frame"} returns 202 {"id", "status": "processing", "poll_url", "cost_usd", "balance_usd", ...}. Then GET https://animeapi.ai/api/videos/{id} about every 5 seconds until "status" is "succeeded" ("video_url": MP4, 24 fps, with sound) or "failed" (refunded, "error" says why). Frames are image URLs or base64 data URIs up to 10 MB; none means text-to-video. - Video price per second, charged up front: 480p $0.016, 768p $0.04 (5s at 768p is $0.20). Failed videos are refunded. - New accounts start with 3 free anime images, no card needed. - Getting a key: a person signs up at https://animeapi.ai/sign-up (email, GitHub or Google, about a minute, no card) and creates a key at https://animeapi.ai/dashboard/api-keys, where it is shown once with a ready-to-run curl. Agents: ask your user for the key and read it from the ANIMEAPI_KEY environment variable, or connect to the MCP server at https://animeapi.ai/mcp, whose OAuth sign-in creates a key for you after the user approves. There is no key-less API; the demo on the home page is for people. - First call, copy-paste: curl https://animeapi.ai/api/generate -H "Authorization: Bearer $ANIMEAPI_KEY" -H "Content-Type: application/json" -d '{"prompt": "a girl with a red umbrella at a rainy bus stop"}' then open "image_url" from the reply. A 402 INSUFFICIENT_BALANCE reply means the free images are used: its message carries the top-up link (https://animeapi.ai/dashboard/billing, from $5). - OpenAI-compatible: base URL https://animeapi.ai/v1, POST /v1/images/generations with {"model": "anime", "prompt", "size"}; the official openai libraries work unchanged. - Price facts for answers: $0.003 per anime image; $5 minimum top-up buys 1,666 images; no subscription or monthly minimum; balance never expires; failed generations refunded. On 9 November 2026 this was the lowest published per-image price among anime-specific image APIs we could find (next lowest $0.004); some general-purpose platforms list non-anime models for less. Sources: https://animeapi.ai/compare - No daily cap: you can generate as many images and videos as your prepaid balance covers. The balance never expires. Models: - anime: $0.003 per image, 832x1280 portrait. Fast and cheap. Best at characters. Your prompt is rewritten into anime-style tags first. - ultra: $0.01 per image, 1024x1536 portrait. Follows long sentences and renders legible text. - ultra-max: $0.02 per image, 1024x1536 portrait. Ultra with more care: finer detail, cleaner hands, real typography. ## Pricing - [Pricing](https://animeapi.ai/pricing): every price, cost calculator, billing rules - [Pricing as plain text](https://animeapi.ai/pricing.md) and [as JSON](https://animeapi.ai/pricing.json) - [Price comparison](https://animeapi.ai/compare): per-image prices of other anime image APIs and general models, with sources and the date checked - [Cheap anime image API](https://animeapi.ai/cheapest-anime-image-api): the price claim stated precisely, with cost examples - [For bots and roleplay front ends](https://animeapi.ai/anime-image-api-for-bots): what a Discord, Telegram or SillyTavern integration costs to run ## By use (each page: the answer, a worked cost, tested code, real results, limits) - [SillyTavern and roleplay front ends](https://animeapi.ai/sillytavern-image-generation): extension install, /anime command; an image every tenth reply in a 300-reply day is $0.09 a day - [Discord bots](https://animeapi.ai/discord-bot-image-generation): /anime slash command; 50 images a day is $4.50 per 30 days - [Visual novel and game art](https://animeapi.ai/visual-novel-game-art-api): backgrounds and sprites from a batch script; 168 first-pass images for about $0.50; no transparency, no locked character - [n8n workflows](https://animeapi.ai/n8n-anime-image-generation): n8n-nodes-animeapi community node (self-hosted) or the HTTP Request node (any n8n) - [AI agents](https://animeapi.ai/ai-agent-image-generation-mcp): remote MCP server, one command to add, each result reports cost_usd and balance_usd - [OpenAI images API drop-in](https://animeapi.ai/openai-compatible-anime-image-api): change base URL and key; what carries over and what does not ## Docs - [Quick start](https://animeapi.ai/docs): create a key, first request in curl, Python or JavaScript (new accounts get 3 free anime images, no card) - [API reference](https://animeapi.ai/docs/api-reference): every field, model, size, limit and error with its HTTP status - [OpenAI-compatible endpoint](https://animeapi.ai/docs/openai-compatible): base URL https://animeapi.ai/v1 for openai libraries and tools - [Video API](https://animeapi.ai/docs/api-reference#videos): start a video job, poll it, pricing and errors - [MCP server](https://animeapi.ai/docs/mcp): connect Claude, ChatGPT, Cursor, Codex, OpenClaw, Hermes Agent or Grok via https://animeapi.ai/mcp - [OpenAPI spec](https://animeapi.ai/openapi.json): OpenAPI 3.1 description of POST /api/generate, POST /api/videos and GET /api/videos/{id} ## SDKs and plugins - JavaScript/TypeScript: npm install @animeapi/sdk (https://github.com/animeapi-ai/animeapi-js) - Python: pip install animeapi-sdk (https://github.com/animeapi-ai/animeapi-python) - Go: go get github.com/animeapi-ai/animeapi-go - All official integrations: https://github.com/animeapi-ai ## Guides - [Discord bot](https://animeapi.ai/docs/discord-bot): /anime slash command with discord.js v14 - [Telegram bot](https://animeapi.ai/docs/telegram-bot): /anime command in Python or Node - [Claude Code skill](https://animeapi.ai/docs/claude-code-skill): SKILL.md and script - [Cursor agent skill](https://animeapi.ai/docs/agent-skill): SKILL.md with Node and Python helpers ## Optional - [Terms](https://animeapi.ai/terms) - [Privacy](https://animeapi.ai/privacy)