{"uid":"cap_riKukku342lXAV1fEVHqe","slug":"payweave-replicate-flux-2-flex-image-generation-761c1f12","name":"PayWeave Replicate – FLUX 2 Flex Image Generation","description":"Run open-source AI models — image, video, audio.","url":"https://replicate.payweave.services/models/black-forest-labs/flux-2-flex/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.74","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.74/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.74","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.74","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4eyJ7kKX2aNx-l2N14C6Z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.74","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 Flex via Replicate to generate images from prompts, billed per-call via x402 micropayment.","exampleAgentPrompt":"Generate an image of a misty Japanese forest at dawn with soft golden light filtering through bamboo trees, using FLUX 2 Flex on Replicate — pay the $0.74 per-call fee and give me the image URL when it's done.","exampleUseCases":null,"resultDescription":"Returns a Replicate prediction object containing: a unique prediction ID, the model name, a status field (succeeded/failed/canceled/processing/starting), the generated image as a Replicate-hosted CDN URL (valid ~24 hours), timing metrics (total_time, predict_time in seconds), timestamps for creation and completion, and the USD cost charged for the call. On failure, an error string is returned instead of output.","failureModes":["Model input validation error — missing or malformed 'input' object returns an error status","Payment failure — insufficient USDC balance or x402 protocol error prevents call from completing","Prediction timeout or cancellation — status returns 'canceled' or 'failed' with error message","CDN URL expiry — image URLs are only valid ~24 hours after generation","Model cold start — status may show 'starting' before transitioning to 'processing', increasing latency"],"whenToPreferThis":"Choose this endpoint when you need to run the FLUX 2 Flex model specifically, want pay-per-call pricing via x402 USDC micropayments without a subscription, or need access to Black Forest Labs' latest flexible image generation model through a Replicate-compatible API. Prefer over alternatives when working in x402-enabled agent pipelines or when the user explicitly needs FLUX 2 Flex output quality.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:02:35.020Z","isFirstParty":false}