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.

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.

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. All optional; a bare GET on the endpoint lists every model with its prices. Paid in USDC on Base or Solana.

Shorts, clips, voice, music and images, the same way

Same payment, same response shape. A bare GET on each lists what it sells.

Shorts

POST /api/x402/short

A topic in, a finished 30-second narrated short out: scenes, voice, music, captions.

$0.87 as stills, $3.22 animated

Clips

POST /api/x402/clip

A YouTube link in, its best 30 to 60 seconds out as a captioned vertical clip.

$0.12 for a 12-minute video, by length

Speech

POST /api/x402/speech

Text to an ElevenLabs voiceover in over 30 voices, Eleven v3 or Multilingual v2.

$0.42 per 1,000 characters

Music

POST /api/x402/music

An original Google Lyria 3 track from a description of the sound you want.

$0.06 a clip, $0.12 a full song

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

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