Auray API
One key for every model on Auray — images, video, music, 3D and chat — over REST, or through MCP from your agent.
Integration
Connect once. Build anything.
import { createClient } from "@auray/client";const auray = createClient(); // reads AURAY_API_KEYconst job = await auray.queue.submit("auray-ai/krea-2-turbo/text-to-image", { input: { "prompt": "a brass orrery on a walnut desk, morning light from a window to the left", "aspect_ratio": "1:1", "resolution": 1024 },});console.log(job.request_id, job.status);- Krea 2 Turbo
- MiniMax H3
- HappyHorse 1.1
- HappyHorse-1.0
- Qwen-Image
- Qwen-Image-2.0
- Qwen-Image-2.0-Pro
- Qwen-Image-3.0
- Qwen-Image-3.0-Pro
- Qwen-Image-Edit
- Qwen-Image-Edit-2511
- Qwen-Image-Edit-Plus
- Wan2.5-Preview
- Wan2.5-Preview Image
- Wan2.6
- Wan2.6 Flash
- Wan2.6 Image
- Wan2.7
- Wan2.7 Image
- Wan2.7 Image Pro
- Wan3.0
- Wan3.0 Prime
- Z Image
- Z-Image
- Z-Image-Turbo
- ERNIE-Image
- ERNIE-Image-Turbo
- FLUX 3 Upscaler
- FLUX 3 Video
- FLUX Erase
- FLUX Outpainting
- FLUX Virtual Try-On
- FLUX.1 [dev]
- FLUX.1 [schnell]
- FLUX.1 Expand [pro]
- FLUX.1 Fill [dev]
- FLUX.1 Fill [pro]
- FLUX.1 Kontext [dev]
- FLUX.1 Kontext [max]
Model catalog
The models you need, all in one place.
Get started
Three steps from key to content
A key, a request, a result. The quickstart walks through each with a model you can run today.
- 1
Create a key
export AURAY_API_KEY="auray_sk_…" - 2
Submit a request
curl -X POST https://queue.auray.run/auray-ai/krea-2-turbo/text-to-image \ -H "Authorization: Bearer $AURAY_API_KEY" \ -H "content-type: application/json" \ -d '{ "prompt": "a brass orrery on a walnut desk, morning light from a window to the left", "aspect_ratio": "1:1", "resolution": 1024}' - 3
Check the result
curl https://api.auray.ai/v1/jobs/photo_docs-mtpb1vnh \ -H "Authorization: Bearer $AURAY_API_KEY"
Every Auray model, one key away
Start with the quickstart, or connect your agent through MCP.
Still have questions?
How is a request charged?
Each job is charged in credits from your plan, at the price its model's page states. Every refusal says whether anything was charged. Errors and what they charge
Which models can I call?
Every model in the catalogue, each at its own address. The catalogue says which run right now, with no key needed. The API reference
How do I know a job is done?
Poll the job by its id, or register a webhook and we tell you when it settles. Read a job
Can my agent use it?
Yes. The MCP server gives an agent the same models and jobs, under the same key. Connect over MCP