Overview
Start building with the PixAI API in four steps. Get an API key, make your first request, learn the limits, then follow complete examples.
The PixAI API generates anime-style images and videos with the models behind pixai.art. Every generation runs as a task: you create it, poll it until it finishes, and download the result.
Steps
- How can I use PixAI API?: get an API key.
- Your First API Call: create an image, wait for it, and download it, with cURL and a Python script.
- Limits: how often to poll and how many tasks can wait at once.
- Examples: complete scripts in cURL, Python and JavaScript for common tasks:
- Image to Video: animate an image into a short clip.
- Consistent Characters: keep a character the same across images.
- Inpainting and Outpainting: redraw part of an image or extend it.
- Find and Use a Model or LoRA: search the Model Market and apply a LoRA.
When you need every parameter, see the API v2 reference. You manage your keys under My API Keys on pixai.art.
Features
What the PixAI API can do: text-to-image with anime models and LoRAs, reference images, inpainting and outpainting, image-to-video and reference video, plus how tasks, credits and limits work.
How can I use PixAI API?
How to get a PixAI API key: individuals join a PixAI membership, while businesses apply by email.