Connect Banana AI via MCP
Generate and edit images with Nano Banana—plus video and music models—directly from ChatGPT, Claude, Cursor, Codex, or Claude Code using your Banana AI credits.
Browser authorization is not enabled on this site yet.
ChatGPT
In ChatGPT's app settings, enable developer mode if available and create an app using the URL below. Sign in to Banana AI in your browser and approve access.
https://bananaaigen.com/api/mcpCheck the connection first
Call get_balance and list_models on Banana AI so I can see my credits and available models. Do not start a generation.
See what one chat prompt produces
Copy any prompt below into your connected AI client. It quotes the exact credit cost first and only generates after you confirm.
Built around your Banana AI account
Your AI client signs in through your browser, checks exact credit costs upfront, and draws from the same balance you already use on bananaaigen.com.
OAuth 2.1 / PKCESign in through your browser
Approve access on bananaaigen.com with OAuth 2.1 (PKCE). Your password and API keys stay out of the chat.
quote_generationCheck the credit price before generating
Run quote_generation with your model, size, or duration to see the exact credit cost before spending anything.
get_taskPoll progress and download outputs
Generation runs asynchronously. Your AI polls get_task with the taskId and returns direct image, video, or audio URLs.
list_modelsList models and required inputs
List active image, video, and music models, or pass a modelId to inspect its exact parameters and reference-image slots.
get_balanceShared website credit balance
Paid tasks use the exact same credit balance as bananaaigen.com. Listing models, checking balance, and quoting cost 0 credits.
submit_generationIdempotent retries and auto-refunds
Every task carries a UUID v4 requestId so network retries never bill twice. Tasks that end as failed or canceled return reserved credits automatically.
Questions before you connect
Straight answers on OAuth sign-in, supported models, credit quotes, async results, refunds, and access control.
How do I connect ChatGPT, Claude, Cursor, Codex, or Claude Code without an API key?
Pick your client in the console above, copy the MCP URL (https://bananaaigen.com/api/mcp) or terminal command, and paste it into your client. Your browser opens so you can sign in to Banana AI and approve OAuth 2.1 (PKCE) access—no password or API key ever goes into the chat.
What can I generate through MCP, and how do I check available models and reference-image parameters?
MCP exposes Banana AI’s live model catalog: image generation and reference-image editing (Nano Banana, Nano Banana 2, Nano Banana Pro, Nano Banana Edit, GPT Image 2, Seedream 5.0 Lite), video generation (Veo 3.1, Kling 3.0, Seedance 2.0, Grok Imagine Video, Gemini Omni), and music generation (Suno V6). Ask your AI to run list_models to see the full catalog, or pass a specific modelId to inspect its parameters and reference input fields.
How do I check the credit quote before spending credits, and which balance is charged?
Ask your AI to call quote_generation with your model and options before submitting. Calling list_models, get_balance, and quote_generation is free. When you approve a generation, credits are deducted from the same Banana AI website balance you top up or subscribe to on bananaaigen.com.
Is generation asynchronous, how long does it take, and how do I get the finished files?
Yes. submit_generation queues the job and returns a taskId right away. Images usually finish in seconds, while video and music take longer depending on the model and queue. Your AI polls get_task with that taskId until done and hands back the finished media URLs.
Are reserved credits refunded if a generation fails, is canceled, or times out?
Yes for failed or canceled tasks. Credits are reserved on submit, and once a task is synced via get_task as failed or canceled (including upstream generation timeouts marked failed), the reserved credits return automatically to the same Banana AI account. If an interrupted submission stays unconfirmed past the 24-hour recovery window, contact support to reconcile it.
Will a network retry or duplicate AI call charge me twice?
No. Every submit_generation call requires a UUID v4 requestId. If a network drop makes your client retry with the same requestId and identical inputs, Banana AI returns the original task without billing twice. Reusing the same requestId with changed inputs is rejected to prevent accidental charges.
How do I see which AI clients are connected, and can I disconnect just one?
Sign in to Banana AI and open /mcp. The Connected clients list shows every authorized OAuth client. Click Revoke access beside any single client to cut off its access immediately without affecting your other clients.
What if my client or local script does not support OAuth sign-in?
Open "Advanced: personal API key for CLI or scripts" at the bottom of the console to copy the JSON config with an Authorization: Bearer YOUR_API_KEY header. When personal API keys are enabled on the site, create one in Settings → API Keys, keep it local, and delete it anytime in Settings to disconnect.
Why can’t I find the custom MCP option in ChatGPT or Claude?
Custom remote MCP connectors depend on each platform’s plan and settings. In ChatGPT, turn on Developer Mode under App settings (availability depends on your plan or workspace); in Claude, look under Settings → Connectors on supported paid plans; Grok also depends on workspace permissions. Claude Code, Codex, Gemini CLI, and Cursor can connect right away.



