# x402donghang Video Generation

> x402donghang Video Generation is a paid API for AI agents from x402donghang.duckdns.org, paid per call via x402, $0.99/call, status unknown (last checked 2026-09-15).

Generates a video from a text prompt, returning a task ID and status URL for async retrieval, paid via USDC over x402.

## Facts

- Endpoint: POST https://x402donghang.duckdns.org/x402/v1/video-gen
- Price: $0.99/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402donghang-video-generation-77df2619
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BeUuXFF_S4_wHIbFJIzhf

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 x402donghang-video-generation-77df2619 -d '<json body>'
```

Example prompt: Generate a short video of a golden retriever running through a sunlit meadow with wildflowers blowing in the breeze.

## When to prefer this

Choose this endpoint when you need async AI video generation with no account signup, paying per call via USDC over x402. It is best suited for agents that can poll a status URL for completion and need a low-friction, crypto-native video creation pipeline. Avoid if you need synchronous video delivery, a guaranteed SLA, or payment via fiat.

## Known failure modes

- Prompt too short (minLength 1) or too long (maxLength 2000) — returns validation error
- Payment not received or USDC transaction rejected — returns 402 Payment Required
- Task ID not found when polling status URL — task may have expired or ID is invalid
- Service unavailable on duckdns.org dynamic DNS — transient connectivity failure
- Generation fails on backend — status URL may return a failed or error state rather than a video URL

## How this service works

Fresh crypto narrative research with market context and verifiable source URLs. Free BTC sample; custom radar $0.02/call via x402 USDC.

## Output

Returns a JSON object with ok: true, a tier label (e.g. 'standard'), the price ($0.99), a status field ('pending'), the product name ('video-gen'), a unique task_id UUID, and a status_url that the agent can poll to check generation progress and eventually retrieve the finished video.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prompt": {
   "type": "string",
   "maxLength": 2000,
   "minLength": 1,
   "description": "Text description of the video to generate"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tier": "standard",
  "price": "$0.99",
  "status": "pending",
  "product": "video-gen",
  "task_id": "uuid",
  "status_url": "https://x402donghang.duckdns.org/x402/v1/video-gen/status?task_id=uuid"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402donghang-video-generation-77df2619/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402donghang.duckdns.org](https://www.zero.xyz/host/x402donghang.duckdns.org/llms.txt)
