{"slug":"www-trezalabs-com-api-x402-image-2e86ba","title":"Image generation (text to image)","host":"www.trezalabs.com","method":"POST","resource":"https://www.trezalabs.com/api/x402/image","category":"image","description":"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,","price_listed":0.06,"price_asked":0.06,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":1027,"reported_calls_30d":499,"reported_payers_30d":5,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"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":{"$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"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":1321,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":2457,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":965,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":1187,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":280,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":1027,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":790,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":1216,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":1365,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":3408,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":560,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":312,"error":null},{"day":"2026-11-14","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":864,"error":null},{"day":"2026-11-13","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":1209,"error":null},{"day":"2026-11-12","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":872,"error":null},{"day":"2026-11-11","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":1766,"error":null},{"day":"2026-11-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":2066,"error":null},{"day":"2026-11-09","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":242,"error":null},{"day":"2026-11-08","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":1786,"error":null},{"day":"2026-11-07","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":599,"error":null},{"day":"2026-11-06","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":2029,"error":null},{"day":"2026-11-05","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":902,"error":null},{"day":"2026-11-04","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":829,"error":null},{"day":"2026-11-03","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":1257,"error":null},{"day":"2026-11-02","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":884,"error":null},{"day":"2026-11-01","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":1601,"error":null},{"day":"2026-10-31","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":1779,"error":null},{"day":"2026-10-29","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.06,"price_match":true,"latency_ms":2801,"error":null}],"description_full":"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.","last_updated":"2026-11-26T06:47:21.289Z","schemes":["exact"]}