{"uid":"cap_1WAr_XZ8H5p095t0Q25ib","slug":"agent-data-tools-revmesh2074-workers-dev-image-generation-via-get-7cf2d9ac","name":"Image Generation via GET (FLUX.1 schnell, OpenAI-compatible)","description":"OpenAI-compatible image generation, pay per image: a prompt in, one 1024x1024 FLUX.1 schnell JPEG out as b64_json. No account or API key; failed calls are not charged.","url":"https://agent-data-tools.revmesh2074.workers.dev/v1/images/generations?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":["prompt"],"properties":{"steps":{"type":"integer","examples":[4],"description":"Diffusion steps, 1-8 (default 4)"},"prompt":{"type":"string","examples":["a lighthouse on a cliff at sunset, watercolor"],"description":"What the image should show (3-800 characters)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"model":{"type":"string"},"steps":{"type":"number"},"prompt":{"type":"string"},"contentType":{"type":"string"},"imageBase64":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"model":"@cf/black-forest-labs/flux-1-schnell","steps":4,"prompt":"a lighthouse on a cliff at sunset, watercolor","contentType":"image/jpeg","imageBase64":"/9j/4AAQSkZJRgABAQAAAQABAAD..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-JT7A3NiaoG2LMJeS2DmV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agent-data-tools.revmesh2074.workers.dev","brandSlug":"agent-data-tools-revmesh2074-workers-dev-x402","brandBaseUrl":"https://agent-data-tools.revmesh2074.workers.dev","brandDocsUrl":null,"whatItDoes":"Generates a 1024x1024 JPEG image from a text prompt using FLUX.1 schnell, returning it as both b64_json and a data URL, via a GET request for $0.01 per image.","exampleAgentPrompt":"Generate an image of a futuristic city skyline at sunset with flying cars and neon lights — I need it as a base64 JPEG.","exampleUseCases":[{"title":"Blog hero image generation","prompt":"Create an image of a cozy coffee shop interior with warm lighting and wooden shelves full of books — I need it as a base64 image to embed in my blog post."},{"title":"Product concept visualization","prompt":"Generate an image of a sleek white smartwatch on a marble surface with soft studio lighting for a product mockup."},{"title":"Game asset placeholder creation","prompt":"Make an image of a dark fantasy forest with glowing mushrooms and mist for use as a background placeholder in my game prototype."}],"resultDescription":"Returns an OpenAI-shaped JSON object with a data array containing one item: b64_json (the full base64-encoded 1024x1024 JPEG), url (a data: URL of the same image), and revised_prompt. Also includes created (Unix timestamp), model (FLUX.1 schnell), output_format, and size fields.","failureModes":["Prompt shorter than 3 or longer than 800 characters returns a validation error and no charge","n != 1 is rejected since one payment covers exactly one image","Payment failure (x402 or MPP) results in no image generated and no charge","Invalid or expired API key results in authentication error","Prompt contains disallowed content (NSFW/safety filter triggers) returns an error without charge"],"whenToPreferThis":"Use this endpoint when your HTTP client or environment can only issue GET requests and cannot POST a JSON body — for example, simple browser fetch calls, server-side rendering pipelines, or link-based integrations. It is also ideal when you want OpenAI SDK compatibility at $0.01 per image using FLUX.1 schnell without needing an OpenAI account, and when you want guaranteed no-charge on failed calls.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T18:46:55.741Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-image-generation-via-get-7cf2d9ac"}