{"uid":"cap_N1GBDYx8szjdEsfqO_5UK","slug":"quickbuild-image-generation-api-cb2e5d5d","name":"QuickBuild Image Generation API","description":"Landing pages ($15), Google Sheets/Apps Script automation ($10), scrapers, scripts & Telegram bots (from $15), broken-link + sitemap audit reports ($10). See a working demo first, pay after.","url":"https://quickbuild.quynguyenbac.workers.dev/api/image?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"steps":{"type":"integer","maximum":8,"minimum":1,"description":"Diffusion steps, more = more detail (default 4)."},"format":{"enum":["json","jpeg"],"type":"string","description":"json (default): {image_base64, mimeType,...}; jpeg: raw image bytes."},"prompt":{"type":"string","description":"What to draw (max 1000 chars). Optional: defaults to a watercolor lighthouse."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"bytes":{"type":"integer"},"model":{"type":"string"},"steps":{"type":"integer"},"width":{"type":"integer"},"height":{"type":"integer"},"prompt":{"type":"string"},"mimeType":{"type":"string"},"image_base64":{"type":"string","description":"Base64-encoded image"}}}}}}},"responseSchema":{"type":"json","example":{"bytes":588000,"model":"@cf/black-forest-labs/flux-1-schnell","steps":4,"width":1024,"height":1024,"prompt":"a cozy watercolor illustration of a lighthouse on a cliff at sunrise","mimeType":"image/jpeg","image_base64":"/9j/4AAQSkZJRg..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_w1lfE1mv2GuSTixUdH_WV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a 1024×1024 AI image from a text prompt using the Flux-1-Schnell diffusion model, returning base64 JSON or raw JPEG bytes","exampleAgentPrompt":"Draw me a cozy watercolor illustration of a lighthouse on a cliff at sunrise — use 6 diffusion steps and give me the result as a base64 JSON response.","exampleUseCases":[{"title":"AI art for blog post header","prompt":"Generate an image of a futuristic city skyline at dusk with neon lights reflecting on wet streets — use 8 diffusion steps and return it as a JPEG."},{"title":"Quick placeholder illustration","prompt":"Draw a simple watercolor illustration of a mountain lake at sunset and give it back to me as base64 JSON so I can embed it in my app."},{"title":"Custom Telegram bot avatar","prompt":"Create an AI image of a friendly cartoon robot waving hello, with 4 diffusion steps, and return it as raw JPEG bytes."}],"resultDescription":"A JSON object containing the base64-encoded JPEG image string, image dimensions (1024×1024), byte size, number of diffusion steps used, the model identifier (@cf/black-forest-labs/flux-1-schnell), the prompt, and the MIME type — or raw JPEG bytes if format=jpeg is requested.","failureModes":["Prompt exceeds 1000 characters — request will be rejected or truncated","Steps parameter outside 1–8 range — validation error returned","Payment not provided or invalid — 402 Payment Required response","Model cold-start or Cloudflare Worker timeout — 500 or 504 error","Invalid format enum value — unexpected behavior or error"],"whenToPreferThis":"Choose this endpoint when you need fast, affordable ($0.01/call) AI image generation backed by Flux-1-Schnell via Cloudflare Workers, especially when you want flexible output (base64 JSON or raw JPEG) and control over diffusion steps (1–8). It's ideal for lightweight automation pipelines, bots, or apps that need quick image generation without setting up their own inference infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:20:46.533Z","isFirstParty":false,"canonicalSlug":"quickbuild-image-generation-api-cb2e5d5d"}