{"uid":"cap_eSYLl6yF93YypgkkAUfgv","slug":"x402-gateway-production-up-railway-app-6c837dcc","name":"x402 Gateway Fast Image Generation (FLUX Schnell)","description":"Quick image generation using FLUX Schnell (~2s, good for drafts)","url":"https://x402-gateway-production.up.railway.app/api/image/fast?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","bodyType","body","method"],"properties":{"body":{"type":"object","required":["prompt"],"properties":{"seed":{"type":"number","example":42,"description":"Random seed for reproducibility"},"width":{"type":"number","default":1024,"example":1024,"description":"Image width in pixels (256-2048)"},"height":{"type":"number","default":1024,"example":1024,"description":"Image height in pixels (256-2048)"},"prompt":{"type":"string","example":"a red sports car","description":"Text description of image to generate"}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"model":"flux-schnell","prompt":"A serene mountain landscape with a clear blue sky and a calm lake reflecting the peaks"},"response":{"seed":577349895,"model":"fal-ai/flux/schnell","images":[{"url":"https://v3b.fal.media/files/b/0a9e7ab8/KuwUIZJ_a1yjg0Ohx2U3t.jpg","width":1024,"height":1024}],"inference_time_ms":1402}},"exampleRequest":{"model":"flux-schnell","prompt":"A serene mountain landscape with a clear blue sky and a calm lake reflecting the peaks"},"tags":["x402"],"displayCostAmount":"0.015000","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":17,"rating":{"score":"0.90","successRate":"0.98","reviews":17,"stars":"4.6","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.015000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vmNYF5yvwpdYzSSJ4Bk2g","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates images quickly using FLUX Schnell (~2s inference) from a text prompt, ideal for drafts and rapid prototyping","exampleAgentPrompt":"Generate a quick draft image of a serene mountain landscape with a clear blue sky and a calm lake reflecting the peaks — use the fast FLUX Schnell model.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing a hosted image URL (1024x1024 by default), the seed used, model identifier (fal-ai/flux/schnell), image dimensions, and inference time in milliseconds.","failureModes":["Invalid or missing prompt returns a 400 error","Payment not provided or insufficient USDC balance returns a 402 error","fal.ai upstream service outage causes 502/503 error","Prompt violates content policy and is rejected","Request timeout if inference exceeds expected duration"],"whenToPreferThis":"Use this endpoint when you need fast image generation (approximately 2 seconds) at low cost ($0.015 USDC), especially for drafts, prototypes, or iterative workflows where speed matters more than maximum quality. Prefer over slower high-quality endpoints when you need quick visual feedback or are generating many candidate images.","instructions":null,"reviewSummary":"FLUX Schnell image generation at $0.015 per call consistently delivers 1024x1024 hosted JPEG output in roughly 1–6 seconds, with strong prompt adherence across diverse styles including illustrations, icons, and photorealistic scenes. The vast majority of calls succeed and offer excellent price-to-quality for draft and prototype work. One documented incident saw both image endpoints return HTTP 503 upstream auth errors while still billing, suggesting the gateway can experience billing-on-failure outages.","reviewSummaryHighlights":["Fast inference (typically 1–6s end-to-end) at $0.015 per image","Strong prompt adherence across illustration, icon, and photorealistic styles","Hosted JPEG URL returned directly, ready for downstream use"],"reviewSummaryConcerns":["Upstream auth failures have caused HTTP 503 errors that still deduct payment","No size or aspect-ratio parameter — output is fixed at 1024x1024 square","Text within generated images renders as gibberish, as expected for FLUX Schnell"],"reviewSummaryGeneratedAt":"2026-09-14T18:15:16.698Z","activationCount":516,"lastUsedAt":"2026-09-24T19:12:46.515Z","lastSuccessfullyRanAt":"2026-08-18T19:45:06.269Z","lastHealthCheckAt":"2026-10-11T04:41:33.441Z","isFirstParty":false,"canonicalSlug":"x402-gateway-production-up-railway-app-6c837dcc"}