Documentation

Get started with AnimeAPI in minutes

Quick Start

1

Sign up and get an API key

Create an account and generate your API key from the dashboard.

Get API Key
2

Make your first request

Send a POST request to our API with your prompt.

curl -X POST https://api.animeapi.com/api/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "anime girl with blue hair, magical forest"}'
3

Get your image

Receive a JSON response with the image URL.

{
  "image_url": "https://cdn.runware.ai/...",
  "balance_usd": 9.99,
  "generation_time_ms": 4200
}

Next Steps

API Reference
Detailed documentation of all endpoints, parameters, and responses
Discord Bot Guide
Build a Discord bot that generates anime images
Telegram Bot Guide
Build a Telegram bot that generates anime images
Claude Code Skill
Create a skill for Claude Code to generate anime images
Cursor Agent Skill
Create a skill for Cursor AI to generate anime images
Add Funds
Top up your account to start generating images

SDK Examples

Python

import requests

API_KEY = "your_api_key"

response = requests.post(
    "https://api.animeapi.com/api/generate",
    headers={
        "Authorization": f"Bearer {API_KEY}",
        "Content-Type": "application/json"
    },
    json={
        "prompt": "anime warrior in battle armor",
        "orientation": "portrait",  # portrait, square, or landscape
        "allowNSFW": False
    }
)

data = response.json()
print(f"Image URL: {data['image_url']}")

JavaScript / Node.js

const API_KEY = "your_api_key";

const response = await fetch("https://api.animeapi.com/api/generate", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${API_KEY}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    prompt: "anime warrior in battle armor",
    orientation: "portrait", // portrait, square, or landscape
    allowNSFW: false
  })
});

const { image_url } = await response.json();
console.log("Image URL:", image_url);