{"uid":"cap_NLz2g6nhzTUhVAPFoAeGY","slug":"stablestudio-nano-banana-pro-image-generation-aab11cb5","name":"StableStudio Nano-Banana-Pro Image Generation","description":"Pay-per-generation AI image and video creation. No subscriptions ever.","url":"https://stablestudio.io/api/generate/nano-banana-pro/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":["1K","2K","4K"],"type":"string","default":"1K","description":"The resolution of the generated image"},"aspectRatio":{"enum":["1:1","2:3","3:2","3:4","4:3","4:5","5:4","9:16","16:9","21:9"],"type":"string","default":"1:1","description":"The aspect ratio of the generated image"}}},"responseSchema":{"type":"json","example":{"type":"nano-banana-pro-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_5Pa2objDjx9N70IAVWaZ7","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 using the nano-banana-pro model, returning a job ID for async retrieval","exampleAgentPrompt":"Generate a photorealistic 16:9 image of a misty mountain lake at sunrise with pine trees reflected in the water — use 4 MP resolution, PNG format, quality 95, and safety level 2.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a jobId string, a status field (initially 'pending'), a type identifier ('nano-banana-pro-generate'), and a success boolean. The agent must use the jobId to poll a separate endpoint for the completed image.","failureModes":["Invalid or empty prompt returns a 400 validation error","Resolution or aspect_ratio value outside enum causes schema validation failure","Safety tolerance value outside 1-5 range causes a 400 error","Payment of $10 USDC not provided or rejected causes a 402 payment required error","Model backend unavailable may return 503 or a failed job status on polling","Output quality outside 0-100 range causes validation failure"],"whenToPreferThis":"Choose this endpoint when you need pay-per-use AI image generation with no subscription commitment, specifically when using the nano-banana-pro model via StableStudio. Prefer this over subscription-based services when generating images infrequently or when per-call USDC micropayment billing is acceptable. Best for agents that need fine-grained control over resolution (up to 4 MP), aspect ratio, output format, and seed reproducibility.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:45:03.677Z","isFirstParty":false}