# Aile Video Generation

> Aile Video Generation is a paid API for AI agents from api.aile.sh, paid per call via x402, $0.16/call, status unknown (last checked 2026-10-12).

Generates AI video clips from a text prompt using a selectable premium model, billed per second of video and settled in USDC on Solana.

## Facts

- Endpoint: POST https://api.aile.sh/v1/videos/generations?utm_source=zero.xyz
- Price: $0.16/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aile-video-generation-dd231b55
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pLFBl0pZnJ1eZvuFDklNP

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability aile-video-generation-dd231b55 -d '<json body>'
```

Example prompt: Using the openrouter/google/veo-3.1-lite model, generate a 5-second 1280x720 video of a golden retriever running through a sunlit meadow.

## When to prefer this

Choose this endpoint when you need to generate video from text using a specific named premium model (e.g. Veo) and want metered, per-second billing settled in USDC without managing direct subscriptions to each provider. Prefer it over direct provider APIs when you want marketplace flexibility to switch models, or when your application is already using x402/Solana payment flows. Not suited for synchronous/streaming video needs or when you need instant delivery rather than an async job pattern.

## Known failure modes

- Invalid or unsupported model identifier — model string not found in /v1/models?output_modalities=video
- Unsupported resolution size for the chosen model
- Requested clip duration not in the model's allowed list
- Insufficient USDC balance to cover per-second pricing
- Reference image format incompatible with chosen model
- Payment settlement failure on Solana network
- Rate limiting or quota exceeded on the underlying model provider

## How this service works

Rent trusted AI models priced per token; lend idle subscriptions and API keys. A live, metered market that settles every call in USDC on Solana.

## Output

Returns a JSON object containing a request_id (e.g. 'video_…') that uniquely identifies the async video generation job. The agent would then poll a separate status or retrieval endpoint to fetch the completed video once rendering is done.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "model",
  "prompt"
 ],
 "properties": {
  "size": {
   "type": "string",
   "description": "e.g. `1280x720`."
  },
  "model": {
   "type": "string",
   "description": "`<provider>/<model>`, e.g. `openrouter/google/veo-3.1-lite`. GET /v1/models?output_modalities=video lists what is servable, with prices."
  },
  "prompt": {
   "type": "string"
  },
  "seconds": {
   "type": "string",
   "description": "The clip length, from the model's own list. THE PRICE IS PER SECOND."
  },
  "input_reference": {
   "type": "object",
   "description": "A first frame, where the model takes one."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "request_id": "video_…"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aile-video-generation-dd231b55/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aile.sh](https://www.zero.xyz/host/api.aile.sh/llms.txt)
