Anime AI Image & Video Generation API

The anime AI image generation API by PixAI

Generate anime, manga, cartoon and game-style AI art and short videos from your app with one REST API. Call PixAI's own models, led by Tsubaki.3, or thousands of community models and LoRAs.

Looking for the PixAI app to create art? Go to pixai.art

Everything you need to generate anime AI art

The same AI models and tools that power pixai.art, as a REST API for your apps and workflows.

Images and video

Text-to-image with LoRAs, consistent characters from 1–3 reference images on Tsubaki.3, inpainting and outpainting, and image-to-video.

RESTful API

Simple REST endpoints to create tasks, check status, and retrieve generated media.

Webhooks

Get notified when tasks complete with real-time webhook callbacks.

API Key Auth

Secure authentication with API keys. Manage keys from your PixAI dashboard.

PixAI anime models

Models built and maintained by PixAI, the same ones that power pixai.art.

  • Tsubaki.3 sample image
    Tsubaki.3

    PixAI's new flagship model: native 2K output, accurate prompt following and readable text in images. The only model that takes reference images and color palettes.

  • Tsubaki.2 sample image
    Tsubaki.2

    Strong prompt following and multi-character scenes.

  • Haruka v2 sample image
    Haruka v2

    PixAI's SDXL model: stable quality, refined details and accurate hands.

  • Hoshino v2 sample image
    Hoshino v2

    PixAI's SDXL model in a style that is especially popular in Japan.

Community models uploaded by their creators to the PixAI Model Market also work through the API, including NoobAI-XL, Illustrious XL, Pony Diffusion V6 XL merges and Animagine XL, along with their LoRAs.

Made with Tsubaki.3

Sample images generated with Tsubaki.3, PixAI's flagship model. You get the same model through the API.

  • Sparkler Fireworks Cel TriptychSparkler Fireworks Cel Triptych
  • Expired Film Rainy DayExpired Film Rainy Day
  • Cheek Pinch Chibi StickerCheek Pinch Chibi Sticker
  • Nighttime Carousel Look-BackNighttime Carousel Look-Back
  • Inverted Duo Red Thread SketchInverted Duo Red Thread Sketch
  • Double Exposure Silhouette OverlayDouble Exposure Silhouette Overlay
  • Retro Camcorder Garden OverlayRetro Camcorder Garden Overlay
  • Photographer & Subject Blossom DuoPhotographer & Subject Blossom Duo

Your first request

Create a task with a prompt and a model version ID, then poll the task or wait for a webhook.

curl https://api.pixai.art/v2/image/create \
  -H "Authorization: Bearer $PIXAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "modelVersionId": "2024383379556065549",
    "prompt": "An anime girl with long green hair in a white sundress, standing in a sunflower field at golden hour and holding a straw hat, with summer clouds and a seaside town behind her, cinematic lighting, detailed background",
    "aspectRatio": "3:5"
  }'
# => returns a task ID; poll GET https://api.pixai.art/v2/task/{id}

Start generating in minutes

Three simple steps to create your first AI artwork.

1

Get your API key

PixAI members create a key instantly in their profile settings. For business volume, email the API team.

2

Create a task

Send a POST request with your prompt and model choice to the task endpoint.

3

Retrieve your art

Poll the task status or use webhooks, then download the generated image.

Frequently asked questions

Which models can I use with the PixAI API?
Any public model or LoRA on the PixAI Model Market, including PixAI's Tsubaki.3, Tsubaki.2 and Haruka models and community SDXL anime checkpoints such as NoobAI-XL, Illustrious XL, Pony Diffusion V6 XL merges and Animagine XL. Pass the model's version ID as modelVersionId.
How do I get an API key?
PixAI members can create a key right away in their profile settings on pixai.art. For high-volume or business use, email api@withpixai.art and the team will set up access.
How is API usage billed?
Each generation spends credits from the PixAI account that owns the API key.
Are there rate limits?
Each account can have up to 10 tasks waiting at once; running tasks do not count, and the cap can be raised. Poll a task no more than once every 1.5 seconds, or use webhooks.
Can I keep a character consistent across images?
Yes, with Tsubaki.3. Pass 1–3 reference images as contextImages to keep a character, outfit or pose across generations.
Are images generated through the API public?
No. API generations are private and do not appear in your account's public generation history.

Start building with the PixAI API

Get an API key