Gemini 4 API Gateway: Carbon, Neon, Argon & Hydrogen Setup Guide
Call all four Google Gemini 4 tiers (1M context window) behind one DeepClub API key via standard POST /v1/chat/completions—no Google-native SDK rewrite, strict Zero Data Retention (ZDR), and global card / Alipay / WeChat Pay billing.
Choosing Between the Four Gemini 4 Chemical-Element Tiers
Aligned with the Google AI Studio model documentation, the Gemini 4 lineup splits into four specialized tiers—all sharing a 1M-token context window and unified POST /v1/chat/completions access on DeepClub:
| Model ID | Official Positioning | Best Workloads | Live Rates |
|---|---|---|---|
gemini-4-carbon |
Strongest reasoning & cybersecurity defense flagship | Deep security audits, scientific synthesis, hardest architectural reviews | Live Pricing |
gemini-4-neon |
Frontier intelligence + fast end-to-end completion | Daily coding in Cursor / Cline / Roo Code, full-stack SWE loops | Live Pricing |
gemini-4-argon |
Efficient frontier reasoning with lower per-turn token spend | 10–30 turn agentic tool loops, math/science verification, long-doc batch analysis | Live Pricing |
gemini-4-hydrogen |
High-throughput lightweight tier with 1M context | Multilingual translation, intent routing, Open WebUI task model, bulk JSON cleanup | Live Pricing |
Quickstart with the Official OpenAI SDK (Python)
Important protocol boundary: On DeepClub, Gemini 4 text models expose OpenAI-compatible
POST /v1/chat/completionsrather than Google-nativegenerateContentpaths. Keep your existing OpenAI SDK and setbase_url="https://deepclub.net/v1".
import os
from openai import OpenAI
client = OpenAI(
base_url="https://deepclub.net/v1",
api_key=os.environ["DEEPCLUB_API_KEY"],
)
stream = client.chat.completions.create(
model="gemini-4-neon",
stream=True,
stream_options={"include_usage": True},
messages=[
{"role": "system", "content": "You are a staff backend engineer. Be concise and exact."},
{"role": "user", "content": "Explain how to prevent double-charging during payment webhook retries."},
],
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
elif chunk.usage:
print(f"\n[usage] in={chunk.usage.prompt_tokens} out={chunk.usage.completion_tokens}")
Framework & IDE Checklist
- Vercel AI SDK 5+:
openai("gemini-4-neon")defaults to/v1/responsesand will fail—always callopenai.chat("gemini-4-neon")for Gemini 4. - Cursor / Cline / Roo Code: Choose OpenAI Compatible, set Base URL to
https://deepclub.net/v1, and enter the exact catalog ID (gemini-4-neon,gemini-4-carbon,gemini-4-argon, orgemini-4-hydrogen). - Prompt Caching (
cache_read): Keep static system instructions and long codebase prefixes stable at the front ofmessagesto capture discountedcache_readpricing on repeated turns. - Dedicated Per-Model Guides: Gemini 4 Carbon API · Gemini 4 Neon API · Gemini 4 Argon API · Gemini 4 Hydrogen API
- Head-to-Head 1v1 Comparisons: Neon vs Claude Sonnet 5.5 · Carbon vs Claude Opus 5.5 · Carbon vs GPT-6.2 Astra · Hydrogen vs DeepSeek V4.1 Flash
- Live Pricing & Migration Guides: Gemini 4 API Pricing & Tier Comparison · Migrate Google GenAI SDK to OpenAI-Compatible API
- Cross-Vendor Comparison: Evaluating Gemini 4 alongside Anthropic and OpenAI? Read Gemini 4 vs Claude 5.5 vs GPT-6.2 or view Live LLM API Pricing.
Frequently Asked Questions
- Should I use the Google GenAI SDK to call Gemini 4 on DeepClub?
- No. Current Gemini 4 text models in the DeepClub catalog expose standard OpenAI Chat Completions (POST /v1/chat/completions). Use the official OpenAI SDK or any OpenAI-compatible IDE plugin with base_url="https://deepclub.net/v1".
- How do Gemini 4 Carbon, Neon, and Argon differ for coding?
- Carbon delivers the highest reasoning ceiling for security defense and complex architecture reviews; Neon balances frontier intelligence with fast end-to-end completion for interactive IDE sessions; Argon lowers per-turn token spend for multi-step agentic loops and long-document pipelines.
- Does DeepClub store my 1M-context codebases or prompts?
- No. DeepClub enforces site-wide Zero Data Retention (ZDR): request inputs and model completions are not persisted. See https://deepclub.net/privacy-policy for details.
Updated