Google positions Carbon for defensive cybersecurity: detecting vulnerabilities, validating them and writing patches. It is why Google gave cyber defenders access first. Here are Google's results and a starting point for code review automation.
Source: Google: Introducing Gemini 4 Carbon (October 28, 2026).
| Task | Benchmark | Gemini 4 Carbon |
|---|---|---|
| Find vulnerabilities | SEC-bench Pro | 88.2% |
| Exploit (validation) | ExploitGym | 54.8% |
| Patch | CWE-bench | 71.0% (Argon 68%) |
| Resist prompt injection | Gray Swan indirect, attack success | 0.0% (Argon 0.7%) |
| Secure code generation | Google internal | More than 2x Argon |
A minimal reviewer you can run in CI. Keep the system prompt fixed so repeated runs hit the cache.
from openai import OpenAIclient = OpenAI(base_url="https://utopixel.online/api/v1", api_key="sk-vb-...")diff = open("change.diff").read()r = client.chat.completions.create(model="google/gemini-4-carbon",messages=[{"role": "system", "content": "You review code for security. For each issue give the file, line, CWE id, why it is exploitable and a minimal patch."},{"role": "user", "content": diff},],)print(r.choices[0].message.content)
One API key for the models of OpenAI, Google, DeepSeek, Moonshot AI, Qwen, xAI, Z.ai, Meta, Amazon, AionLabs, Anthropic, Baidu, ByteDance Seed, Cohere, Elorian, Fireworks AI, IBM, inclusionAI, Inference.net, KT, Liquid AI, Meituan, Meta, MiniMax, Mistral AI, Moondream, Motif Technologies, Nex AGI, NVIDIA, Particle AI, Perceptron, Prism ML, Reflection AI, Reka, Relace, Ricursive AI, Sakana AI, StepFun, Tencent, Thinking Machines, Unbiased, Upstage, Writer and Xiaomi. Start free, no card needed.