76trust / 100

Video

by Treza in AI models & inference

x402 APIPassing, checked 1 h ago

Generate a video from a text prompt, or animate an image_url from its first frame. The paid response waits about as long as the model usually takes to render and returns the video URL, else a statusUrl to poll (Prefer: wait=N sets the wait). 8 models including Google Veo 3.1, Kling 3.0, Seedance 2.5, Wan 2.7 and MiniMax Hailuo 3, 4 to 15 seconds, 16:9 or 9:16, from $0.42. GET this URL for every model and price. No account or API key: the payment is the only credential.

POST https://www.trezalabs.com/api/x402/video

Last 30 days

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed

Uptime
100%
Response time
1.9 s typical, 2.5 s slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

POST https://www.trezalabs.com/api/x402/video

Each call costs $0.42 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://www.trezalabs.com/api/x402/video
content-type: application/json

{
  "aspectRatio": "16:9",
  "model": "minimax-h3",
  "prompt": "a manta ray gliding over a sunlit coral reef, slow cinematic drift",
  "seconds": 5
}

Parameters

ParameterTypeRequiredDescription
aspectRatiostringNo One of: 16:9, 9:16. Default: "16:9".
asyncbooleanNotrue: answer at once, status running with a statusUrl. Default: false.
image_urlstring (uri)NoOptional first frame: public https JPEG, PNG or WebP, up to 10 MB, cropped to aspectRatio. Without a model, the cheapest model that takes an image at your length renders it.
modelstringNoDefaults to minimax-h3 without an image_url. GET this URL for what each is for. Prices: minimax-h3 (default, text only) 5s $0.42, 10s $0.84, 15s $1.26; veo-3.1-lite 4s $0.45, 6s $0.68, 8s $0.90; wan-2.7 5s $0.70, 10s $1.40; veo-3.1-fast 4s $0.68, 6s $1.01, 8s $1.35; kling-3.0 5s $0.89, 10s $1.77, 1… One of: minimax-h3, veo-3.1-lite, wan-2.7, veo-3.1-fast, kling-3.0, kling-3.0-pro, seedance-2.5, veo-3.1.
promptstringYesWhat the video should show.
secondsnumberNoClip length; each model sells its own (see model). Defaults to the model's shortest. One of: 4, 5, 6, 8, 10, 15.

Example response

The provider's example. We can't check it without paying.

{
  "aspectRatio": "16:9",
  "model": "minimax-h3",
  "paidUsd": 0.42,
  "runId": "2026-09-23T18:04:11.000Z#1a2b3c4d",
  "seconds": 5,
  "status": "success",
  "statusUrl": "https://www.trezalabs.com/api/x402/video?runId=...&token=...",
  "transaction": "0x...",
  "video": "https://www.trezalabs.com/api/media/generated/x402_video/1a2b3c4d.mp4?s=...&c=..."
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.42.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://www.trezalabs.com/api/x402/video' \
  -H 'content-type: application/json' \
  --data-raw '{"aspectRatio":"16:9","model":"minimax-h3","prompt":"a manta ray gliding over a sunlit coral reef, slow cinematic drift","seconds":5}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://www.trezalabs.com/api/x402/video' \
  -H 'content-type: application/json' \
  --data-raw '{"aspectRatio":"16:9","model":"minimax-h3","prompt":"a manta ray gliding over a sunlit coral reef, slow cinematic drift","seconds":5}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.42 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.42" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.42 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwww.trezalabs.com%2Fapi%2Fx402%2Fvideo&method=POST
const res = await pay("https://www.trezalabs.com/api/x402/video", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "aspectRatio": "16:9",
    "model": "minimax-h3",
    "prompt": "a manta ray gliding over a sunlit coral reef, slow cinematic drift",
    "seconds": 5
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.42 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.42"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://www.trezalabs.com/api/x402/video",
        json={
            "aspectRatio": "16:9",
            "model": "minimax-h3",
            "prompt": "a manta ray gliding over a sunlit coral reef, slow cinematic drift",
            "seconds": 5,
        },
    )
    print(res.status_code, res.text)

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed4022.0 s$0.42
5 h agoPassed4022.1 s$0.42
9 h agoPassed402788 ms$0.42
13 h agoPassed402514 ms$0.42
17 h agoPassed402280 ms$0.42
21 h agoPassed4021.7 s$0.42
25 h agoPassed4022.3 s$0.42
29 h agoPassed4022.5 s$0.42
32 h agoPassed4021.9 s$0.42
36 h agoPassed402323 ms$0.42
39 h agoPassed4021.9 s$0.42
43 h agoPassed402301 ms$0.42
46 h agoPassed4022.2 s$0.42
2 days agoPassed4022.3 s$0.42
2 days agoPassed4022.1 s$0.42