{"uid":"cap_5Gseozr_3Y6afwNNQWDLa","slug":"stablestudio-flux-2-max-image-generation-d3f6e3a9","name":"StableStudio Flux 2 Max Image Generation","description":"Pay-per-generation AI image and video creation. No subscriptions ever.","url":"https://stablestudio.io/api/generate/flux-2-max/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","4 MP"],"type":"string","default":"1 MP","description":"Output resolution in megapixels (up to 4 MP)"},"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-max-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_3M7wKeBraWgV7B8T3UQof","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 a high-quality AI image using the Flux 2 Max model via a pay-per-generation API, returning a job ID for async retrieval","exampleAgentPrompt":"Generate a photorealistic image of a misty mountain lake at sunrise with golden light reflecting on the water — use StableStudio's Flux 2 Max model and give me the job ID so I can check on it.","exampleUseCases":[{"title":"Product mockup from text description","prompt":"Create a high-quality product image of a sleek matte black water bottle on a white marble countertop with soft studio lighting — use StableStudio's Flux 2 Max model and return the job ID so I can retrieve it when it's ready."},{"title":"Fantasy concept art on demand","prompt":"Generate a detailed fantasy illustration of an ancient dragon perched on a crumbling castle tower under a stormy moonlit sky — run it through StableStudio's Flux 2 Max and give me the job ID to fetch the result."},{"title":"Social media visual from prompt","prompt":"Make a vibrant, eye-catching image of a tropical smoothie bowl topped with fresh fruit and edible flowers, shot from above with natural light — use StableStudio's Flux 2 Max model and send me the job ID so I can pull it down once it's done."}],"resultDescription":"A JSON object containing the generation type ('flux-2-max-generate'), a unique jobId string (e.g. 'cmpbmzaee000j04jrzx4f43tw'), a status field set to 'pending', and a success boolean. The agent must use the jobId to poll for or retrieve the completed image once processing finishes.","failureModes":["Insufficient USDC balance or payment failure — generation not initiated, payment-related error returned","Invalid or missing prompt parameter — 400-level error","Model overload or service unavailability — 5xx error or failed job status","Job ID returned but image generation fails asynchronously — status never transitions from pending","Network timeout before response received"],"whenToPreferThis":"Choose this endpoint when you need the highest-quality Flux model output (Flux 2 Max) and want pay-per-call pricing with no subscription commitment. Prefer this over subscription-based services when generation volume is unpredictable or low. Use this specifically when the Flux 2 Max quality tier is required over lighter Flux variants.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:41:05.645Z","isFirstParty":false}