Gemini in Claude Code and Cursor, text and images
chat and compare reach every Gemini chat id, image_urls lets Gemini look at a screenshot or a generated picture, and generate runs the Nano Banana image models. One hosted URL, one prepaid key, no Google Cloud project.
Add the server to your client
The server is https://api.relayswitch.io/mcp, Streamable HTTP, with your key sent as a Bearer header. Keys start sk-relay-.
Claude Code
claude mcp add --transport http relayswitch https://api.relayswitch.io/mcp \ --header "Authorization: Bearer $RELAYSWITCH_KEY"Then /mcp in Claude Code lists the server and its tools.
Cursor
// .cursor/mcp.json (this project) or ~/.cursor/mcp.json (every project){ "mcpServers": { "relayswitch": { "url": "https://api.relayswitch.io/mcp", "headers": { "Authorization": "Bearer ${env:RELAYSWITCH_KEY}" } } }}Check it from a terminal
curl https://api.relayswitch.io/mcp \ -H "Authorization: Bearer $RELAYSWITCH_KEY" \ -H "Content-Type: application/json" \ -H "Accept: application/json, text/event-stream" \ -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}'What the client can call
The tools this page is about. The server lists 15 in all; the rest are on the MCP server page.
| Tool | What it does | Key |
|---|---|---|
chat | A conversation to any chat model, with a system prompt, images for the models that see them, and web search. | Bearer |
compare | The same question to 2 to 5 models at once: every answer side by side with its cost and time. | Bearer |
generate | Runs any image, video, speech, music or 3D model and returns the files, a finished image inline. | Bearer |
list_models | Every chat, embedding, rerank and transcription model with its type, the tool that runs it and its price. | none |
What each call costs, read live
From the catalog at render. The developer’s list price is shown where the catalog has it.
| Model | Input / M | Output / M | List input / M | List output / M |
|---|---|---|---|---|
| Gemini 3.1 Pro Previewgemini-3.1-pro-preview | $1.20 | $7.20 | $2.00 | $12.00 |
| Gemini 3 Flash Previewgemini-3-flash-preview | $0.375 | $2.25 | $0.50 | $3.00 |
| Gemini 3.1 Flash Litegemini-3.1-flash-lite | $0.15 | $0.90 | $0.25 | $1.50 |
| Gemini 2.5 Progemini-2.5-pro | $0.9375 | $7.50 | $1.25 | $10.00 |
USD per million tokens. compare bills each model it asks at its own rate.
| Model | Setting | Price | Developer’s list |
|---|---|---|---|
| Nano Banana 2nano-banana-2 | resolution 1K | $0.0402 per image | $0.067 |
| resolution 2K | $0.056 per image | $0.101 | |
| resolution 4K | $0.072 per image | $0.151 | |
| Nano Banana Pronano-banana-pro | resolution 1K | $0.08 per image | $0.134 |
| resolution 2K | $0.08 per image | $0.134 | |
| resolution 4K | $0.12 per image | $0.24 |
Charged when the model accepts the task; a failed generation is refunded in full.
What to ask once it is connected
Plain requests; the client picks the tool.
- Send this screenshot to gemini-3.1-pro-preview with chat and ask what is wrong with the layout.
- Ask gemini-3-flash-preview for a second opinion on this plan before I start.
Gemini MCP server: questions
Setup, models and billing.
Every model as a tool in your AI
From $10 by card or in USDT, USDC, BTC, ETH, SOL. Prepaid, no subscription, no KYC.