How to Use Nano Banana Edit in VS Code
Use Nano Banana Edit to change backgrounds, restyle photos, or place a familiar subject in a new scene. It edits existing images with the original model's roughly 1K output, below Pro's resolution range.
Prompts to try with Nano Banana Edit in VS Code
Copy an example into VS Code, or ask in your own words.
Use Nano Banana Edit with the product photo in the project's assets. Replace the background with a softly lit workshop while preserving the product's shape, color, markings, and camera angle; make the image square.
Use Nano Banana Edit with the project's layout sketch and product photo. Follow the sketch for placement and the photo for product appearance, producing a 2K visual mockup with space for the page's HTML headline.
Use Nano Banana Edit to adapt the project's campaign artwork using its approved Spanish translation. Preserve the composition and product, replace only the wording, request 2K output, and flag any spelling differences.
Remove the background from the photo I attach with Nano Banana Edit and give me a transparent PNG. Save the result in ./assets.
Use Nano Banana Edit to clean up these product shots so they sit on pure white.
How to set up Nano Banana Edit 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 Edit
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": "fal", "model": "fal-ai/nano-banana/edit", "input": { "prompt": "make a photo of the man driving the car down the california coastline", "image_urls": [ "<image_urls>" ] } }'
Then paste one of the prompts above: VS Code finds Nano Banana Edit on Spiral, shows the price and runs it.
Nano Banana Edit providers and prices
Spiral runs Nano Banana Edit through fal. Open a card for today's price, with every fee included.
Settings you can ask for
Nano Banana Edit works from your prompt and image URLs. Ask VS Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Number of images | 1 to 4 | 1 | The number of images to generate. |
| Seed | a whole number | The seed for the random number generator. | |
| Aspect ratio | auto, 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5 and 3 more | auto | The aspect ratio of the generated image. |
| Output format | jpeg, png, or webp | png | The format of the generated image. |
| Safety tolerance | 1 to 6 | 4 | The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict. |
| Limit generations | on or off | on | Experimental parameter to limit the number of generations from each round of prompting to 1. Set to |
Every API field of Nano Banana · Image Editing is on its tool page: open its card above.
What can you do with Nano Banana Edit in VS Code?
Create illustrations and visual mockups that fit the project you are building. Use project assets as references, then inspect the results for text errors and unwanted changes.
Product scenes from reference photos
Place an existing product into different settings while asking to preserve its shape, color, and identifying details. Compare each result with the original photo.
Posters with exact wording
Use Pro for artwork that includes a headline or short message. Supply the wording in quotes and describe its position and typography.
Localized campaign artwork
Use Pro Edit to replace text in an existing design with approved translations. Ask to preserve the product, layout, and background.
Sketches turned into mockups
Give Pro Edit a layout sketch and a product reference to create a visual mockup. Assign a specific role to each reference.
Explanatory diagrams
Turn supplied notes into a labeled visual with Pro. Review the relationships and labels against the notes before sharing it.
Photo restyling
Use the editing models to reinterpret a photo as an illustration or change its setting. State which subject details should remain recognizable.
More on Nano Banana Edit and VS Code
Overview
Nano Banana Edit in other agents
Questions about Nano Banana Edit in VS Code
Can VS Code use Nano Banana Edit?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Nano Banana Edit like any built-in tool.
How much does Nano Banana Edit cost in VS Code?
$0.05174 per image. Billed on `num_images`, default 1. 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 fal account to use Nano Banana Edit in VS Code?
No. Spiral runs Nano Banana Edit on its own fal account. You sign in to Spiral once and never paste a key.
How long does it take to set up Nano Banana Edit in VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while Nano Banana Edit runs?
Nano Banana Edit runs in the background. VS Code starts the run, checks on it and gives you the image when it's ready.
When should I choose Nano Banana Pro?
Choose Pro for text-heavy artwork, detailed compositions, or output above the original model's roughly 1K range. It supports native generation from 1K to 4K.
Can Nano Banana keep the same person or product across images?
Maintaining a subject's appearance across edits is a core strength. Use a clear reference and check each result, because consistency is not guaranteed.
Can it create readable text in other languages?
Pro can generate multilingual text and translate existing artwork. Provide the exact translated wording when it matters, then check the rendered spelling before using the image.
How many reference images should I use?
Google says the original works best with up to three input images. Pro supports up to 14 references, but each reference should have a clear purpose, such as the subject, layout, or background.
Can I trust the facts in a generated infographic?
Check every label, number, and relationship against your source material. Pro can misinterpret information or produce incorrect facts even when the graphic looks convincing.
Start using Nano Banana Edit 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


