{"uid":"cap_ENxtir0CpGe8XCV33ikMf","slug":"webbersites-ai-image-generation-api-213d28a2","name":"WebberSites AI Image Generation API","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 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.","url":"https://api.webbersites.com/api/generate-image","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["prompt"],"properties":{"url":{"type":"string","description":"Optional public URL of a reference image to edit/restyle instead of generating from scratch (png, jpeg, gif, webp; max 5 MB)"},"prompt":{"type":"string","description":"What to generate, up to 2,000 chars — subject, style, composition, lighting"},"aspect_ratio":{"type":"string","description":"1:1 (default), 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, or 21:9"},"image_base64":{"type":"string","description":"Alternative to url: a reference image as base64 (data URI accepted)"},"reference_images":{"type":"array","description":"Up to 3 reference images (URLs or base64 strings, 6 MB combined) to compose — product placement, style transfer, character consistency"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"mode":{"type":"string","description":"generate or edit"},"bytes":{"type":"number"},"model":{"type":"string"},"usage":{"type":"object"},"content_type":{"type":"string"},"image_base64":{"type":"string","description":"the generated image as base64 — decode and save"}}}}}}},"responseSchema":{"type":"json","example":{"mode":"generate","bytes":812344,"model":"gemini-2.5-flash-image","aspect_ratio":"16:9","content_type":"image/png","image_base64":"iVBORw0KGgo…"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.07","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.07/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.07","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.07","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_B6T5IdOGks99HgUJlI17e","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.07","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generate photorealistic or illustrated images from a text prompt using Gemini 2.5 Flash, with support for aspect ratios and reference image editing","exampleAgentPrompt":"Generate a photorealistic 16:9 image of a sleek espresso machine on a marble countertop in a sunlit modern kitchen — I want to use it as a product hero shot.","exampleUseCases":[{"title":"Brand logo mockup on merchandise","prompt":"Create a photorealistic image of a white ceramic coffee mug with a bold minimalist logo on it that reads 'Apex Co.' in clean sans-serif text, sitting on a wooden desk next to a laptop — I need it for a branded merchandise concept."},{"title":"Real estate listing hero photo","prompt":"Generate a wide 16:9 photorealistic scene of a bright, modern open-concept living room with large windows, hardwood floors, and neutral furniture — I want to use it as a hero image for a real estate listing."},{"title":"Social media ad illustration","prompt":"Create a vibrant illustrated image of a young woman holding a colorful smoothie bowl outdoors at a farmers market, with a warm sunny feel — I want to use it as a square social media ad for a health food brand."}],"resultDescription":"A JSON object containing the generated image as a base64-encoded PNG string; if ?raw=1 is appended to the request, returns raw PNG bytes directly instead.","failureModes":["Invalid or missing prompt returns an error response","Unsupported aspect ratio value returns a validation error","Payment failure or insufficient funds blocks the request via x402","Reference image URL is unreachable or malformed returns an error","Prompt violates content policy and is rejected","More than 3 reference images provided may cause an error"],"whenToPreferThis":"Choose this endpoint when you need AI-generated images with strong text rendering, photorealistic scenes, product shots, illustrations, or UI mockups — especially when you also want reference-image-based editing or composition (e.g. 'put this product on this beach'). Prefer it over generic image generators when you need flexible aspect ratios and pay-per-call pricing with no API key setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:33:58.924Z","isFirstParty":false}