Image generation (text to image)
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.
Answeringour last check, 2026-11-26
7 of 7checks answered this week
1027 msmedian answer time
$0.06listed price per call
$0.06price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://www.trezalabs.com/api/x402/image
| Category | Image and media |
|---|---|
| Provider host | www.trezalabs.com |
| Networks | eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 499 from 5 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-26 | valid payment request | 402 | $0.06 | 1321 ms |
| 2026-11-25 | valid payment request | 402 | $0.06 | 2457 ms |
| 2026-11-24 | valid payment request | 402 | $0.06 | 965 ms |
| 2026-11-23 | valid payment request | 402 | $0.06 | 1187 ms |
| 2026-11-22 | valid payment request | 402 | $0.06 | 280 ms |
| 2026-11-21 | valid payment request | 402 | $0.06 | 1027 ms |
| 2026-11-20 | valid payment request | 402 | $0.06 | 790 ms |
| 2026-11-19 | valid payment request | 402 | $0.06 | 1216 ms |
| 2026-11-18 | valid payment request | 402 | $0.06 | 1365 ms |
| 2026-11-17 | valid payment request | 402 | $0.06 | 3408 ms |
| 2026-11-16 | valid payment request | 402 | $0.06 | 560 ms |
| 2026-11-15 | valid payment request | 402 | $0.06 | 312 ms |
| 2026-11-14 | valid payment request | 402 | $0.06 | 864 ms |
| 2026-11-13 | valid payment request | 402 | $0.06 | 1209 ms |
| 2026-11-12 | valid payment request | 402 | $0.06 | 872 ms |
| 2026-11-11 | valid payment request | 402 | $0.06 | 1766 ms |
| 2026-11-10 | valid payment request | 402 | $0.06 | 2066 ms |
| 2026-11-09 | valid payment request | 402 | $0.06 | 242 ms |
| 2026-11-08 | valid payment request | 402 | $0.06 | 1786 ms |
| 2026-11-07 | valid payment request | 402 | $0.06 | 599 ms |
| 2026-11-06 | valid payment request | 402 | $0.06 | 2029 ms |
| 2026-11-05 | valid payment request | 402 | $0.06 | 902 ms |
| 2026-11-04 | valid payment request | 402 | $0.06 | 829 ms |
| 2026-11-03 | valid payment request | 402 | $0.06 | 1257 ms |
| 2026-11-02 | valid payment request | 402 | $0.06 | 884 ms |
| 2026-11-01 | valid payment request | 402 | $0.06 | 1601 ms |
| 2026-10-31 | valid payment request | 402 | $0.06 | 1779 ms |
| 2026-10-29 | valid payment request | 402 | $0.06 | 2801 ms |
Example input (from the provider)
{
"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"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"aspectRatio": {
"default": "1:1",
"description": "Each model sells its own; GET this URL.",
"enum": [
"1:1",
"16:9",
"9:16",
"4:3",
"3:4",
"3:2",
"2:3",
"4:5",
"5:4",
"21:9"
],
"type": "string"
},
"async": {
"default": false,
"description": "true: answer at once, status running with a statusUrl.",
"type": "boolean"
},
"model": {
"default": "nano-banana",
"description": "Prices: nano-banana $0.06; nano-banana-2 1K $0.10, 512 $0.07, 2K $0.15, 4K $0.22; nano-banana-pro 1K $0.20, 2K $0.20; gpt-image-2.6 medium $0.08, low $0.05, high $0.10, xhigh $0.16, max $0.36; gpt-image-2 medium $0.10, low $0.02, high $0.36; seedream-5-pro 2K $0.13; flux-2-pro $0.07 (1:1) to $0.11; recraft-v4.1 $0.05.",
"enum": [
"nano-banana",
"nano-banana-2",
"nano-banana-pro",
"gpt-image-2.6",
"gpt-image-2",
"seedream-5-pro",
"flux-2-pro",
"recraft-v4.1"
],
"type": "string"
},
"prompt": {
"description": "What the image should show.",
"maxLength": 2000,
"type": "string"
},
"quality": {
"description": "gpt-image-2.6 (medium, low, high, xhigh or max), gpt-image-2 (medium, low or high).",
"enum": [
"low",
"medium",
"high",
"xhigh",
"max"
],
"type": "string"
},
"reference_image_urls": {
"description": "Optional images to keep a subject or style from (nano-banana, nano-banana-2, nano-banana-pro, gpt-image-2.6, gpt-image-2, seedream-5-pro, flux-2-pro).",
"items": {
"format": "uri",
"type": "string"
},
"maxItems": 4,
"minItems": 1,
"type": "array"
},
"resolution": {
"description": "nano-banana-2 (1K, 512, 2K or 4K), nano-banana-pro (1K or 2K), seedream-5-pro (2K).",
"enum": [
"512",
"1K",
"2K",
"4K"
],
"type": "string"
}
},
"required": [
"prompt"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}