Amazon's Ergo Model Underperforms on Cost Despite Lower Per-Token Pricing
AWS's newly unveiled open-weights coding model charges less per token than OpenAI's GPT-6.2 Astra but consumes tokens so aggressively that it costs twice as much to run in practice.

Amazon unveiled Ergo at its annual re:Invent conference on Tuesday, positioning the open-weights model as a coding-focused alternative to proprietary systems. Unlike closed models, Ergo's weights are publicly available for download and local deployment. AWS released a comparative benchmark table featuring 12 metrics that pit Ergo against competitors including OpenAI's GPT-6.2 Astra.
The pricing structure appears favorable at first glance: Ergo costs $1 per million input tokens and $3 per million output tokens, while GPT-6.2 Astra charges $8 and $40 respectively. Cached input tokens run $0.03 per million for Ergo versus $0.40 for Astra. However, real-world usage patterns tell a different story.
AWS's published benchmarks show conflicting results. On DeepSWE, a public coding benchmark, Ergo edges ahead with 74.2% accuracy compared to Astra's 71.2%—though Epoch AI's audit identified errors in at least 23 of the benchmark's 113 tasks. On AI SWE, an internal AWS benchmark, Astra wins decisively at 80.8% versus Ergo's 65.4%.
Testing methodology
To evaluate actual performance, three distinct coding tasks were run against both models using identical instructions and tools. Ergo was accessed through OpenRouter, which serves Bedrock instances, while Astra ran through OpenAI's API. Both operated under default settings. GPT-5 was used to establish baseline difficulty levels for each test.
- Writing tasks for a test (400 points maximum): Five tasks added to jmespath.py, an open-source JSON query library, including four new query language features and a tool for converting internal syntax trees back to text. GPT-5 scored 319.
- Fixing real bugs (67 points maximum): Thirteen recent bug fixes in SQLGlot, an open-source SQL translation tool, were reversed and each model was asked to repair them. GPT-5 scored 7.
- Building a tool from specification (600 points maximum): Each model received the CommonMark specification, a 9,800-line document defining Markdown format, and constructed a Markdown-to-HTML converter from scratch, graded against 600 hidden test documents. GPT-5 scored 315.
Test results
Tasks written for a test
Both models achieved perfect scores of 400 out of 400, aligning with AWS's DeepSWE benchmark where the two models differed by only three points. When task specifications were explicit, Ergo matched Astra's accuracy. Testing on 1,217 additional harder cases showed Astra passing all of them while Ergo missed 2—essentially equivalent performance.
The cost differential emerged starkly. Astra completed the task in 29 turns, while Ergo required 211 turns, with each turn consuming tokens. "Astra finished in 29 turns. Ergo needed 211, and every one of those turns costs tokens."
- Ergo: 211 turns, 52,596,882 input tokens, 510,085 output tokens (429,672 reasoning), $6.83, 2,254 seconds
- GPT-6.2 Astra: 29 turns, 751,893 input tokens, 17,836 output tokens (6,922 reasoning), $1.39, 443 seconds
Fixing real bugs
Performance diverged on this task. Astra scored 55 out of 67 points (82%), while Ergo achieved 42 (63%). Neither model misunderstood the bugs, but Astra demonstrated greater thoroughness. Astra fully resolved 6 of 13 bugs compared to Ergo's 3. On remaining bugs, Astra left fewer issues unresolved. Ergo also introduced a new defect that wasn't present before, while Astra did not.
Despite the performance gap, costs converged. Astra completed the work in less than half the time at nearly identical expense.
- Ergo: 457 turns, 65,373,971 input tokens, 240,428 output tokens (189,372 reasoning), $4.50, 2,212 seconds
- GPT-6.2 Astra: 79 turns, 5,859,464 input tokens, 30,187 output tokens (8,202 reasoning), $4.58, 847 seconds
Building a tool from written specification
Both models scored perfectly at 600 points. Extended testing with 1,500 additional documents showed Ergo missing only one case. Each model successfully read the lengthy specification and constructed a fully functional Markdown-to-HTML converter. "When the instructions are complete, Ergo matches Astra on accuracy, and Astra gets there with far less effort."
Astra completed the work in 5 minutes for $1.20. Ergo required 26 minutes and cost $3.88.
- Ergo: 210 turns, 37,332,230 input tokens, 323,682 output tokens (281,068 reasoning), $3.88, 1,577 seconds
- GPT-6.2 Astra: 30 turns, 734,986 input tokens, 13,168 output tokens (3,161 reasoning), $1.20, 301 seconds
Overall findings
The test results validated both rows of AWS's benchmark table. Ergo matched Astra's accuracy on clearly specified tasks but fell behind on real-world bug fixing. The most striking discovery involved total cost: "Ergo's price per token is much lower, but it used so many more tokens that it cost twice as much as Astra to run."
Across all three tests combined, Ergo cost $15.21 while Astra cost $7.17. Ergo consumed approximately 101 minutes of execution time compared to Astra's 27 minutes. Most dramatically, Ergo used 21 times as many input tokens as Astra: 155 million versus 7 million.
Ergo appears better suited to tasks with explicit specifications than to scenarios requiring iterative problem-solving. Aside from bug-fixing work, where Ergo struggled more than Astra, neither model demonstrated performance advantages. On cost and speed metrics, Astra emerged as the clear winner despite Ergo's lower per-token rates.