# Amazon Ergo and Code Generation

> Source: <https://www.dotnetperls.com/2026_12_3_amazon-ergo-code-generation>
> Published: 2026-12-03 07:00:00+00:00

**Recommendation:** Benchmark cost-focused open-weight models like Ergo on your own code-generation prompts before defaulting to frontier models; the tester got correct Rust output at $0.011 or less per prompt.
More in the playbook "Controlling LLM cost": <https://wpnews.pro/playbooks/llm-cost>

**Amazon** yesterday released the **Ergo** open-weights LLM. This is a 1.1 trillion parameter **MoE model** with 55 billion active parameters. It is **cost-focused**, and open-weights—so one could run it locally (with the right hardware).

I tested the model on OpenRouter with several prompts aimed at **generating Rust code**. It worked, and was inexpensive and fast (it cost $0.011 or less on each prompt). The code it generated was **correct**. So overall it seems like a success—it ranks somewhat below the frontier, but not that far off.

I cannot really say whether it is better than other recent models like **Hy4 Flash**. I would say that Hy4 Flash is even cheaper, but Ergo is acceptable even for cost-sensitive users. It is a good development that more **open-weight models**, from companies like Amazon, are being released, as it will drive token costs ever lower.
