[Integrations](https://spiral.ai/integrations) › [Google Antigravity](https://spiral.ai/integrations/antigravity) › [Nex-N2.5-Pro](https://spiral.ai/integrations/antigravity/nex-n2-5-pro)

# How to Use Nex-N2.5-Pro in Google Antigravity

Nex-N2.5-Pro suits complex coding and tasks that require repeated testing and correction. It targets advanced software engineering, while Nex-N2.5-Mini targets fast instruction following and tool execution.

|  |  |
| --- | --- |
| Model | Nex-N2.5-Pro |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.001336 per run at the default inputs. $0.0975 per 1M input tokens, $0.325 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Nex-N2.5-Pro in Google Antigravity

- Use Nex-N2.5-Pro with high reasoning effort to reproduce the failing test in this repository, fix its cause, and rerun it. Report the evidence.
- Use Nex-N2.5-Pro to trace the checkout flow across this project's files. Fix duplicate submissions and verify the behavior in the browser.
- Use Nex-N2.5-Pro with adaptive thinking to investigate this project's build failure. Run the failing command again after your fix.
- Use Nex-N2.5-Pro to implement keyboard navigation for this project's dialog. Test opening, focus movement, Escape, and focus restoration.
- Use Nex-N2.5-Pro to investigate the reported pagination bug. Before each retry, state what new evidence changed your approach.

## How to set up Nex-N2.5-Pro in Google Antigravity

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Open the MCP config**: * Antigravity App: click Customizations, then Installed. In the MCP Servers section, click Copy Config File Path and open that file. * Antigravity IDE: click … at the top of the agent side panel, select MCP Servers, then Manage MCP Servers › View raw config. * Antigravity CLI: edit `~/.gemini/config/mcp_config.json`.

2. **Add the server**: Add Spiral under `mcpServers`:

```json
{
  "mcpServers": {
    "spiral": {
      "serverUrl": "https://api.spiral.ai/mcp"
    }
  }
}
```

3. **Sign in**: In the Antigravity App, open Customizations › Installed. Under MCP Servers, click Authenticate next to Spiral. Sign in to Spiral, pick the organization and click Authorize. Copy the authorization code the browser shows, paste it into Enter authorization code and click Submit. No API key.

### Use the Spiral skill

1. **Send Google Antigravity this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Nex-N2.5-Pro**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "openrouter",
    "model": "nex-agi/nex-n2.5-pro",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Google Antigravity finds Nex-N2.5-Pro on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/antigravity

## Nex-N2.5-Pro tools and prices

- [Nex AGI: Nex-N2.5-Pro](https://spiral.ai/tools/openrouter/nex-agi/nex-n2.5-pro) (OpenRouter): Up to $0.001336 per run at the default inputs. $0.0975 per 1M input tokens, $0.325 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| tools |  | — |  |
| top_k | 0 to … | — |  |
| top_p | 0 to 1 | — |  |
| logprobs |  | — |  |
| reasoning |  | — | Reasoning effort; reasoning tokens count toward max_tokens. |
| max_tokens | 1 to 235929 | — | The most output tokens to generate. |

## What can you do with Nex-N2.5-Pro in Google Antigravity?

Turn a repository issue into an implemented and tested change with Nex-N2.5-Pro. Give it a reproduction and acceptance criteria so it can check the result.

### Fix bugs across several files

Trace a failure through the application, patch the affected code, and rerun the reproduction.

### Verify a frontend change

Implement a requested interaction, exercise it in the browser, and correct observed failures.

### Run browser regression checks

Follow a concrete checklist and report failing steps with expected and observed behavior.

### Investigate terminal failures

Inspect command output, identify the cause, apply a fix, and repeat the failing command.

### Research a technical question

Compare primary sources, resolve conflicting claims, and produce a brief with supporting links.

### Check a scientific calculation

Translate assumptions into a calculation, execute it, and investigate inconsistent results.

## Overview

- [OpenRouter](https://spiral.ai/providers/openrouter)
- [All Google Antigravity guides](https://spiral.ai/integrations/antigravity)

## Nex-N2.5-Pro in other agents

- [Amp](https://spiral.ai/integrations/amp/nex-n2-5-pro)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/nex-n2-5-pro)
- [Claude](https://spiral.ai/integrations/claude-desktop/nex-n2-5-pro)
- [Claude Code](https://spiral.ai/integrations/claude-code/nex-n2-5-pro)
- [Cline](https://spiral.ai/integrations/cline/nex-n2-5-pro)
- [Codex](https://spiral.ai/integrations/codex/nex-n2-5-pro)
- [Cursor](https://spiral.ai/integrations/cursor/nex-n2-5-pro)
- [Devin](https://spiral.ai/integrations/devin/nex-n2-5-pro)
- [dots](https://spiral.ai/integrations/dots/nex-n2-5-pro)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/nex-n2-5-pro)
- [Gemini](https://spiral.ai/integrations/gemini/nex-n2-5-pro)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/nex-n2-5-pro)
- [goose](https://spiral.ai/integrations/goose/nex-n2-5-pro)
- [Grok](https://spiral.ai/integrations/grok/nex-n2-5-pro)
- [Grok Build](https://spiral.ai/integrations/grok-build/nex-n2-5-pro)
- [Hermes](https://spiral.ai/integrations/hermes/nex-n2-5-pro)
- [Instinct](https://spiral.ai/integrations/instinct/nex-n2-5-pro)
- [Manus](https://spiral.ai/integrations/manus/nex-n2-5-pro)
- [Muse](https://spiral.ai/integrations/muse/nex-n2-5-pro)
- [Muse Code](https://spiral.ai/integrations/muse-code/nex-n2-5-pro)
- [n8n](https://spiral.ai/integrations/n8n/nex-n2-5-pro)
- [Notion](https://spiral.ai/integrations/notion/nex-n2-5-pro)
- [OpenClaw](https://spiral.ai/integrations/openclaw/nex-n2-5-pro)
- [opencode](https://spiral.ai/integrations/opencode/nex-n2-5-pro)
- [Perplexity](https://spiral.ai/integrations/perplexity/nex-n2-5-pro)
- [Raycast](https://spiral.ai/integrations/raycast/nex-n2-5-pro)
- [VS Code](https://spiral.ai/integrations/vscode/nex-n2-5-pro)
- [Windsurf](https://spiral.ai/integrations/windsurf/nex-n2-5-pro)
- [Zapier](https://spiral.ai/integrations/zapier/nex-n2-5-pro)

## More Google Antigravity guides

- [Nex-N2.5 Mini](https://spiral.ai/integrations/antigravity/nex-n2-5-mini)
- [Nex-N2.6](https://spiral.ai/integrations/antigravity/nex-n2-6)
- [Nemotron 3.5 Super VL](https://spiral.ai/integrations/antigravity/nemotron-3-5-super-vl)
- [Palmyra X5](https://spiral.ai/integrations/antigravity/palmyra-x5)
- [Nemotron 3.5 Lightning](https://spiral.ai/integrations/antigravity/nemotron-3-5-lightning)
- [Pareto 26.10](https://spiral.ai/integrations/antigravity/pareto-26-10)

## Questions about Nex-N2.5-Pro in Google Antigravity

**Can Google Antigravity use Nex-N2.5-Pro?**

Yes. Add Spiral to Google Antigravity as an MCP server, and Google Antigravity can find and run Nex-N2.5-Pro like any built-in tool.

**How much does Nex-N2.5-Pro cost in Google Antigravity?**

Up to $0.001336 per run at the default inputs. $0.0975 per 1M input tokens, $0.325 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Google Antigravity plan is separate.

**Do I need an OpenRouter account to use Nex-N2.5-Pro in Google Antigravity?**

No. Spiral runs Nex-N2.5-Pro on its own OpenRouter account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Nex-N2.5-Pro in Google Antigravity?**

About two minutes: open the MCP config, then add the server, then sign in.

**Does Google Antigravity wait while Nex-N2.5-Pro runs?**

Nex-N2.5-Pro runs in the background. Google Antigravity starts the run, checks on it and gives you the text, json when it's ready.

**What is Nex-N2.5-Pro best suited for?**

Complex software changes and tasks that require a cycle of action, testing, and correction. Its documented applications also include browser testing, research, and scientific workflows.

**How does Nex-N2.5-Pro differ from Nex-N2.5-Mini?**

Nex AGI positions Pro for complex reasoning and advanced software engineering. Mini targets fast instruction following and real-time tool execution.

**How much context can Nex-N2.5-Pro handle?**

Its documented context window is 262,144 tokens. Keep a long task focused by carrying forward the goal, verified findings, and unresolved questions.

**When should I use each thinking mode?**

As a starting point, use adaptive thinking for mixed tasks and always-enabled thinking for difficult debugging. Direct responses skip the reasoning trace and suit straightforward requests.

**Which sampling settings should I start with?**

The maker recommends temperature 0.7, top-p 0.95, and top-k 40. Use that combination as a baseline when evaluating your own tasks.

