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.
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 and the request carries it.
Collect
You get a link to poll. It needs no key, because the payment was the key.
You pay for the seconds you asked for
Price is quoted per request and scales with clip length. Read it off the 402 rather than hard-coding it.
Add seconds (5 / 10 / 15) and aspectRatio (16:9 / 9:16) to the body. Both optional. Paid in USDC on Base.
Want the whole pipeline instead of one clip? Build one on the canvas and call it as an API.