{"uid":"cap_Nwj_LV0iydj00Aq-bq2Dn","slug":"stablestudio-generate-5b22077e","name":"StableStudio Nano Banana Image Generation","description":"Pay-per-generation AI image and video creation. No subscriptions ever.","url":"https://stablestudio.dev/api/generate/nano-banana/generate?utm_source=zero.xyz","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":["image","video","generation","nano-banana","gpt-image","grok","flux","sora","veo","seedance","wan","ai","media","x402"],"displayCostAmount":"10","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.58","successRate":"0.00","reviews":1,"stars":"3.3","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$10/call","primary":{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"10","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"10","per":"call","confidence":"exact"},{"kind":"static","protocol":"x402","network":"base","amountUsd":"10","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Uza3z9gjenGkd9bzwc7tC","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"10","costPer":"request","priority":0,"asset":"0x20c000000000000000000000b9537d11c60e8b50","unit":"request","depositMicros":null,"planRef":null},{"uid":"pm_gQpDx5WuQrbI2UFmL9JI7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"10","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"StableStudio","brandSlug":"stablestudio","brandBaseUrl":"https://stablestudio.dev","brandDocsUrl":"https://stablestudio.dev","whatItDoes":"Generates images using the Nano Banana AI model via an async job, supporting multiple resolutions and aspect ratios","exampleAgentPrompt":"Generate an image of a futuristic neon-lit Tokyo street at night with rain reflections using Nano Banana at 2K resolution in 16:9 aspect ratio, using high thinking level for best quality.","exampleUseCases":null,"resultDescription":"Returns a JSON object confirming the job was accepted, including a jobId string, status of 'pending', the type of job, and a success boolean. The agent must poll a separate endpoint using the jobId to retrieve the completed image.","failureModes":["Missing or empty prompt returns a validation error","Invalid imageSize or aspectRatio enum value causes a 400 error","Payment of $10 USDC not provided or insufficient funds causes a 402 error","Service unavailable or model overloaded returns a 503 or timeout","jobId returned but image generation fails asynchronously — must check job status endpoint"],"whenToPreferThis":"Choose this endpoint when you need to generate a new image using the Nano Banana model specifically, especially when cost-efficiency or Nano Banana's particular aesthetic style is desired. Prefer this over GPT Image or Flux endpoints when the user explicitly requests Nano Banana or when testing async image generation workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":5,"lastUsedAt":"2026-04-16T15:44:22.259Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:32:46.021Z","isFirstParty":false,"canonicalSlug":"stablestudio-generate-5b22077e"}