A prompt in.
A video out.
No account. No API key. No signup. An agent pays for the render and gets the file back.
a manta ray gliding over a sunlit coral reef, slow cinematic drift
Not a mockup. A wallet bought this 5-second clip through the endpoint below. 0x6d9154…1abe29 ↗
$ curl -X POST https://www.trezalabs.com/api/x402/video \
-d '{"prompt":"a manta ray gliding over a sunlit coral reef, slow cinematic drift"}'Any x402 client sends the payment for you. Without one, you get a 402 back describing exactly what to pay.
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 pays the 402 in USDC on Base and prints the response. --max-amount caps it, in millionths of a dollar.
Ask
Post a prompt. A 402 comes back with the price, the token and the address to pay.
Pay
Your wallet signs a USDC payment on Base or Solana and the request carries it.
Collect
The response brings the video, or a link to collect it from if the render runs long. No key needed, because the payment was the key.
Paying for a request accepts our Terms of Service and Privacy Policy, including the usage policies of the model provider that renders it. Not sold in sanctioned regions.
You pay for the seconds you asked for
Price is quoted per request and scales with clip length and model. Read it off the 402 rather than hard-coding it.
Add seconds (5 / 10 / 15 on the default model) and aspectRatio (16:9 / 9:16) to the body, and model to render on Veo 3.1, Kling 3.0, Wan 2.7 or Seedance 2.5 instead. Add image_url to start from your own first frame: every model but the default takes one, and without a model the cheapest of those that sells your length renders it. Or add reference_image_urls (up to four) to keep a character, product or place the same in a new shot, on Wan 2.7 or Seedance 2.5. All optional; a bare GET on the endpoint lists every model with its prices. Paid in USDC on Base or Solana.
Video, shorts, voice, music and images, the same way
Same payment, same response shape. Each page has a sample, the prices, the limits and a command to run.
Video
POST /api/x402/video
A prompt or a first frame in, a clip out, on Veo 3.1, Kling 3.0, Seedance 2.5, Wan 2.7 or Hailuo 3.
From $0.28
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.6, 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
Want the whole pipeline instead of one clip? Build one on the canvas and call it as an API.