Developer platform
Quickstart
One HTTP API for image, video and audio generation across every model in the catalog. Pay with your team's credits, get back CDN URLs. The same capabilities are exposed to AI agents through an MCP server.
Base URL#
All endpoints live under https://<your-host>/api/v1. Requests and responses are JSON, except uploads which takemultipart/form-data. Timestamps are ISO 8601 in UTC.
Your first generation#
- Create an API key in Team settings → API keys. It is shown once and starts with
aio_. - Pick a model slug from Models.
- Create the generation, then poll it (or pass a
webhook_url).
export AIO_KEY="aio_..."
curl https://<your-host>/api/v1/generations \
-H "Authorization: Bearer $AIO_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-2-pro",
"prompt": "a lighthouse on a basalt cliff at dusk, 35mm film",
"params": { "aspect_ratio": "16:9" }
}'The response is a generation object with status processing. Poll it until it reaches a terminal status:
curl https://<your-host>/api/v1/generations/GENERATION_ID \
-H "Authorization: Bearer $AIO_KEY"{
"id": "0b6f3c1e-…",
"object": "generation",
"status": "succeeded",
"kind": "image",
"model": "flux-2-pro",
"outputs": [
{ "url": "https://cdn…/allinone/generations/….png", "type": "image", "width": 1344, "height": 768 }
],
"credits": 5,
"error": null,
"created_at": "2026-11-19T10:02:11.402Z",
"completed_at": "2026-11-19T10:02:17.950Z"
}Slugs in examples
Model slugs such asflux-2-pro are illustrative. The live list is on the Models page and at GET /api/v1/models.Endpoints#
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/me | Team, role and credit balance for the key |
| GET | /api/v1/models | Search/page models: ?kind, family, task, q, limit, cursor |
| GET | /api/v1/models/{slug} | Full spec: params, pricing explained, example body |
| GET | /api/v1/templates | Search/page templates: ?kind, category, q, sort, limit, cursor |
| GET | /api/v1/templates/{slug} | Inputs explained, fixed cost, example body |
| POST | /api/v1/estimate | Credit cost for a model + params, charges nothing |
| POST | /api/v1/generations | Start a generation (supports Idempotency-Key) |
| GET | /api/v1/generations | List the team's generations, paginated |
| GET | /api/v1/generations/{id} | Fetch one generation (refreshes in-flight jobs) |
| DELETE | /api/v1/generations/{id} | Remove a generation from the library |
| POST | /api/v1/uploads | Upload a file, or import one from an https URL |
Credits#
Every generation costs credits from the team that owns the key. The cost depends on the model and params (resolution, duration, number of outputs) and is fixed at creation time. Call POST /api/v1/estimate to price a request without running it. Credits are refunded automatically when a generation fails or its result is blocked; prompts rejected by moderation are never charged.