For everyday repository work, start your evaluation with GPT-6 Sol or Claude Sonnet 5.5; their published prices make them sensible candidates for repeated coding sessions. Shortlist GPT-6 Astra and Claude Opus 5.5 for difficult work, GPT-6 Luna for inexpensive focused tasks, and Gemini 3.8 Flash for Google's coding ecosystem. These are recommendations based on vendor documentation; your acceptance tests should decide the winner. OpenAI model guidance Claude specifications Google model card
The best AI for coding depends on the finished change: correctness, review effort, integration with your tools, and total session cost. This comparison separates the model from its coding client and billing route. Follow the AI model releases timeline for launch context.
Comparison table: coding models, prices and access
Prices are USD per million tokens at standard direct API rates, before caching, tools, special processing tiers, and the qualifications below. Each model name links to its specifications; benchmark links point to the vendor publishing that model's result.
| Model | Model ID | Context | $/M in | $/M out | Coding benchmark the vendor publishes | Access: API / CLI / IDE |
|---|---|---|---|---|---|---|
| GPT-6 Astra | gpt-6-astra |
1,050,000 | $10 | $50 | Terminal-Bench 4.0: 57.9% | API / Codex / Codex extension |
| GPT-6 Sol | gpt-6-sol |
1,050,000 | $2 | $10 | DeepSWE v1.1: 68.8%, max effort | API / Codex / Codex extension |
| GPT-6 Luna | gpt-6-luna |
1,050,000 | $0.10 | $0.50 | DeepSWE v1.1: 66.6%, max effort | API / Codex / Codex extension |
| Claude Opus 5.5 | claude-opus-5-5 |
1,000,000 | $4 | $20 | Terminal-Bench 4.0: 66.4%, xhigh effort | API / Claude Code / Claude Code extension |
| Claude Sonnet 5.5 | claude-sonnet-5-5 |
1,000,000 | $2 | $10 | Terminal-Bench 4.0: 70.6% | API / Claude Code / Claude Code extension |
| Claude Fable 5.1 | claude-fable-5-1 |
1,000,000 | $10 | $50 | Terminal-Bench 4.0: 55.8% | API / Claude Code / Claude Code extension; plan restrictions |
| Gemini 3.8 Flash | gemini-3.8-flash |
1,048,576 input | $0.75* | $3.75* | DeepSWE v1.1: 73.7% | API / Antigravity CLI / Antigravity |
Access references: OpenAI model selection, Claude Code surfaces, Claude model configuration, Antigravity CLI, and Google distribution. Availability still depends on account and workspace settings.
*Gemini's rates last through December 31, 2026; Google lists $1.50 input and $7.50 output from January 1, 2027. GPT-6 requests exceeding 272K input tokens incur twice the input/cache rates and 1.5 times the output rate for the full request. Claude's current million-token models include their full context at standard token rates. Google pricing GPT-6 pricing Claude pricing
Context is capacity, not a recommendation to send every file. Google's column specifies input capacity; the other vendors describe context windows. Preserve room for the work the model must produce.
GPT-6 Astra, Sol and Luna: choose a tier for the job
Astra is OpenAI's flagship; Sol is the balanced coding choice; Luna targets focused, high-volume work. Newer release dates do not imply that Sol and Luna replace Astra's role. OpenAI positions the family this way. Model catalog
Astra for difficult coding and computer use
Astra is worth testing when success spans a repository and a running application. OpenAI documents computer use, asynchronous tool calling, and mid-turn steering across GPT-6. Those capabilities support workflows such as editing code, reproducing a UI failure, and incorporating a changed requirement during execution. Developer guide
My suggested evaluation is a bug with an observable reproduction. Require a patch, a passing regression check, and evidence that the reported behavior changed. Include interrupted sessions in the pilot: the question is whether the task reaches a reviewable finish with reasonable intervention.
OpenAI publishes Astra scores of 74.1% on DeepSWE v1.1 and 53.3% on FrontierCode 1.1 Main, alongside the terminal result above. These are vendor evaluations, with effort and execution conditions that matter when interpreting the scores. Astra announcement
The GPT-6 Astra explainer offers more background. For a purchasing decision, make Astra justify its cost through accepted results and reduced review work.
Sol for recurring development; Luna for bounded queues
Sol's published rates make it a practical starting point for implementation tickets. Luna is the lowest-priced option in this table. Both support 1,050,000-token context windows and 128,000 maximum output tokens; both accept text and images and generate text. Sol specifications Luna specifications
I would evaluate Sol on feature work and debugging, then try Luna on tightly specified tasks such as classifying failures or proposing a test for a known bug. Give the smaller-budget workflow a clear stopping condition and a path to escalation.
OpenAI reports the Sol and Luna DeepSWE scores at max effort. Treat those as evidence for testing the models, not as the performance guaranteed at a default setting. Record reasoning settings alongside the resulting patch so a comparison can be repeated. Sol and Luna announcement
What about GPT-6 Pro variants?
For OpenAI's direct Responses API, Pro is a reasoning mode: select the base model and set reasoning.mode to pro. Mode and effort are separate settings. Pro bills the additional model work at the selected model's token rates, so equal per-token pricing does not mean equal request cost. Reasoning documentation
For a direct API integration, keep the documented base model ID and specify Pro through the reasoning configuration. Do not infer a vendor identifier from a reseller's model label. Reasoning configuration
Codex access and subscription limits
OpenAI documents these models in Codex CLI and its IDE extension. Select a model explicitly, for example codex --model gpt-6-sol, or use /model. Sol and Luna are documented in ChatGPT Work and Codex, rather than Chat. Model selection
Estimated local messages per five-hour period are:
| Model | Plus | Pro 5x | Pro 20x | Standard Business |
|---|---|---|---|---|
| GPT-6 Astra | 5–45 | 25–225 | 100–900 | 5–45 |
| GPT-6 Sol | 15–150 | 70–700 | 300–3,000 | 15–150 |
| GPT-6 Luna | 350–3,000 | 1,750–14,000 | 7,000–56,000 | 350–3,000 |
These are estimates, not fixed entitlements. Local messages and cloud chats share allowances; weekly limits can also apply. API-key usage is billed separately. Consult the usage dashboard for actual limits and reset times. Codex pricing and allowances
A universal minimum Codex version covering every GPT-6 integration is not published in the model-selection documentation. Check that the intended model is selectable in the installed client and account.
Claude Opus 5.5, Sonnet 5.5 and Fable 5.1
Opus 5.5 is the demanding-work candidate; Sonnet 5.5 is the everyday value candidate. Anthropic recommends Fable 5.1 for demanding reasoning when Opus at higher effort still falls short. That makes Fable an escalation option to evaluate, rather than an automatic default. Claude model overview
Coding benchmarks need their execution context
Anthropic's Sonnet announcement reports 70.6% on Terminal-Bench 4.0, while the Opus announcement reports 66.4% at xhigh effort. Yet Anthropic still describes Opus as stronger on complex, open-ended work requiring sustained judgment. A benchmark lead and a broader workflow recommendation can coexist. Sonnet announcement Opus announcement
The Opus evaluation ran with production safeguards and specified fallback models for some interventions. Preserve that qualification when comparing its score with another vendor's result. Do not turn independently published benchmark tables into a controlled head-to-head test. Opus evaluation notes
For your own pilot, keep repository instructions, tools, acceptance criteria, and available context constant. Ask the reviewer to score unnecessary edits and unsupported completion claims as well as correctness.
Cache reuse changes the bill
Anthropic lists cache reads at $0.20 per million tokens for Opus 5.5 and Sonnet 5.5, and $0.25 for Fable 5.1. Five-minute writes cost $5, $2.50, and $12.50 respectively. Cache reads therefore need their own budget column; the base input price alone cannot describe a repeated repository session. Claude pricing
Track uncached input, cache creation, cache reads, and output. My recommendation is to compare complete sessions with realistic reuse, including cold starts. A workflow with constantly changing instructions should not be priced as though every prefix receives a cache hit.
Claude Code versions and paid access
Sonnet 5.5 requires Claude Code 2.1.284 or later; Opus 5.5 requires 2.1.280 or later. Provider aliases can resolve differently, so select the full model ID when reproducibility matters. Model configuration
Fable 5.1 requires 2.1.255 or later. On Pro and standard Team seats it uses pay-as-you-go credits from the start. Max and eligible premium seats can allocate up to 50% of their existing weekly allowance to Fable; this adds no extra allowance. A guaranteed weekly Fable message count is not published in the plan guide. Fable access rules
For API implementation and deployment details, see the Claude developer guide.
Gemini 3.8 Flash: Google's coding workhorse
Gemini 3.8 Flash is a strong candidate for cost-conscious Google-based workflows. Google positions it for long-horizon software engineering and autonomous agents. Its API accepts text, images, video, audio, and PDFs, and supports function calling, code execution, and structured outputs. Model specifications
Google's own model card reports 73.7% on DeepSWE v1.1 and 19.1% on Terminal-Bench 4.0. The different results illustrate why “best at coding” needs a task definition. Use the benchmark closest to your work to choose an evaluation candidate. Google model card
Google also explains that complex tasks can consume more tokens through additional reasoning and tool calls. My recommendation is to trial Flash on a bounded implementation queue and measure accepted changes per billed dollar. Cheap tokens leave room for iteration, but do not establish a cheap successful task. Google announcement
Budget for the pricing period and client
Google lists a free standard API tier, subject to project limits. Check active quotas in AI Studio; a single guaranteed allowance for every account is not published in the rate-limit guide. For paid use, budget both the introductory and scheduled January rates. Pricing Rate limits
Antigravity CLI explicitly documents gemini-3.8-flash-high and gemini-3.8-flash-medium. These are client slugs; the API model ID remains gemini-3.8-flash. CLI reference
A 3.8-specific minimum Gemini CLI version is not published in its model guide. Its quota page lists daily Google-account ceilings of 1,000 requests for individuals, 1,500 for AI Pro, and 2,000 for AI Ultra. Those are route-level limits, not verified Gemini 3.8 entitlements. CLI model guide CLI quotas
Which one for your coding workflow?
For recurring reviews and small tickets, my starting shortlist is Sol, Sonnet, Luna, and Flash. For ambiguous debugging or work spanning applications, add Astra and Opus. Evaluate Fable if those candidates leave difficult cases unresolved.
Build a small acceptance set from actual repository tasks. Keep the starting checkout and requirements identical. Record the selected model, effort, client, token bill, failed attempts, and reviewer time. A successful run should include the requested behavior and the checks needed to trust it.
Use the LLM API pricing calculator to explore costs, and the prompt library to start writing task instructions. For local deployment requirements, use the local LLM guide and LLM GPU calculator.
FAQ
What is the best AI for coding in 2026?
Start with GPT-6 Sol or Claude Sonnet 5.5 for everyday work. Evaluate Astra and Opus for harder tasks, Luna for focused volume, and Gemini 3.8 Flash for Google's workflow. This is a task-based recommendation, not a universal ranking.
Is Claude Sonnet 5.5 better than Opus 5.5?
Sonnet has the higher Terminal-Bench score in Anthropic's published comparison. Anthropic still favors Opus for complex, open-ended judgment. Test your workload before choosing solely from that score. Anthropic comparison
Does a ChatGPT or Claude subscription include API tokens?
Do not budget subscription allowances as API credit. Codex API-key usage follows API billing, and Claude Code's subscription and Console access are distinct routes. Check the route used by your client. Codex billing Claude Code access
Is Gemini 3.8 Flash free for coding?
Google lists free standard API input and output under account limits. That does not establish unlimited use or a model-specific Gemini CLI entitlement. Google pricing API limits
Is GPT-6 Pro a separate model ID?
OpenAI documents GPT-6 Pro execution through the base model ID and reasoning.mode: "pro". Expect more model work and token usage; the mode is separate from reasoning effort. API reasoning guide
Sources
- OpenAI model catalog
- GPT-6 Astra specifications
- GPT-6 Sol specifications
- GPT-6 Luna specifications
- OpenAI API pricing
- GPT-6 developer guide
- OpenAI reasoning modes
- GPT-6 Astra announcement and evaluations
- GPT-6 Sol and Luna announcement and evaluations
- Codex model selection
- Codex pricing and usage estimates
- Claude model overview
- Claude Opus 5.5 specifications
- Claude Sonnet 5.5 specifications
- Claude Fable 5.1 specifications
- Claude Opus 5.5 announcement
- Claude Sonnet 5.5 announcement
- Claude Fable 5.1 announcement
- Claude API pricing
- Claude Code overview
- Claude Code model configuration
- Claude Fable plan rules
- Gemini 3.8 Flash specifications
- Gemini 3.8 Flash model card
- Gemini 3.8 Flash announcement
- Gemini API pricing
- Gemini API rate limits
- Gemini CLI model guide
- Gemini CLI quotas
- Antigravity CLI reference
Last reviewed and updated: September 2026.
Top comments (0)