{"uid":"cap_rm2fOw9vxRF-G7pFTHp38","slug":"x-402-text-to-image-generator-flux-1-schnell-b417624a","name":"x-402 Text-to-Image Generator (FLUX.1 schnell)","description":"Turn a text prompt into a 1024x1024 JPEG in about four seconds. Text-to-image generation pay-per-call, no account and no API key: send a prompt, receive a 1024x1024 JPEG as a base64 data URL in about four seconds (FLUX.1 schnell). Photorealistic scen…","url":"https://api.x-402.online/v1/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","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YLeX1WbxUX2HG6tTQM3gm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a 1024x1024 JPEG image from a text prompt using FLUX.1 schnell, returned as a base64 data URL, pay-per-call with no account required.","exampleAgentPrompt":"Generate an image of a photorealistic golden retriever running on a sun-drenched beach at sunset.","exampleUseCases":[{"title":"Product mockup image generation","prompt":"Create a photorealistic image of a sleek black coffee mug on a wooden desk with soft morning light coming through a window."},{"title":"Fantasy scene visualization","prompt":"Generate an image of a medieval castle perched on a misty cliff at dusk, with a full moon rising behind it."},{"title":"Social media content creation","prompt":"Make a vibrant, eye-catching image of a tropical fruit smoothie bowl with colorful toppings arranged artistically on a marble surface."}],"resultDescription":"Returns a JSON object containing a 1024x1024 JPEG image encoded as a base64 data URL, generated in approximately four seconds using the FLUX.1 schnell model. The image reflects the text prompt supplied by the caller.","failureModes":["Empty or missing prompt returns an error","Payment not received or insufficient USDC results in 402 Payment Required","Model timeout if generation exceeds expected latency window","Invalid HTTP method (non-GET) returns 405 Method Not Allowed","Prompt content policy violation may result in refusal or error"],"whenToPreferThis":"Choose this endpoint when you need fast (≈4 second), pay-per-call text-to-image generation with no account setup, API key, or subscription — ideal for agents that generate images infrequently or on-demand and want to pay only per use in USDC via the x402 protocol. Prefer this over subscription-based image APIs when cost predictability per call and zero onboarding friction matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:11:42.101Z","isFirstParty":false,"canonicalSlug":"x-402-text-to-image-generator-flux-1-schnell-b417624a"}