Best OpenAI model for code

For code with OpenAI, use GPT-6.1 Sol at high effort.

GPT-6.1 Sol at high effort

High effortreasoning.effort = high

Solves 51.5% of Terminal-Bench 4.0 tasks at high effort, 2.5 points behind Astra, at a fifth of the token price. In ChatGPT, it's in Codex only. Regular chats don't have it.

How it compares

Prices are in US dollars per million tokens, input then output. GPT-6.1 Sol costs $2 / $10.

ModelPriceAgainst the pick
GPT-6 Astra$10 / $50Five times the token price. Slightly behind Sol on the Terminal-Bench 4.0 leaderboard at max effort (60.3% vs 60.9%).
GPT-6.1 Terra$1 / $5Half the price. 42% vs 52% on Terminal-Bench 4.0 at high effort.
GPT-6 SolOlder$2 / $10Replaced by 6.1 Sol at the same price.
GPT-6 Luna$0.10 / $0.50Built for cheap, high-volume work and too light for real engineering.

Setting it in the API

In an API request, set the model and effort like this:

model: "gpt-6.1-sol", reasoning: { effort: "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 Oct 9, 2026. Sources: Anthropic docs, OpenAI docs, Gemini docs, Artificial Analysis, Vals AI, Terminal-Bench.Last checked Nov 14, 2026.

Other picks

OpenAI for everyday work, research, agents and automations.

Other labs for code: Claude, Gemini.

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.

A beaver carrying a branch through the water