{"slug":"api-webbersites-com-api-generate-image-af84f3","title":"AI IMAGE GENERATION — POST {prompt} and get back a PNG, base64 in JSON (?raw=1 f","host":"api.webbersites.com","method":"POST","resource":"https://api.webbersites.com/api/generate-image","category":"image","description":"AI IMAGE GENERATION — POST {prompt} and get back a PNG, base64 in JSON (?raw=1 for raw bytes). Gemini 2.5 Flash Image (nano-banana): photoreal scenes, illustrations, product shots, UI mockups — renders text in images well. Optional {aspect_ratio}: 1:1 (default), 16:9, 9:16, 4:3 + 6 more. Reference i","price_listed":0.07,"price_asked":0.07,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":237,"reported_calls_30d":3,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"aspect_ratio":"16:9","prompt":"A watercolor fox reading a newspaper in a rainy cafe window"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"aspect_ratio":{"description":"1:1 (default), 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, or 21:9","type":"string"},"image_base64":{"description":"Alternative to url: a reference image as base64 (data URI accepted)","type":"string"},"prompt":{"description":"What to generate, up to 2,000 chars — subject, style, composition, lighting","type":"string"},"reference_images":{"description":"Up to 3 reference images (URLs or base64 strings, 6 MB combined) to compose — product placement, style transfer, character consistency","type":"array"},"url":{"description":"Optional public URL of a reference image to edit/restyle instead of generating from scratch (png, jpeg, gif, webp; max 5 MB)","type":"string"}},"required":["prompt"]},"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":{"properties":{"bytes":{"type":"number"},"content_type":{"type":"string"},"image_base64":{"description":"the generated image as base64 — decode and save","type":"string"},"mode":{"description":"generate or edit","type":"string"},"model":{"type":"string"},"usage":{"type":"object"}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.07,"price_match":true,"latency_ms":237,"error":null}],"description_full":"AI IMAGE GENERATION — POST {prompt} and get back a PNG, base64 in JSON (?raw=1 for raw bytes). Gemini 2.5 Flash Image (nano-banana): photoreal scenes, illustrations, product shots, UI mockups — renders text in images well. Optional {aspect_ratio}: 1:1 (default), 16:9, 9:16, 4:3 + 6 more. Reference images: pass {url} or {image_base64}, or up to 3 in {reference_images}, to edit, restyle, or compose ('put this product on this beach'). The x402 payment IS the auth.","last_updated":"2026-10-09T23:39:01.944Z","schemes":["exact"]}