82trust / 100
Image
by Treza in AI models & inference
x402 APIPassing, checked 4 h ago
Image generation: a prompt in, one image back in the same response. 7 models including Google Nano Banana and Nano Banana Pro, OpenAI GPT Image 2, Seedream 5.0 Pro and FLUX.2 Pro, square to 21:9, up to 4K, from $0.02. 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/image
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 271 ms typical, 271 ms slowest 5%
- Last check
- 4 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://www.trezalabs.com/api/x402/image" \
-H "content-type: application/json" \
-d '{"aspectRatio":"1:1","model":"nano-banana","prompt":"a lighthouse on a sea cliff at golden hour, soft mist, cinematic wide shot"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwww.trezalabs.com%2Fapi%2Fx402%2Fimage
const res = await pay("https://www.trezalabs.com/api/x402/image", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"aspectRatio":"1:1","model":"nano-banana","prompt":"a lighthouse on a sea cliff at golden hour, soft mist, cinematic wide shot"}),
});
console.log(await res.json());Example input
{
"aspectRatio": "1:1",
"model": "nano-banana",
"prompt": "a lighthouse on a sea cliff at golden hour, soft mist, cinematic wide shot"
}Example output
{
"aspectRatio": "1:1",
"image": "https://www.trezalabs.com/api/media/generated/x402_image/1a2b3c4d.png?s=...&c=...",
"model": "nano-banana",
"paidUsd": 0.06,
"runId": "2026-09-23T18:04:11.000Z#1a2b3c4d",
"status": "success",
"statusUrl": "https://www.trezalabs.com/api/x402/image?runId=...&token=...",
"transaction": "0x..."
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 271 ms | $0.06 |