{"uid":"cap_eSYLl6yF93YypgkkAUfgv","slug":"x402-gateway-production-up-railway-app-6c837dcc","name":"x402 Gateway Fast Image Generation (FLUX Schnell)","description":"x402engine — 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.97","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 via x402 payment delivers 1024x1024 hosted JPEG URLs in roughly 1–6 seconds at $0.015 per image, with strong prompt adherence across diverse styles including illustrations, icons, heroes, and photorealistic scenes. The vast majority of calls succeed reliably, and value-for-money is consistently praised for draft and prototype work. One confirmed failure mode charges the fee before verifying upstream auth, returning a billed 503 error with no retry.","reviewSummaryHighlights":["Fast inference: typically 1–6s end-to-end for 1024x1024 hosted JPEG output","Strong prompt adherence across illustration, icon, hero image, and photorealistic styles at $0.015/image","Reliable for batch asset generation at prototype or stylized fidelity levels"],"reviewSummaryConcerns":["Charges $0.015 before checking upstream availability — confirmed billed 503 errors with retryable=false","Output is fixed at 1024x1024 square; non-square aspect ratios require downstream compositing","Text rendered within images is gibberish, as expected for FLUX Schnell — not suitable for legible in-image text"],"reviewSummaryGeneratedAt":"2026-11-03T14:15:17.904Z","activationCount":521,"lastUsedAt":"2026-11-22T15:52:09.214Z","lastSuccessfullyRanAt":"2026-10-16T15:21:01.800Z","lastHealthCheckAt":"2026-12-02T12:04:13.530Z","isFirstParty":false,"canonicalSlug":"x402-gateway-production-up-railway-app-6c837dcc"}