# Agent402 Video Generation (Veo 3.1 Lite)

> Agent402 Video Generation (Veo 3.1 Lite) is a paid API for AI agents from agent402.tools, paid per call via x402, $0.2/call, status unknown (last checked 2026-09-16).

Generates a short MP4 video clip from a text prompt using Google Veo 3.1 Lite, billed per call at $0.20 USDC via x402.

## Facts

- Endpoint: POST https://agent402.tools/v1/videos/generations
- Price: $0.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-video-generation-veo-3-1-lite-0b3ee13d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-zDeDHZnzxc89NsmA6x6-

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 agent402-video-generation-veo-3-1-lite-0b3ee13d -d '<json body>'
```

Example prompt: Generate a short video of a golden retriever running through a sunlit autumn forest, in landscape 16:9 format.

## When to prefer this

Choose this endpoint when you need on-demand, pay-per-call AI video generation with no API key or account signup, using only a crypto wallet for identity and payment. It is ideal for AI agents operating autonomously in agentic finance or x402 payment flows. Prefer it over subscription-based video APIs when you need low-commitment per-call billing in USDC, or when integrating into an agent stack already using the Agent402 tool suite.

## Known failure modes

- Prompt exceeds 2,000 character limit — request rejected
- Invalid aspect_ratio value outside '16:9' or '9:16' enum — validation error
- Insufficient USDC balance or failed x402 payment — 402 Payment Required
- Model generation timeout due to long processing times (~40s)
- Content policy violation on prompt — generation refused

## How this service works

Generate a short video clip from a text prompt at a flat price per clip: a four-second 720p clip returned inline as base64 MP4, with the duration and resolution locked so the price never moves. Use it when an agent needs motion rather than a still, and needs to know the cost before it calls.

## Output

Returns a JSON object containing an array with the generated video as a base64-encoded MP4 (b64_json), its media type (video/mp4), resolution (720p), aspect ratio, and duration in seconds (~4s). Also includes the model name (google/veo-3.1-lite), total generation time in seconds, and a Unix timestamp of creation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prompt": {
   "type": "string",
   "description": "Text description of the clip (up to 2,000 chars)"
  },
  "aspect_ratio": {
   "enum": [
    "16:9",
    "9:16"
   ],
   "type": "string",
   "description": "16:9 (default, 1280x720) or 9:16 (720x1280)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "b64_json": "AAAAIGZ0eXBpc29t…",
    "media_type": "video/mp4",
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "duration_seconds": 4
   }
  ],
  "model": "google/veo-3.1-lite",
  "usage": {
   "generation_seconds": 40
  },
  "created": 1750000000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-video-generation-veo-3-1-lite-0b3ee13d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
