How to Use GPT-5.4 Nano in VS Code
Use GPT-5.4 Nano for classification, extraction, ranking, and small coding tasks. Give it a narrow assignment, a fixed output format, and explicit rules for uncertain cases.
Prompts to try with GPT-5.4 Nano in VS Code
Copy an example into VS Code, or ask in your own words.
Use GPT-5.4 Nano to find where this project validates email addresses. Return up to five file paths, the relevant symbols, and one supporting excerpt per match; report no match if none exists.
Use GPT-5.4 Nano to classify the current test failures as assertion, timeout, dependency, configuration, or unknown. Return a short JSON array with the test name, category, and supporting error text.
Use GPT-5.4 Nano to inspect the pagination function and fix only an off-by-one error if present. Add a focused boundary test and report the change and test result.
Use GPT-5.4 Nano to extract the public routes from this project's route definitions. Return method, path, and handler as short JSON; use null for anything the definitions do not state.
Use GPT-5.4 Nano with no extra reasoning to rank up to five existing tests by relevance to the current diff. Return test paths and one sentence of evidence for each ranking.
How to set up GPT-5.4 Nano 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 GPT-5.4 Nano
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": "openai", "model": "openai/gpt-5.4-nano", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: VS Code finds GPT-5.4 Nano on Spiral, shows the price and runs it.
GPT-5.4 Nano providers and prices
Spiral runs GPT-5.4 Nano through OpenAI. Open a card for today's price, with every fee included.
Up to $0.006666 per run at the default inputs. $0.26 per 1M input tokens, $0.026 per 1M cached input tokens, $1.625 per 1M output tokens.
Settings you can ask for
Ask VS Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Seed | a whole number | ||
| Top p | a number up to 1 | Taken only at reasoning effort "none", this model's default. | |
| Logprobs | on or off | Taken only at reasoning effort "none", this model's default. | |
| Max tokens | 16 to 128000 | The most output tokens to generate. | |
| Temperature | 0 to 2 | Taken only at reasoning effort "none", this model's default. | |
| Top logprobs | 0 to 20 | Taken only at reasoning effort "none", this model's default. | |
| Presence penalty | -2 to 2 | Taken only at reasoning effort "none", this model's default. | |
| Reasoning effort | none, low, medium, high, or xhigh | none | How much the model reasons. |
| Frequency penalty | -2 to 2 | Taken only at reasoning effort "none", this model's default. | |
| Parallel tool calls | on or off |
Every API field of GPT-5.4 Nano is on its tool page: open its card above.
What can you do with GPT-5.4 Nano in VS Code?
Find relevant code, categorize failures, and make small corrections with GPT-5.4 Nano. Define one assignment at a time and request concrete evidence or a focused test.
Support request routing
Have GPT-5.4 Nano label requests as billing, technical, account, or other. Define each category and send unclear requests for review.
Order detail extraction
Extract order numbers, product names, and requested actions from customer messages with GPT-5.4 Nano. Return null for missing details.
Search result ranking
Use GPT-5.4 Nano to rank supplied passages against a question. Return passage IDs and short evidence-based reasons.
Customer feedback tagging
Assign predefined topic and sentiment labels to feedback with GPT-5.4 Nano. Include examples of mixed feedback to clarify the rules.
Codebase navigation
Ask GPT-5.4 Nano to find the functions and files associated with one feature. Request paths, symbols, and supporting excerpts.
Targeted code edits
Give GPT-5.4 Nano one small correction, such as fixing a boundary condition. Specify the expected behavior and request a focused test.
Failure categorization
Classify supplied error messages with GPT-5.4 Nano using a fixed taxonomy. Keep unknown failures in a separate review category.
Structured meeting actions
Use GPT-5.4 Nano to extract explicitly stated actions, owners, and deadlines from meeting text. Leave unstated owners and dates empty.
More on GPT-5.4 Nano and VS Code
Overview
GPT-5.4 Nano in other agents
More VS Code guides
Questions about GPT-5.4 Nano in VS Code
Can VS Code use GPT-5.4 Nano?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run GPT-5.4 Nano like any built-in tool.
How much does GPT-5.4 Nano cost in VS Code?
Up to $0.006666 per run at the default inputs. $0.26 per 1M input tokens, $0.026 per 1M cached input tokens, $1.625 per 1M output tokens. 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 an OpenAI account to use GPT-5.4 Nano in VS Code?
No. Spiral runs GPT-5.4 Nano on its own OpenAI account. You sign in to Spiral once and never paste a key.
How long does it take to set up GPT-5.4 Nano in VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while GPT-5.4 Nano runs?
GPT-5.4 Nano runs in the background. VS Code starts the run, checks on it and gives you the text, json when it's ready.
What is GPT-5.4 Nano best for?
Classification, data extraction, ranking, and small coding assignments. Good starting points include labeling support requests, extracting order details, and ranking supplied search results.
Where does GPT-5.4 Nano need more help?
OpenAI recommends sending ambiguous or planning-heavy work to a stronger model. Keep assignments narrow and define what should happen when the evidence is missing or unclear.
How much text can GPT-5.4 Nano handle?
The context window is 400,000 tokens, with a maximum input of 272,000 tokens and maximum output of 128,000 tokens. These are token limits, so avoid treating them as fixed word or page counts.
How should I prompt GPT-5.4 Nano?
State one task, define the allowed answers, and specify how to handle uncertain cases. Prefer fixed labels, short JSON, or a template; include examples when the labeling rules need clarification.
Should I increase reasoning effort for every task?
Start with the default of no extra reasoning for simple labeling or extraction, then compare results on difficult examples before increasing it. Lower effort favors speed, and reasoning tokens share the generated-token budget with the visible answer.
Start using GPT-5.4 Nano 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


