{"uid":"cap_P8DAuwUmLkjcbZiZPOMGl","slug":"stablestudio-flux-2-max-edit-c775c08a","name":"StableStudio Flux 2 Max Edit","description":"Pay-per-generation AI image and video creation. No subscriptions ever.","url":"https://stablestudio.io/api/generate/flux-2-max/edit","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"integer","maximum":9007199254740991,"minimum":-9007199254740991,"description":"Random seed for reproducibility"},"images":{"type":"array","items":{"type":"string","format":"uri","description":"Image URL"},"maxItems":10,"minItems":1,"description":"Array of image URLs to use as references for editing"},"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-edit","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_T3-5XhwovpddVIlAmt54U","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":"Edits or modifies an existing image using the Flux 2 Max model via pay-per-generation AI image editing.","exampleAgentPrompt":"Use StableStudio's Flux 2 Max edit to take my product photo and replace the plain white background with a warm sunset beach scene, keeping the product itself exactly as-is.","exampleUseCases":[{"title":"Update marketing photo background","prompt":"I need you to take our latest product shot and swap out the office background for something more modern—maybe a sleek minimalist setting that matches our brand colors. Keep the product and lighting exactly the same."},{"title":"Fix unwanted elements from photos","prompt":"Can you edit out that person photobombing in the corner of our team photo? Just remove them cleanly and blend the background so it looks natural."},{"title":"Create style variations for social media","prompt":"Take this portrait of our CEO and create a few variations—one with a professional studio background, one outdoors in nature, and one with a corporate boardroom vibe. Same person, different settings."}],"resultDescription":"A JSON object containing the job type ('flux-2-max-edit'), a unique jobId (e.g. 'cmpbmzaee000j04jrzx4f43tw'), a status field (initially 'pending'), and a success boolean. The agent must poll or wait for job completion to retrieve the final edited image URL.","failureModes":["Payment failure or insufficient USDC balance — returns payment error before job is queued","Invalid or missing source image — returns 400 or validation error","Unsupported image format or size — job may fail after submission","Job processing timeout — status remains pending indefinitely","Rate limiting or capacity issues — job not accepted"],"whenToPreferThis":"Choose this endpoint when you need to edit or modify an existing image (rather than generate from scratch) using the high-quality Flux 2 Max model, and prefer pay-per-use pricing with no subscription commitment. Ideal for one-off or low-volume editing tasks where cost predictability matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:30:15.601Z","isFirstParty":false}