{"uid":"cap_JPu3fBVBrujwERQWRSaVq","slug":"payweave-replicate-flux-2-klein-4b-image-generation-9ff3b31a","name":"PayWeave Replicate – FLUX 2 Klein 4B Image Generation","description":"Run open-source AI models — image, video, audio.","url":"https://replicate.payweave.services/models/black-forest-labs/flux-2-klein-4b/predictions","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object"}}},"responseSchema":{"type":"object","required":["id","model","status","error","predicted_price_usd"],"properties":{"id":{"type":"string","description":"Replicate prediction ID."},"error":{"type":["string","null"]},"model":{"type":"string"},"output":{"description":"Model-specific output. Image/audio models return CDN URLs (Replicate-hosted, ~24h TTL); vision-LLM models return a string; music models return a single audio URL or array."},"status":{"enum":["succeeded","failed","canceled","processing","starting"],"type":"string"},"metrics":{"type":"object","properties":{"total_time":{"type":"number"},"predict_time":{"type":"number"}},"additionalProperties":false},"created_at":{"type":"string"},"completed_at":{"type":"string"},"predicted_price_usd":{"type":"string","description":"USD charged for this call."}},"description":"Replicate prediction result with metadata.","additionalProperties":false},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fI6pg2UTueKzTanoG6C1R","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs Black Forest Labs' FLUX 2 Klein 4B model via Replicate to generate images from a prompt, billed per-call via x402 micropayment.","exampleAgentPrompt":"Use the FLUX 2 Klein 4B model on Replicate to generate an image of a misty Japanese forest at dawn with soft golden light filtering through the trees.","exampleUseCases":null,"resultDescription":"Returns a Replicate prediction object containing a status (succeeded/failed/canceled/processing/starting), a CDN-hosted image URL valid for ~24 hours, the prediction ID, timing metrics (total_time, predict_time), and the USD amount charged for the call.","failureModes":["Model inference fails — status='failed', error field contains reason","Payment not accepted or x402 auth rejected — HTTP 402 before inference begins","Invalid or missing input object — HTTP 400 or error in response body","Model is starting or processing and output is not yet ready — status='starting' or 'processing'","CDN URL expires after ~24 hours — image no longer accessible"],"whenToPreferThis":"Choose this endpoint when you need to generate images using the open-source FLUX 2 Klein 4B model specifically, want pay-per-call micropayment billing via x402 with no subscription required, and are comfortable with Replicate-hosted CDN output URLs with a 24-hour TTL.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:02:33.400Z","isFirstParty":false}