Text and image to video, paid per call
Post a prompt, settle the 402 in USDC, and the video comes back in the same response. Eight models, 4 to 15 seconds, landscape or vertical.
POST /api/x402/video · from $0.42
Try it
curl -i -X POST https://www.trezalabs.com/api/x402/video \
-H 'Content-Type: application/json' \
-d '{"prompt":"a manta ray gliding over a sunlit coral reef, slow cinematic drift","seconds":5,"aspectRatio":"16:9","model":"minimax-h3"}'Without a payment this answers 402 Payment Required, with the price for exactly this body, the USDC token and the address to pay in the PAYMENT-REQUIRED header. Nothing is charged.
npx awal@latest x402 pay https://www.trezalabs.com/api/x402/video \
-X POST \
-d '{"prompt":"a manta ray gliding over a sunlit coral reef, slow cinematic drift","seconds":5,"aspectRatio":"16:9","model":"minimax-h3"}' \
--max-amount 420000awal reads the 402, pays it from your agentic wallet in USDC on Base, repeats the request and prints the response. --max-amount caps the payment in USDC units of a millionth: 420,000 is $0.42, this body's price. Any other x402 client works the same way.
npx awal@latest x402 details https://www.trezalabs.com/api/x402/videoPrice
Quoted per request in the 402, so read it from there rather than hard-coding it. A render that fails gets a free retry.
- MiniMax Hailuo 3default
minimax-h35s $0.42 · 10s $0.84 · 15s $1.26
- Google Veo 3.1 Lite
veo-3.1-lite4s $0.45 · 6s $0.68 · 8s $0.90
- Alibaba Wan 2.7
wan-2.75s $0.70 · 10s $1.40
- Google Veo 3.1 Fast
veo-3.1-fast4s $0.68 · 6s $1.01 · 8s $1.35
- Kling 3.0
kling-3.05s $0.89 · 10s $1.77 · 15s $2.65
- Kling 3.0 Pro
kling-3.0-pro5s $1.18 · 10s $2.36 · 15s $3.53
- ByteDance Seedance 2.5
seedance-2.55s $1.64 · 10s $3.27 · 15s $4.90
- Google Veo 3.1
veo-3.14s $2.24 · 6s $3.36 · 8s $4.48
Limits
- prompt: up to 2,000 characters.
- Returns an MP4 URL in the JSON response, with a statusUrl you can GET again for free.
- 30 requests per hour per IP address, before any payment is looked at.
- Paid in USDC on Base or Solana. Fields the endpoint does not read are refused before payment, not charged for and ignored.
- 4 to 15 seconds, depending on the model; 16:9 or 9:16.
- image_url: a public https JPEG, PNG or WebP up to 10 MB, cropped to your aspect ratio. Every model but the default takes one.
- The paid POST waits about as long as the model usually takes, then hands you a statusUrl if it is still rendering. Prefer: wait=N sets the wait; async: true answers at once.
A bare GET /api/x402/video answers with the whole menu as JSON.
{
"runId": "2026-09-23T18:04:11.000Z#1a2b3c4d",
"status": "success",
"video": "https://www.trezalabs.com/api/media/generated/x402_video/1a2b3c4d.mp4?s=...&c=...",
"statusUrl": "https://www.trezalabs.com/api/x402/video?runId=...&token=...",
"paidUsd": 0.42,
"model": "minimax-h3",
"seconds": 5,
"aspectRatio": "16:9",
"transaction": "0x..."
}The same payment buys
Speech
POST /api/x402/speech
Text to an ElevenLabs voiceover, Eleven v3 or Multilingual v2, in dozens of voices.
From $0.02
Music
POST /api/x402/music
An original Google Lyria 3 track from a description: a 30-second bed or a full song.
From $0.06
Images
POST /api/x402/image
Nano Banana, GPT Image 2, Seedream 5.0 Pro, FLUX.2 Pro and Recraft, up to 4K.
From $0.02
Shorts
POST /api/x402/short
A topic in, a finished 30-second narrated vertical short out: scenes, voice, music, captions.
From $0.87
Listed in the Coinbase x402 Bazaar, so agents can find it with npx awal@latest x402 bazaar search "text to video". Full reference in the x402 docs and the OpenAPI spec.