x402 · USDC on Base · live

A prompt in.
A video out.

No account. No API key. No signup. An agent pays for the render and gets the file back.

Prompt
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

The whole integration
$ 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.

01

Ask

Post a prompt. A 402 comes back with the price, the token and the address to pay.

02

Pay

Your wallet signs a USDC payment on Base and the request carries it.

03

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.

5 seconds
$1.64
10 seconds
$3.27
15 seconds
$4.90

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.