Skip to content
Fourohtwo

Image generation

www.trezalabs.com/api/x402/image

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.

SolanaAnswering
POSThttps://www.trezalabs.com/api/x402/image

UptimeNot checked yet

30 days agoToday

Call it from an agent

curl -i -X POST -H 'content-type: application/json' "https://www.trezalabs.com/api/x402/image" \
  -d '{"model":"nano-banana","prompt":"a lighthouse on a sea cliff at golden hour, soft mist, cinematic wide shot","aspectRatio":"1:1"}'

# 402 Payment Required comes back with the price and where to pay.

Example input

{
  "model": "nano-banana",
  "prompt": "a lighthouse on a sea cliff at golden hour, soft mist, cinematic wide shot",
  "aspectRatio": "1:1"
}

More from Treza