{"uid":"cap_YZUmGMrsTuXsKP6AamwLp","slug":"gedx402-flux-2-klein-9b-image-generator-25f6bee3","name":"GEDX402 Flux-2 Klein 9B Image Generator","description":"x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.","url":"https://ged-x402-image.jvalamis.workers.dev/v1/image/flux-2-klein-9b","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"width":{"type":"integer"},"height":{"type":"integer"},"prompt":{"type":"string"},"num_steps":{"type":"integer"}}},"responseSchema":{"type":"json","example":{"image":"<base64>"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.085","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.085/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.085","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.085","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1LUBfl1TcyPeUMjoUKtMS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.085","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates an image from a text prompt using the Flux-2 Klein 9B diffusion model, paid per-call with USDC via x402 protocol — no API keys required.","exampleAgentPrompt":"Generate an image of a neon-lit cyberpunk city street at night with rain reflections on the pavement — make it 1024 pixels wide and 768 pixels tall, using 15 diffusion steps for high quality.","exampleUseCases":[{"title":"Real-time product mockup generation","prompt":"I need you to generate product images for our e-commerce listings. Create a sleek white wireless headphone on a minimalist white background, 1024 by 1024 pixels, then do the same for a navy blue version. Pay for both with USDC from my wallet."},{"title":"AI storyboard creator for content","prompt":"Generate a series of three images for my marketing campaign: first, a sunny beach resort at golden hour with families relaxing, second, the same location at sunset with romantic vibes, and third, at night with ambient lighting. Each should be 1024 by 768 pixels with 20 diffusion steps for the best quality."},{"title":"Custom branding asset automation","prompt":"Create our new brand mascot as a friendly geometric fox character wearing tech glasses, rendered in a modern flat design style, 512 by 512 pixels. Then generate three variations with different color palettes—one blue, one purple, one orange—all with 16 diffusion steps. Handle the USDC payments automatically."}],"resultDescription":"A JSON object containing a single 'image' field with the generated image encoded as a base64 string, ready to decode and display or save.","failureModes":["Insufficient USDC balance or payment failure — HTTP 402 Payment Required","Invalid prompt (empty string) — request rejected or blank/garbled output","num_steps out of range (must be 1–20) — validation error","Model timeout or overload on Cloudflare Workers — HTTP 5xx error","Unsupported width/height values — model may ignore or clip dimensions","Network error reaching workers.dev host — connection timeout"],"whenToPreferThis":"Choose this endpoint when you need on-demand text-to-image generation without managing API keys, using a crypto micropayment (USDC on Base, Polygon, Arbitrum, World, or Solana) via the x402 protocol. Ideal for autonomous agents that hold crypto wallets and need to generate images programmatically at $0.085 per call. Prefer this over OpenAI/Stability API wrappers when avoiding centralized API key management or when operating in a web3-native payment context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:36:10.755Z","isFirstParty":false}