← Back to directory

Image generation (text to image): a prompt (and optional reference images) in, o...

https://www.trezalabs.com/api/x402/image

Overview

Image generation (text to image): a prompt (and optional reference images) in, one image back in the same response. Use it when an agent needs an illustration, thumbnail, product shot or social image from a description. 8 models including Google Nano Banana and Nano Banana Pro, OpenAI GPT Image 2.6, 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.

Protocol x402 (POST)
Price $0.06
Payment Asset USD Coin
Payment Network eip155:8453
Category media/images
Provider Image generation, GPT Image 2.6
Source bazaar
Indexed 2026-09-24 01:14:53

Health

Status healthy
Latency (p50) 1775ms
Uptime (30d) 100.0%
Reliability Score 85/100
Last Checked 2026-10-31 07:09:23
Last Healthy 2026-10-31 07:09:23
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "body": { "aspectRatio": "1:1", "model": "nano-banana", "prompt": "a lighthouse on a sea cliff at golden hour, soft mist, cinematic wide shot" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "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..." }, "type": "json" }