{"uid":"cap_NfbFgXWIM_B7rGzj6rhAo","slug":"stablestudio-gpt-image-2-edit-9751ba24","name":"StableStudio GPT-Image-2 Edit","description":"Pay-per-generation AI image and video creation. No subscriptions ever.","url":"https://stablestudio.dev/api/generate/gpt-image-2/edit","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"size":{"enum":["1024x1024","1536x1024","1024x1536","auto"],"type":"string","description":"Image dimensions (square, landscape, portrait, or auto)"},"images":{"type":"array","items":{"type":"string","format":"uri","description":"Image URL"},"minItems":1,"description":"Array of image URLs to edit"},"prompt":{"type":"string","minLength":1,"description":"A detailed description of the image you want to generate"},"quality":{"enum":["low","medium","high"],"type":"string","default":"high","description":"Output quality level (affects cost and detail)"},"background":{"enum":["opaque","auto"],"type":"string","default":"auto","description":"Background fill behavior for generated image output"},"moderation":{"enum":["low","auto"],"type":"string","default":"low","description":"Content moderation strictness"},"output_format":{"enum":["png","jpeg","webp"],"type":"string","default":"png","description":"Output image format"},"output_compression":{"type":"number","default":0,"maximum":100,"minimum":0,"description":"Compression level (0-100, higher = smaller file)"}}},"responseSchema":{"type":"json","example":{"type":"gpt-image-2-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_Cv3qO8tRu6tWShLqV4ttD","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 GPT-Image-2 model, returning a job ID for the asynchronous result, billed per generation with no subscription.","exampleAgentPrompt":"Edit this image of my product shot so the background becomes a cozy café interior — use GPT-Image-2 on StableStudio and charge the $10 per-generation fee.","exampleUseCases":null,"resultDescription":"A JSON object containing the generation type ('gpt-image-2-edit'), a unique jobId string for polling the result, a status field (initially 'pending'), and a success boolean confirming the job was accepted.","failureModes":["Insufficient USDC balance causes payment failure and job not created","Invalid or missing source image returns an error","Malformed edit prompt results in rejection","Job ID returned but generation fails asynchronously — status never moves from pending","Rate limiting or quota errors from underlying GPT-Image-2 API","Unsupported image format or resolution rejected at intake"],"whenToPreferThis":"Choose this endpoint when you need to edit or modify an existing image using OpenAI's GPT-Image-2 model on a pay-per-call basis with no subscription commitment, especially when you want asynchronous job-based processing and are paying via USDC crypto on the x402 protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:45:13.051Z","isFirstParty":false}