Best Gemini model for code
For code with Gemini, use Carbon at high effort.
Carbon at high effort
High effortgeneration_config.thinking_level = high
At high effort, scores 60 vs. Argon's 50 on the Artificial Analysis index, with about 10% higher average benchmark cost. Intro pricing of $2 / $10 ends Nov 30, then doubles.
How it compares
Prices are in US dollars per million tokens, input then output. Carbon costs $2 / $10.
| Model | Price | Against the pick |
|---|---|---|
| Argon | $2 / $10 | Same token price as Carbon, and ten points lower on the Artificial Analysis index at high effort (50 vs 60). |
| Hydrogen | $1.50 / $7.50 | Scores 51 at high effort, at about a third of Carbon's cost per task. Good for routine edits. |
| 3.8 FlashOlder | $0.75 / $3.75 | Scores 31 at high effort and costs more per task than Hydrogen ($7.77 vs $1.87). |
| 3.1 ProPreview | $2 / $12 | Older (Feb) and behind the newer models on code. |
Setting it in the API
In an API request, set the model and effort like this:
model: "gemini-4-carbon", generation_config: { thinking_level: "high" }![]()
Maintained by the AI team at Vegan Hacktivists
Prices are per million tokens, input / output. We pick for the best result per dollar, so a pricier model can score higher and still lose out. This pick last changed Nov 13, 2026. Sources: Anthropic docs, OpenAI docs, Gemini docs, Artificial Analysis, Vals AI, Terminal-Bench.Last checked Nov 14, 2026.
Other picks
Gemini for everyday work, research, agents and automations.
Other labs for code: Claude, OpenAI.
Open the interactive picker to switch between labs and tasks.
Want helpputting this to work?
Vegan Hacktivists offers free AI and automation support to animal protection organizations — from a first conversation to a full build.

