llms.txt Content
# Vistella
> Vistella is an AI model gateway that provides unified access to image, video, and audio generation models via one async API.
Base URL: https://vistella.xyz
Docs: https://vistella.xyz/docs
## Authentication
All requests require a Bearer token:
```
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
```
Get your API key at: https://vistella.xyz/en/dashboard/api-keys
## Core Capabilities
All generation models — image, video, audio — are called through one unified async endpoint.
Endpoint: POST https://vistella.xyz/v1/tasks
Request body:
- `model` (string, required): Vistella model name, e.g. `gpt-image-2/text-to-image`, `happyhorse-1-0`.
- `route` (string, optional): model route for models with multiple routes (e.g. `beta`, `ext`). `model: "x"` + `route: "ext"` is the preferred spelling of `model: "x@ext"` (the legacy `@` suffix keeps working). Omitted / `"default"` both mean the default route; an unknown route returns 400 listing the available routes.
- `input` (object, required): model-specific parameters; fields differ per model.
- `callback` (object, optional): `{ "url": "https://...", "when": "final" }` to receive a terminal POST instead of polling.
Optional request header `Idempotency-Key` (up to 255 bytes): retries with the same key under the same account create the task only once; replays return the original taskId with response header `Idempotent-Replay: true`. Same key + different body returns `422 IDEMPOTENCY_KEY_MISMATCH` (not retryable); while the first request is in flight you get `409 IDEMPOTENCY_KEY_PROCESSING` with `Retry-After` (retryable). Keys are kept 24 hours.
Returns `{ "code": 200, "data": { "taskId": "tk-vistella-..." } }`. Poll `GET /v1/tasks/{taskId}` until `status` is `success` or `fail`. A task submitted with `route` echoes the field on the detail response, and `model` there holds the resolved full name (`x@ext`).
Image inputs (reference images, first/last frames,