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/completions rather than Google-native generateContent paths. Keep your existing OpenAI SDK and set base_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

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