{"uid":"cap_0GVf4b1a4e-GSoAf1kToB","slug":"stablestudio-flux-2-max-image-edit-b6feec80","name":"StableStudio Flux 2 Max Image Edit","description":"Pay-per-generation AI image and video creation. No subscriptions ever.","url":"https://stablestudio.dev/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_ZoLm0_phMU8szzEOW__cU","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 an existing image using the Flux 2 Max model via a pay-per-generation API, returning a job ID for async result retrieval.","exampleAgentPrompt":"Edit my product photo to remove the background and replace it with a clean white studio backdrop — use Flux 2 Max on StableStudio and just charge me per generation, no subscription.","exampleUseCases":[{"title":"Update marketing collateral images quickly","prompt":"I need to change the clothing colors in these 5 product photos for our seasonal campaign — can you use Flux 2 Max to edit them all without me needing a subscription? Just charge per edit."},{"title":"Refresh social media content on demand","prompt":"Take my old Instagram post photos and update the text overlays and background colors to match our new brand guidelines — use StableStudio's Flux 2 Max so I only pay for what I need."},{"title":"Fix imperfect photography in real-time","prompt":"I've got some product shots with unwanted reflections and shadows — can you remove those and enhance the lighting using Flux 2 Max? I'd rather not commit to a monthly plan, just bill me per image."}],"resultDescription":"A JSON object with type ('flux-2-max-edit'), a unique jobId string for polling the result, a status field (initially 'pending'), and a success boolean indicating the job was accepted. The agent must poll a separate endpoint using the jobId to retrieve the final edited image.","failureModes":["Payment of $10 USDC not provided or rejected — request fails with payment required error","Invalid or inaccessible source image URL — job fails during processing","Unsupported image format or resolution — processing error returned","Prompt violates content policy — generation refused","Service overload or queue timeout — job stuck in pending state","Invalid request body schema — 400 error before job creation"],"whenToPreferThis":"Choose this endpoint when you need high-quality AI-powered image editing using the Flux 2 Max model on a pay-per-call basis with no subscription commitment. Prefer it over subscription-based services for infrequent or burst editing needs, or when you specifically need Flux 2 Max quality (the highest tier Flux model). Use the sibling generate endpoint for text-to-image instead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:46:31.580Z","isFirstParty":false}