x402 · USDC on Base or Solana · 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.

Paid, with Coinbase's awal wallet
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 420000

awal pays the 402 in USDC on Base and prints the response. --max-amount caps it, in millionths of a dollar.

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 or Solana and the request carries it.

03

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.

5 seconds
$0.42
10 seconds
$0.84
15 seconds
$1.26

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.

Want the whole pipeline instead of one clip? Build one on the canvas and call it as an API.