{"uid":"cap_htQQMyRdtZWB8jm3Mm7oY","slug":"stablestudio-nano-banana-image-edit-generation-06a255e6","name":"StableStudio Nano-Banana Image Edit Generation","description":"Pay-per-generation AI image and video creation. No subscriptions ever.","url":"https://stablestudio.io/api/generate/nano-banana/edit","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"images":{"type":"array","items":{"type":"string","format":"uri","description":"URL of an image"},"maxItems":14,"minItems":1,"description":"Array of image URLs to use as reference for editing (1-14 images)"},"prompt":{"type":"string","minLength":1,"description":"A detailed description of the image you want to generate"},"imageSize":{"enum":["512","1K","2K","4K"],"type":"string","default":"1K","description":"The resolution of the generated image"},"aspectRatio":{"enum":["1:1","1:4","1:8","2:3","3:2","3:4","4:1","4:3","4:5","5:4","8:1","9:16","16:9","21:9"],"type":"string","default":"1:1","description":"The aspect ratio of the generated image"},"thinkingLevel":{"enum":["minimal","high"],"type":"string","default":"minimal","description":"Thinking level for reasoning (minimal = fastest, high = best quality)"}}},"responseSchema":{"type":"json","example":{"type":"nano-banana-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_Kwz0Bqqk8Nw1iL4UvRH3U","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 an AI-edited image asynchronously via a pay-per-call model, returning a job ID to poll for the result","exampleAgentPrompt":"Generate an AI image of a futuristic cityscape at sunset with tall glass towers and flying cars, in 16:9 aspect ratio at 4 MP resolution in PNG format — enhance the prompt for more creative results.","exampleUseCases":null,"resultDescription":"A JSON object containing the generation job ID, job type (nano-banana-edit), current status (e.g. 'pending'), and a success boolean. The agent must use the job ID to poll a separate status endpoint to retrieve the final image URL once processing is complete.","failureModes":["Invalid or empty prompt returns validation error","Resolution or aspect_ratio value not in allowed enum causes 400 error","Safety tolerance out of range (below 1 or above 5) causes rejection","Payment of $10 USDC not provided or insufficient causes 402 Payment Required","Job creation may succeed but image generation may fail asynchronously — must check job status","Rate limits or service unavailability may return 5xx errors"],"whenToPreferThis":"Choose this endpoint when you need a one-off, pay-per-call AI image generation without committing to a subscription, especially when fine-grained control over resolution (up to 4 MP), aspect ratio, format, and safety tolerance is needed. Prefer this over subscription-based services for sporadic or low-volume image generation tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:07:04.177Z","isFirstParty":false}