How to Use Nano Banana Pro in VS Code
Use Nano Banana Pro to create images and refine existing artwork, including diagrams and localized designs. It is the generally available Gemini 3 Pro Image release; Nano Banana Pro Text to Image and Nano Banana Pro Edit use the preview model.
Prompts to try with Nano Banana Pro in VS Code
Copy an example into VS Code, or ask in your own words.
Use Nano Banana Pro to create a 4K event poster from the approved copy in content/event.md. Put the event name above the date and location, with generous space around each line.
Generate a product photo with Nano Banana Pro: a matte black water bottle on wet slate, soft morning light, 1:1. Tell me the price first. Save the result in ./assets.
Make four logo concepts for a coffee brand called "Northline" with Nano Banana Pro.
Create a 16:9 hero image of a quiet mountain cabin at dusk with Nano Banana Pro.
Generate a 9:16 poster with Nano Banana Pro for a jazz night called "Blue Hour", deep navy and brass tones.
How to set up Nano Banana Pro in VS Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
Use Add to VS Code on the console's Agents & MCP page, or run:
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}' - Sign in
VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.
Use the Spiral skill
- Send VS Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Nano Banana Pro
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "gemini", "model": "gemini-3-pro-image", "input": { "contents": [ {} ] } }'
Then paste one of the prompts above: VS Code finds Nano Banana Pro on Spiral, shows the price and runs it.
Nano Banana Pro providers and prices
Spiral runs Nano Banana Pro through Gemini, Vertex AI, and fal. Open a card for today's price, with every fee included. Name one in your prompt, or let VS Code pick.
$0.175 per 1K or 2K image ($0.312 at 4K). Prompt: $2.60 per 1M tokens. Reasoning: $15.60 per 1M tokens. Google Search: $0.0182 per query.
$0.175 per 1K or 2K image ($0.312 at 4K). Prompt: $2.60 per 1M tokens ($0.26 cached). Reasoning: $15.60 per 1M tokens. Google Search: $0.0182 per query.
$0.195 per image at 1K or 2K ($0.39 at 4K). Web search: $0.0195 per request.
What can you do with Nano Banana Pro in VS Code?
Turn project briefs and documentation into posters, diagrams, and visual concepts with Nano Banana Pro. A coding agent can gather the relevant project context and prepare a specific image brief with approved text.
Event posters from a brief
Create a poster with a short event name, date, and location. Specify where each line belongs, then inspect the rendered lettering.
Labeled educational diagrams
Turn an approved explanation into a diagram with a small set of large labels. Check the positions of arrows and labels against the source explanation.
Localized campaign concepts
Create a graphic using approved Spanish, Japanese, or Korean copy. Keep the wording short enough to inspect letter by letter.
Film and ad storyboards
Translate a written scene into a storyboard showing an establishing shot, medium shot, close-up, and point-of-view shot.
Product photo revisions
Start with a product photo and describe a specific change to its setting or composition. Compare the result with the original before using it.
Translation inside existing artwork
Start with an existing poster or package design and replace its wording with approved translated copy. Review the result for lettering and layout changes.
Sketches developed into product mockups
Use a product sketch as the starting image and describe the materials, finish, and presentation needed for a visual concept.
Revisions to diagrams and posters
Start with an existing graphic and request a focused change, such as replacing a heading or moving a label. Check spelling and placement after the edit.
Nano Banana Pro success rate and speed on Spiral
Success and speed over the last 24 hours, across every run of these tools on Spiral.
| Tool | Success | Median time | Runs |
|---|---|---|---|
| Nano Banana Pro | 27.6% | 26.0s | 127 |
| Nano Banana Pro | 80.3% | 26.1s | 640 |
| Nano Banana Pro · Text to Image | Not enough runs | ||
More on Nano Banana Pro and VS Code
Overview
Nano Banana Pro in other agents
Questions about Nano Banana Pro in VS Code
Can VS Code use Nano Banana Pro?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Nano Banana Pro like any built-in tool.
How much does Nano Banana Pro cost in VS Code?
$0.175 per 1K or 2K image ($0.312 at 4K). Prompt: $2.60 per 1M tokens. Reasoning: $15.60 per 1M tokens. Google Search: $0.0182 per query. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.
Do I need a Gemini account to use Nano Banana Pro in VS Code?
No. Spiral runs Nano Banana Pro on its own Gemini account. You sign in to Spiral once and never paste a key.
How long does it take to set up Nano Banana Pro in VS Code?
About two minutes: add the hosted server, then sign in.
Which provider runs Nano Banana Pro?
Spiral offers Nano Banana Pro through Gemini and Vertex AI. Name one in your prompt, or let VS Code pick.
Does VS Code wait while Nano Banana Pro runs?
Nano Banana Pro runs in the background. VS Code starts the run, checks on it and gives you the image when it's ready.
What is Nano Banana Pro good at?
Posters with readable headlines, labeled diagrams, product mockups, and multilingual graphics are useful starting points. Give it a concrete brief with the exact wording and layout you want.
How large can Nano Banana Pro images be?
Nano Banana Pro supports 1K, 2K, and 4K output. Choose the output size deliberately rather than asking for a vague description such as high resolution.
Can Nano Banana Pro write text inside an image?
Yes, including text for posters and diagrams. Small lettering and long paragraphs remain weak spots, so keep essential copy short and inspect it before use.
Can Nano Banana Pro make graphics in different languages?
Yes, it can generate localized text and translate text inside images. Supply the approved wording when exact phrasing matters.
How should I write a Nano Banana Pro prompt?
Write a complete description of the scene instead of a string of keywords. Include the subject, intended use, composition, lighting, and exact text so the brief leaves fewer decisions unspecified.
Start using Nano Banana Pro in VS Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into VS Code:
set up https://spiral.ai/SKILL.md


