{"uid":"cap_hcob59SLjy08uBJcnbWFG","slug":"stablestudio-flux-2-pro-image-generation-630409d6","name":"StableStudio Flux 2 Pro Image Generation","description":"Pay-per-generation AI image and video creation. No subscriptions ever.","url":"https://stablestudio.io/api/generate/flux-2-pro/generate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"integer","maximum":9007199254740991,"minimum":-9007199254740991,"description":"Random seed for reproducibility"},"prompt":{"type":"string","maxLength":10000,"minLength":1,"description":"A detailed description of the image you want to generate"},"resolution":{"enum":["0.5 MP","1 MP","2 MP"],"type":"string","default":"1 MP","description":"Output resolution in megapixels"},"aspect_ratio":{"enum":["1:1","16:9","9:16","3:2","2:3","4:5","5:4","4:3","3:4"],"type":"string","default":"1:1","description":"Aspect ratio of the output image"},"output_format":{"enum":["webp","jpg","png"],"type":"string","default":"webp","description":"Output image format"},"output_quality":{"type":"integer","default":80,"maximum":100,"minimum":0,"description":"Quality for JPG/WebP output (0-100)"},"safety_tolerance":{"type":"integer","default":2,"maximum":5,"minimum":1,"description":"Content safety strictness (1=strict, 5=permissive)"},"prompt_upsampling":{"type":"boolean","default":false,"description":"Let the model enhance your prompt for more creative results"}}},"responseSchema":{"type":"json","example":{"type":"flux-2-pro-generate","jobId":"cmpbmzaee000j04jrzx4f43tw","status":"pending","pollUrl":"https://stablestudio.dev/api/jobs/cmpbmzaee000j04jrzx4f43tw","success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"10","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":"$10/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"10","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"10","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wd8F8bTwOi7dN_JelwFlO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"10","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates AI images using the Flux 2 Pro model via a pay-per-generation API with no subscription required","exampleAgentPrompt":"Generate an image of a cinematic sunset over a futuristic Tokyo skyline, neon reflections on wet streets, using Flux 2 Pro on StableStudio — I'm fine paying per generation.","exampleUseCases":[{"title":"Create NFT artwork for crypto collections","prompt":"I need to generate 50 unique AI artworks for my NFT collection drop next week. Can you use Flux 2 Pro to create them in batches and pay per image with crypto? I want surreal, abstract designs with iridescent colors."},{"title":"Design product mockups without subscription","prompt":"We're testing new product packaging designs for our startup. Generate me 10 high-quality mockup images showing our logo on different backgrounds — use Flux 2 Pro and just charge me for what we actually generate, no monthly fees."},{"title":"Illustrate blog posts on demand","prompt":"I'm publishing three blog articles this month and need custom header illustrations for each one. Can you generate photorealistic images that match each article's theme using Flux 2 Pro? I only want to pay when we actually create them."}],"resultDescription":"Returns a JSON object containing the generation type ('flux-2-pro-generate'), a unique jobId string, a status field (initially 'pending'), and a success boolean. The image is produced asynchronously and must be retrieved separately using the jobId.","failureModes":["Insufficient USDC payment — payment of exactly $10 USDC required per call","Invalid or missing prompt — generation job not created","Payment protocol failure — x402 payment not accepted or malformed","Job creation fails — success:false returned with no jobId","Rate limiting or server overload — 429 or 503 response","Async job failure — job created but image generation fails downstream, status never reaches completed"],"whenToPreferThis":"Choose this endpoint when you need high-quality Flux 2 Pro image generation without committing to a subscription, especially in crypto-native or x402-payment-enabled agentic workflows. Prefer this over subscription-based services when usage is sporadic or when you want pay-as-you-go economics billed in USDC on-chain.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:45:31.183Z","isFirstParty":false}