{"uid":"cap_nMEeP-lza18HxKDekHfje","slug":"x402-gateway-production-up-railway-app-2f18097a","name":"FLUX.2 Pro High-Quality Image Generation","description":"High-quality image generation using FLUX.2 Pro (~5s, production-ready)","url":"https://x402-gateway-production.up.railway.app/api/image/quality?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 sunset over mountains","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.2 Pro","prompt":"a peaceful forest stream with sunlight filtering through green canopy, photorealistic, high detail","quality":"high"},"response":{"seed":1126989484,"model":"fal-ai/flux-2-pro","images":[{"url":"https://v3b.fal.media/files/b/0a9c2fa0/zWftNw8VBYlhrWSdk7zsq_SXzixzSz.jpg","width":1024,"height":1024}],"inference_time_ms":12329}},"exampleRequest":{"model":"FLUX.2 Pro","prompt":"a peaceful forest stream with sunlight filtering through green canopy, photorealistic, high detail","quality":"high"},"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":3,"rating":{"score":"0.67","successRate":"0.87","reviews":3,"stars":"3.7","state":"rated"},"availabilityStatus":"healthy","priceObserved":{"p10Cents":"5.0000","medianCents":"5.0000","p90Cents":"5.0000","minCents":"5.0000","maxCents":"5.0000","p95Cents":"5.0000","sampleCount":3,"varies":false,"failureChargeRate":null},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Q0bM3Iy3hzNlRFxwo9s-2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates high-quality, production-ready images using FLUX.2 Pro model with ~5 second inference time","exampleAgentPrompt":"Generate a high-quality photorealistic image of a misty Japanese forest at dawn with soft golden light filtering through the trees — use FLUX.2 Pro with high quality settings.","exampleUseCases":[{"title":"Create premium product photography for ecommerce","prompt":"Generate a high-quality photorealistic image of a sleek wireless headphone in matte black sitting on a minimalist marble surface with soft studio lighting and subtle shadows — I need this for our product catalog."},{"title":"Design realistic concept art for game development","prompt":"Generate a high-quality photorealistic image of a futuristic cyberpunk city street at night with neon signs, flying vehicles, and dense crowds of people in sci-fi clothing — make it detailed enough for a game environment concept."},{"title":"Produce professional marketing visuals for campaigns","prompt":"Generate a high-quality photorealistic image of a diverse team of professionals collaborating in a modern glass office with natural sunlight, plants, and contemporary furniture — I need this for our company website banner."}],"resultDescription":"Returns a JSON object containing the image URL (hosted on fal.media CDN), image dimensions (width and height in pixels), the seed used for generation, the model identifier, and inference time in milliseconds. The image is 1024x1024 pixels by default and production-ready.","failureModes":["Invalid or missing prompt returns a 400 error","Payment not provided or insufficient USDC balance causes a 402 Payment Required response","Model overload or timeout may cause delayed or failed generation","Malformed request body returns validation error","Prompt violates content policy and is rejected"],"whenToPreferThis":"Choose this endpoint when you need production-ready, high-fidelity images with maximum detail and photorealism. It uses FLUX.2 Pro which produces superior quality compared to faster draft models like FLUX Schnell. Ideal when image quality is critical and a 5-9 second wait is acceptable. Prefer over the quick/draft endpoint when the output will be shown to end users or used in a final product.","instructions":null,"reviewSummary":"Delivers high-quality FLUX.2 Pro images with flexible custom dimensions (256–2048px on each axis), accurate prompt adherence including 'no text' constraints, and strong value at $0.05 per image. When the service is available, output quality and resolution control are rated highly. However, one confirmed incident showed a 503 upstream auth failure that was non-retryable yet still charged the $0.05 fee — billing on failure is a notable risk.","reviewSummaryHighlights":["Flexible width/height params (256–2048px) vs. fixed aspect-ratio enums on competing services","Strong prompt adherence including suppression of text/UI elements on generated objects","Competitive $0.05 pricing with high output quality when operational"],"reviewSummaryConcerns":["Billing charge settled even on hard 503 upstream auth failures with no retry path","Upstream auth errors suggest occasional availability gaps unrelated to caller input"],"reviewSummaryGeneratedAt":"2026-09-15T22:15:12.439Z","activationCount":118,"lastUsedAt":"2026-09-15T21:04:24.896Z","lastSuccessfullyRanAt":"2026-09-13T05:47:45.181Z","lastHealthCheckAt":"2026-10-11T18:31:26.196Z","isFirstParty":false,"canonicalSlug":"x402-gateway-production-up-railway-app-2f18097a"}