{"uid":"cap_666hur4rScFsyzH-ldZ0R","slug":"x402-dopamint-ai-7b349c4f","name":"x402.dopamint.ai Nano-Banana Image Generation","description":"Generate image using nano-banana","url":"https://x402.dopamint.ai/api/ai/generations/images/nano-banana","method":"POST","headers":{},"bodySchema":{"type":"object","required":["prompt"],"properties":{"seed":{"type":"integer","description":"The same seed and the same prompt given to the same version of the model will output the same image every time.\n        "},"prompt":{"type":"string","description":"The text prompt to generate an image from."},"sync_mode":{"type":"boolean","description":"If set to true, the function will wait for the image to be generated and uploaded before returning the response. This will increase the latency of the function but it allows you to get the image directly in the response without going through the CDN.\n        "},"num_images":{"type":"integer","description":"The number of images to generate."},"aspect_ratio":{"type":"\"21:9\" | \"16:9\" | \"3:2\" | \"4:3\" | \"5:4\" | \"1:1\" | \"4:5\" | \"3:4\" | \"2:3\" | \"9:16\"","description":"The aspect ratio of the generated image."},"output_format":{"type":"\"jpeg\" | \"png\" | \"webp\"","description":"The format of the generated image."},"limit_generations":{"type":"boolean","description":"Experimental parameter to limit the number of generations from each round of prompting to 1. Set to `True` to to disregard any instructions in the prompt regarding the number of images to generate."}}},"responseSchema":{"jobId":{"type":"string","description":"Unique job identifier"},"message":{"type":"string","description":"Human-readable message with status tracking URL"},"statusUrl":{"type":"string","description":"URL to check job status"},"timestamp":{"type":"string","description":"ISO 8601 timestamp of the response"},"statusCode":{"type":"integer","description":"HTTP status code"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0527","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"unknown","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0527/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0527","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0527","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_I8DXqbKp90wlnnIrwDi5y","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0527","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates images from a text prompt using the nano-banana model, returning a job ID and status URL for async polling","exampleAgentPrompt":"Generate an image of a futuristic cyberpunk cityscape at night with neon lights reflecting on wet streets, in 16:9 aspect ratio, PNG format, using seed 42.","exampleUseCases":[{"title":"Quick product mockup for ecommerce","prompt":"Generate an image of a sleek wireless earbuds product on a minimalist white background, 1:1 aspect ratio, JPEG format so I can use it as a thumbnail."},{"title":"Social media graphics batch creation","prompt":"Create an image of a cozy coffee shop interior with warm lighting and people working on laptops, 16:9 aspect ratio, PNG format, using seed 123 so I can regenerate it later with variations."},{"title":"Concept art for creative projects","prompt":"Make an image of an underwater bioluminescent forest with glowing plants and creatures, high quality, 4:3 aspect ratio, PNG format, and use seed 999 so the output stays consistent across requests."}],"resultDescription":"Returns a JSON object with a unique jobId, a human-readable message containing a status tracking URL, the statusUrl for polling job completion, an ISO 8601 timestamp, and an HTTP status code. The image itself is retrieved asynchronously via the statusUrl once the job completes.","failureModes":["Missing required 'prompt' field returns a 400 validation error","Payment not completed via x402 protocol results in 402 Payment Required","Invalid aspect_ratio enum value causes a 422 Unprocessable Entity error","Invalid output_format value causes a 422 error","Job processing failure may result in an error status when polling the statusUrl","Network timeout if sync_mode is true and generation takes too long","Rate limiting or quota exceeded may return 429 Too Many Requests"],"whenToPreferThis":"Choose this endpoint when you specifically want to use the nano-banana model for image generation via dopamint.ai's x402 micropayment API. Prefer it for low-cost per-call image generation billed in USDC without subscription overhead. Useful when you need async job-based image generation with polling, or when you want reproducible outputs via seed control.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:33:18.843Z","isFirstParty":false}