{"uid":"cap_51Eqtm_OYuhxRvM1S-f-g","slug":"agent402-flux-pro-image-generation-8a995d53","name":"Agent402 Flux Pro Image Generation","description":"Higher-fidelity text-to-image over x402 - OpenAI images wire (prompt in, inline base64 out) at $0.05 per picture. Served by FLUX.2 Pro (about 9 seconds per image, 1024x1024 JPEG) with Qwen Image 3 at 1K as the failover. n locked to 1, text-to-image only, size and quality fixed. Point any OpenAI SDK's images.generate() at base_url https://agent402.tools/v1 and call /images/pro.","url":"https://agent402.tools/v1/images/pro","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"string","description":"Text description of the image to generate (up to 4,000 chars)"}}},"responseSchema":{"type":"json","example":{"data":[{"b64_json":"/9j/4AAQSkZJRgABAQAAAQABAAD…","media_type":"image/jpeg"}],"model":"black-forest-labs/flux.2-pro","usage":{"total_tokens":4107,"prompt_tokens":11,"completion_tokens":4096},"created":1750000000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.92","successRate":"1.00","reviews":1,"stars":"4.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":9,"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_1BC7AuU3MjZiosH3a9RxV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a high-quality image from a text prompt using the FLUX.2-Pro model, returning a base64-encoded JPEG.","exampleAgentPrompt":"Generate a photorealistic image of a misty mountain lake at sunrise with pine trees reflected in the water and a small wooden rowboat in the foreground.","exampleUseCases":[{"title":"Product mockup visualization","prompt":"Create an image of a sleek black coffee mug with a minimalist white logo sitting on a rustic wooden table with soft morning light — I want a photorealistic product shot I can use for my store."},{"title":"Fantasy concept art creation","prompt":"Generate a high-quality image of a dragon perched on a crumbling medieval castle tower at dusk, with storm clouds and lightning in the background — I need this for a book cover concept."},{"title":"Social media visual generation","prompt":"Make me an image of a vibrant tropical smoothie bowl topped with fresh mango slices, kiwi, and granola, shot from above on a white marble surface — something eye-catching for an Instagram post."}],"resultDescription":"Returns a JSON object containing a data array with one entry holding a b64_json field (base64-encoded JPEG image data) and a media_type of image/jpeg. Also includes the model name (black-forest-labs/flux.2-pro), a created Unix timestamp, and usage stats showing total_tokens, prompt_tokens, and completion_tokens.","failureModes":["Prompt exceeds 4,000 characters — request rejected","Invalid or malformed JSON body — 400 error","Insufficient USDC balance or payment failure — 402 error","Content policy violation in prompt — generation refused","Model temporarily unavailable — 503 or timeout","Returned b64_json may be empty if generation fails silently"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call image generation with no signup or API key — just a crypto wallet. It uses FLUX.2-Pro, a state-of-the-art model from Black Forest Labs, making it preferable when high visual quality is required. Ideal for agents in agentic finance or x402-native workflows where on-chain micropayments are the identity and access layer.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":9,"lastUsedAt":"2026-09-14T20:29:14.741Z","lastSuccessfullyRanAt":"2026-09-14T20:29:14.741Z","lastHealthCheckAt":"2026-09-14T20:29:09.363Z","isFirstParty":false}