{"uid":"cap_rXa6GqVZcPtLa5uu5RSbV","slug":"stablestudio-nano-banana-image-generation-724d2a56","name":"StableStudio Nano-Banana Image Generation","description":"Pay-per-generation AI image and video creation. No subscriptions ever.","url":"https://stablestudio.io/api/generate/nano-banana/generate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"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-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_Jx8wVByUWT7R6KVnPafFD","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 single AI image from a text prompt with configurable resolution, aspect ratio, format, and quality, returning an async job ID","exampleAgentPrompt":"Generate a photorealistic image of a misty Japanese forest at dawn on StableStudio — use a 16:9 aspect ratio, 2 MP resolution, PNG format, quality 90, and keep the safety setting at the default level.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a jobId, job status (e.g. 'pending'), success flag, and job type — the agent must poll a separate endpoint with the jobId to retrieve the finished image URL once generation completes.","failureModes":["Prompt too short or empty — 400 validation error","Resolution or aspect_ratio value not in allowed enum — 400 validation error","Safety tolerance outside 1–5 range — 400 validation error","Payment of $10 USDC not provided or declined — 402 Payment Required","Model backend timeout or overload — 5xx error","Job created but generation fails asynchronously — job status returns error state on poll"],"whenToPreferThis":"Choose this endpoint when you need pay-per-use AI image generation without a subscription, want fine-grained control over resolution (up to 4 MP), aspect ratio, format, and safety strictness, and are comfortable with an async job-based response pattern. Prefer this over subscription-based services when cost predictability per generation matters or when integrating into an x402 crypto-payment workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:46:31.581Z","isFirstParty":false}