Amazon Ergo: what it is, how it compares to other AI models, and how to use it
By Flavio
Tagged: AI
A practical guide to Amazon Ergo, Amazon's 1.1T open-weights coding model: how its MoE architecture works, how its speed, benchmarks, and pricing stack up against other AI models, and how to wire it into your code and coding agents.
On December 1, 2026 Jeff Bezos announced Amazon Ergo on X: a 1.1 trillion parameter open-weights model from Amazon Frontier Model Research (FMR), built for software engineering and coding agents.
You can download the weights from Hugging Face, run them on your own GPUs, or call them through Amazon Bedrock and OpenRouter.
I haven’t sent Ergo a live prompt on Bedrock yet because I don’t have AWS Bedrock credentials set up here, so the hands-on data in this tutorial comes from inspecting its real Hugging Face config and weight shards, querying live OpenRouter pricing and endpoints, and checking Amazon’s official launch docs.
Let’s look at how Ergo is built, where it sits next to the other AI models you can use today, and how to plug it into your scripts and coding agents.
What “1.1T total, 55B active” actually means
When you see “1.1 trillion parameters” next to a model name, your first thought is probably that it must be painfully slow and expensive to run.
Ergo avoids that by using a Mixture-of-Experts (MoE) design. Instead of waking up the whole 1.1T network for every single token, a small router inside each layer picks only 8 specialist networks out of 256, plus 1 shared network that always runs.
That means only 55 billion parameters (5% of the model) do math for each token. You get the memory capacity of a massive model at roughly the speed of a much smaller one.
If you’re new to how weights, parameters, and open checkpoints work, my open-weight AI models guide and the free AI Fundamentals Handbook cover the basics.
I pulled Ergo’s live config.json and file list straight from Hugging Face to see what’s actually inside the default checkpoint:
curl -sL https://huggingface.co/Amazon-FMR/Ergo/raw/main/config.json | jq '{model_type, num_hidden_layers, num_experts, num_experts_per_tok, max_position_embeddings, local_attention_window, global_attention_every_n_layers, quant: .quantization_config.quant_method}'
curl -sL https://huggingface.co/api/models/Amazon-FMR/Ergo/tree/main | jq '[.[] | select(.path | endswith(".safetensors"))] | {shards: length, total_gb: ((map(.size) | add) / 1e9 * 100 | round / 100)}'
Here is the real output from that run:

Two details in config.json explain how Ergo can handle a 1 million token context window (1,048,576 tokens) without crawling to a halt:
- Sparse experts: 64 layers total (1 dense layer followed by 63 MoE layers), with 256 routed experts per layer and 8 active per token.
- Sliding-window attention: 3 out of every 4 layers only look back at a local 512-token window, and only every 4th layer attends across the full context. That keeps memory usage and decode speed manageable even when you feed it a huge repository.
Here is how a single token travels through one of Ergo’s MoE layers:
Amazon also published a tiny companion model Amazon-FMR/Ergo-dspark. It has 3.24B parameters (6.48 GB in one file) and it’s a speculative draft model: it guesses 8 tokens ahead, so the big model can check all 8 in one pass, instead of generating one token at a time.
Here are all 4 repositories under Amazon-FMR on Hugging Face:
| Repository | Precision | Download size | Role |
|---|---|---|---|
| Amazon-FMR/Ergo | MXFP4 | 626 GB (65 shards) | Default quantized checkpoint |
| Amazon-FMR/Ergo-mxfp8 | MXFP8 | 1.17 TB | Higher-precision quantized checkpoint |
| Amazon-FMR/Ergo-bf16 | BF16 | 2.22 TB | Full-precision base weights for fine-tuning |
| Amazon-FMR/Ergo-dspark | BF16 | 6.48 GB (1 file) | 3.24B draft model for fast decoding |
The Hugging Face model card lists every precision link, the benchmark summary, and the license right at the top:

How Amazon Ergo fits with the rest of today’s AI models
The big question is not “is Ergo impressive?”. It’s “where does it fit next to the models I already pay for, or self-host?”.
I queried OpenRouter’s live models and endpoints API on launch day to get the real per-million-token prices, and see which hosts already serve amazon/ergo-1.0:
curl -sL https://openrouter.ai/api/v1/models | jq -r '.data[] | select(.id | IN("amazon/ergo-1.0","moonshotai/kimi-k3.1-pro","mistralai/mistral-large-4-0","anthropic/claude-opus-5.5","anthropic/claude-fable-5.2","openai/gpt-6.2-astra","google/gemini-4-neon")) | [.id, ("$" + (((.pricing.prompt | tonumber) * 1e8 | round / 100) | tostring) + " in"), ("$" + (((.pricing.completion | tonumber) * 1e8 | round / 100) | tostring) + " out"), ("$" + (((.pricing.input_cache_read | tonumber) * 1e8 | round / 100) | tostring) + " cache")] | @tsv' | sort | column -t -s $'\t'
curl -sL https://openrouter.ai/api/v1/models/amazon/ergo-1.0-20261201/endpoints | jq -r '.data.endpoints[] | [.provider_name, .tag, .quantization] | @tsv' | column -t -s $'\t'
Here is what OpenRouter returned:

Combining those live API prices with the coding and agentic benchmarks from the Amazon Ergo launch post, we have a pretty clear map of the landscape:
| Model | Weights | API price (in / out / cache per 1M) | DeepSWE | FrontierSWE v2 | Terminal-Bench 4.0 | AutomationBench-AA |
|---|---|---|---|---|---|---|
| Amazon Ergo 1.0 | Open | $1.00 / $3.00 / $0.03 | 74.2 | 31.5 | 46.2 | 70.0 |
| Kimi K3.1 Pro | Open | $0.25 / $8.80 / $0.18 | 77.9 | 29.3 | 63.3 | 73.3 |
| GLM 5.3 | Open | $0.07 / $1.40 / $0.07 | 69.5 | 30.2 | 36.9 | 62.2 |
| Mistral Large 4 | Open | $0.70 / $2.10 / $0.07 | 59.1 | 15.8 | 30.1 | 57.8 |
| Muse Spark Open | Open | $1.25 / $4.25 / $0.15 | 56.6 | 11.1 | 5.1 | 49.7 |
| Inkling 2 Small | Open | $0.15 / $0.50 / $0.03 | 67.3 | 25.9 | 12.9 | 45.6 |
| Claude Opus 5.5 | Closed | $4.00 / $20.00 / $0.20 | 71.3 | 62.3 | 65.2 | 69.5 |
| Claude Fable 5.2 | Closed | $8.00 / $40.00 / $0.20 | 75.2 | 69.9 | 65.2 | 76.4 |
| GPT-6 Astra | Closed | $10.00 / $50.00 / $1.00 | 71.2 | 65.5 | 58.3 | 68.5 |
| Gemini 4 Neon | Closed | $3.00 / $15.00 / $0.15 | n/a | n/a | n/a | n/a |
(Benchmark scores are from Amazon’s launch report and public leaderboards. Prices are live OpenRouter standard rates per 1M tokens. Gemini 4 Neon was not in Amazon’s benchmark table.)
Three patterns jump straight out of that table.
1. Against other open-weights models
Ergo is the strongest U.S. open-weights coding model in the table, well ahead of Meta’s Muse Spark Open, Mistral Large 4, and NVIDIA’s Nemotron 3 Ultra on every engineering benchmark.
Its real open-weights rival is Kimi K3.1 Pro. Kimi scores higher on public benchmarks like DeepSWE (77.9 vs 74.2) and Terminal-Bench 4.0 (63.3 vs 46.2).
Ergo pulls ahead on FrontierSWE v2 (31.5 vs 29.3) and on Amazon’s held-out internal engineering suite (65.4 vs 58.6), and it wins hard on speed and output cost. On Bedrock, Ergo streams at over 400 output tokens per second (with a limited-preview Turbo mode reaching 2,200 tok/s on AWS Trainium hardware), and output tokens cost $3 per million instead of Kimi’s $8.80.
Notice the $0.03 per million cached input token rate too. That’s a 97% discount on repeated context, which is huge for coding agents that re-send the same system prompt and repo files on every turn. I broke down why cached input and output rates dominate agent bills in token pricing and budgeting for LLM apps.
2. Against closed frontier models
Ergo beats previous-generation closed models like GPT-5.5 and Claude Opus 4.8 in every benchmark in Amazon’s report. It even matches current-generation Opus 5.5 and GPT-6 Astra on DeepSWE and AutomationBench-AA, while costing 6x to 16x less per output token.
Closed flagships still hold a massive lead when tasks get very long or very hard. On FrontierSWE v2, Opus 5.5 (62.3), GPT-6 Astra (65.5) and Fable 5.2 (69.9) are roughly double Ergo’s score (31.5). On Amazon’s own Ultra Long Horizon test, Fable 5.2 hits 72.6 and Opus 5.5 hits 60.1, while Ergo scores 20.5.
On science and ML benchmarks like Terminal-Bench Science, closed models are in another league too (GPT-6 Astra 67.9, Opus 5.5 61.2 vs Ergo 21.3). Amazon is upfront about this in the model card: Ergo was built specifically for coding and agentic work, not general trivia or scientific research.
3. The limits you need to know upfront
Before you drop Ergo into every workflow, check its 3 real limits from the Bedrock model card:
- Text only. Ergo cannot read screenshots, UI mockups, diagrams, or image PDFs in version 1.0.
- Always reasons. You cannot turn reasoning off. Passing
reasoning_effort="none"returns an HTTP 400 error, so even trivial one-line prompts spend reasoning tokens before answering. - Needs a verification loop. Because first-attempt accuracy trails Opus 5.5 and Fable 5.2, Ergo works much better when the agent can run tests, read the error, and fix its own mistakes.
Here is how I’d route tasks across today’s models:
Check the license before you resell it
Ergo uses a custom Amazon Ergo Open-Weights License, not Apache 2.0 or MIT.
For most developers and SaaS products, it’s free and permissive. You can download the weights, fine-tune them on private code, modify them, redistribute them, and embed Ergo inside your commercial product without paying Amazon a cent.
There is one big commercial trigger in Section 3: if you run a Model-as-a-Service business (selling raw API or fine-tuning access where third parties send prompts and get outputs) and your company plus affiliates make over $20 million in gross revenue over any 12-month period, you need a separate written agreement with Amazon.
Using Ergo internally or powering features inside your own product is explicitly exempt from that cap.
You also agree to Amazon’s Acceptable Use Policy, you cannot try to reconstruct training data, and Amazon notes the model isn’t validated for high-risk uses under Article 6 of the EU AI Act.
How to use Amazon Ergo
You have 3 main ways to run Ergo, depending on if you want a 5-minute test, enterprise zero-data-retention hosting, or full control on your own GPUs:
| Path | Setup effort | Price | Speed & privacy | Best for |
|---|---|---|---|---|
OpenRouter (amazon/ergo-1.0) | 2 minutes, one API key | $1 in / $3 out / $0.03 cache | Served by Morph FP4 or Amazon Bedrock | Quick tests, multi-model apps |
Amazon Bedrock (global.amazon.ergo-1.0) | AWS account + Bedrock API key | $1 in / $3 out / $0.03 cache ($1.10/$3.30 US-only) | 400+ tok/s on Trainium, Zero Data Retention, Zero Operator Access | Production coding agents, team use |
| Self-hosted (vLLM / SGLang) | Multi-GPU cluster (626 GB MXFP4 weights) | Your GPU bill | Full VPC control, custom fine-tunes | Large enterprises with dedicated H200/B300/GB300 nodes |
Option 1: Try it right away with OpenRouter
If you don’t want to touch AWS IAM policies just to see how Ergo writes code, OpenRouter already exposes amazon/ergo-1.0 through its standard OpenAI-compatible API.
I already explained how to get an OpenRouter key and how to inspect the model metadata in how to try open-weight models through OpenRouter.
Install the official OpenAI Node.js package in a fresh folder:
npm install openai
Now call amazon/ergo-1.0.
Remember the 2 Ergo rules: set max_completion_tokens to at least 8192 (hidden reasoning tokens count towards that limit, and a tiny cap gives you an empty string) and pick a valid reasoning effort (low, medium, high, xhigh or max).
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://openrouter.ai/api/v1',
apiKey: process.env.OPENROUTER_API_KEY,
})
const response = await client.chat.completions.create({
model: 'amazon/ergo-1.0',
reasoning_effort: 'medium',
max_completion_tokens: 8192,
messages: [
{
role: 'system',
content: 'You are a concise JavaScript engineer.',
},
{
role: 'user',
content: 'Write a Node.js function that retries an async fetch with exponential backoff and jitter.',
},
],
})
console.log(response.choices[0].message.content)
console.log(response.usage)
That gives you the same $1 / $3 / $0.03 pricing as Bedrock Global, without having to set up AWS first.
Option 2: Call Amazon Bedrock directly (OpenAI SDK, no boto3 required)
Bedrock used to mean learning AWS SigV4 signing and boto3.
With Ergo, Bedrock exposes a standard OpenAI-compatible endpoint (/openai/v1) that accepts a plain bearer token.
First, attach an IAM policy to your AWS user or role so it can call Ergo’s inference profiles:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"bedrock:InvokeModel",
"bedrock:InvokeModelWithResponseStream"
],
"Resource": [
"arn:aws:bedrock:*:*:inference-profile/us.amazon.ergo-1.0",
"arn:aws:bedrock:*:*:inference-profile/global.amazon.ergo-1.0",
"arn:aws:bedrock:*::foundation-model/amazon.ergo-1.0"
]
}
]
}
Next, open the Amazon Bedrock console, generate a long-term API key, and export it in your shell:
export AWS_BEARER_TOKEN_BEDROCK="your-bedrock-api-key"
One quirk to know before your first call is that you cannot pass the base model ID amazon.ergo-1.0. In-region inference is not supported, and passing that ID returns a 400 error. You must use global.amazon.ergo-1.0 ($1/$3) or us.amazon.ergo-1.0 ($1.10/$3.30, US regions only).
Here is the same Node.js script, pointed straight at Bedrock’s us-west-2 endpoint:
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1',
apiKey: process.env.AWS_BEARER_TOKEN_BEDROCK,
})
const response = await client.responses.create({
model: 'global.amazon.ergo-1.0',
reasoning: { effort: 'medium' },
max_output_tokens: 8192,
input: 'Explain the difference between a token bucket and a sliding window rate limiter in 5 lines.',
})
console.log(response.output_text)
Notice we used the responses API here.
Bedrock supports Responses, Chat Completions, Converse, and InvokeModel for Ergo, all with Zero Data Retention and Zero Operator Access on AWS Nitro.
Option 3: Connect Ergo to OpenCode, Codex CLI, or Claude Code
Ergo was built for coding agents, and Amazon published official setup configs for the major terminal tools in its Bedrock coding tools guide.
OpenCode
If you use OpenCode, add a bedrock-runtime provider to ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"bedrock-runtime": {
"npm": "@ai-sdk/openai-compatible",
"name": "Amazon Bedrock",
"options": {
"baseURL": "https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1",
"apiKey": "{env:AWS_BEARER_TOKEN_BEDROCK}"
},
"models": {
"global.amazon.ergo-1.0": {
"name": "Ergo 1.0",
"limit": { "context": 1048568, "output": 32768 },
"options": { "reasoningEffort": "medium" }
}
}
}
},
"model": "bedrock-runtime/global.amazon.ergo-1.0"
}
I lowered limit.output from the 131,072 max down to 32768 here because Bedrock reserves the full output limit you request against your account quota on every call. Keeping it realistic helps you avoid 429 (too many requests) errors.
Codex CLI
If you use the Codex CLI, it talks directly to Bedrock’s Responses API.
Add this block to ~/.codex/config.toml:
model = "global.amazon.ergo-1.0"
model_provider = "bedrock-runtime"
model_reasoning_effort = "medium"
web_search = "disabled"
model_context_window = 1048568
[model_providers.bedrock-runtime]
name = "Amazon Bedrock"
base_url = "https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1"
env_key = "AWS_BEARER_TOKEN_BEDROCK"
wire_api = "responses"
Set export AWS_REGION=us-west-2 in your shell too, because Codex does not read the region from your AWS CLI profile.
Leaving web_search = "disabled" is required because Codex’s built-in server-side web search tool is not supported through this endpoint.
Claude Code (via LiteLLM proxy)
Claude Code expects the Anthropic Messages API, so it cannot talk to Bedrock’s Ergo endpoint directly.
Amazon recommends running a tiny local LiteLLM proxy to translate requests.
Save this file as ~/ergo-claude-code/litellm.yaml:
model_list:
- model_name: global.amazon.ergo-1.0
litellm_params:
model: openai/global.amazon.ergo-1.0
api_base: https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1
api_key: os.environ/AWS_BEARER_TOKEN_BEDROCK
extra_body:
reasoning:
effort: medium
litellm_settings:
drop_params: true
general_settings:
master_key: sk-ergo-local
Start the local proxy with uv:
uv tool run --from 'litellm[proxy]' litellm \
--config ~/ergo-claude-code/litellm.yaml --host 127.0.0.1 --port 4000
Then launch Claude Code pointed at http://127.0.0.1:4000 in another terminal:
ANTHROPIC_BASE_URL="http://127.0.0.1:4000" \
ANTHROPIC_AUTH_TOKEN="sk-ergo-local" \
ANTHROPIC_MODEL="global.amazon.ergo-1.0" \
CLAUDE_CODE_MAX_CONTEXT_TOKENS="1048568" \
claude
Option 4: Self-hosting on your own GPUs
Open weights still require serious hardware to run locally.
Even the smallest MXFP4 checkpoint is 626 GB on disk, and with the KV cache for long contexts, you’ll need a multi-GPU server, like an 8x H200 node or a 4x GB300 tray. If you’re wondering when owning or renting GPUs beats paying per token, see my local LLM vs API cost breakdown.
If you have datacenter hardware, both vLLM and SGLang shipped day-one support.
Here is the official baseline vLLM command for a 4x GB300 setup using MXFP4 weights and the DSpark speculative draft model:
export VLLM_USE_RUST_FRONTEND=1
vllm serve Amazon-FMR/Ergo \
--max-model-len 1048576 \
--override-generation-config '{"max_new_tokens": 131072}' \
--enable-prefix-caching \
--async-scheduling \
--enable-expert-parallel \
--tensor-parallel-size 4 \
--enable-auto-tool-choice \
--tool-call-parser ergo \
--tool-strict-level function \
--reasoning-parser ergo \
--speculative-config '{"method":"dspark","model":"Amazon-FMR/Ergo-dspark","num_speculative_tokens":8,"attention_backend":"FLASH_ATTN","draft_sample_method":"probabilistic","rejection_sample_method":"block"}' \
--draft-kv-pool
Until Ergo lands in a stable vLLM release, Amazon and the vLLM team provide the dedicated vllm/vllm-openai:amazon-fmr-ergo container image.
How I would use Amazon Ergo
I would not replace Opus 5.5, Fable 5.2, or GPT-6.2 Astra with Ergo as my main architect model. Those closed models still beat it by a wide margin when a task needs careful first-attempt design, or runs across dozens of steps without hand-holding.
Where I would use Ergo is high-speed, test-verified coding loops and bulk text work.
Take this website (flaviocopes.com) or one of my Swift Mac apps. When I have a clear spec and an automated check that catches mistakes right away (an Astro build, a link checker, a node --test suite, or xcodebuild test), running Ergo through OpenCode or OpenRouter at 400+ tokens per second and $3 per million output tokens is a great fit. The $0.03 per million cached input rate also makes it cheap to feed the same repository docs or style rules over and over across dozens of turns.
I’d also look at it for batch backend pipelines: triaging support emails, checking markdown posts against a rubric, or generating structured JSON summaries over large folders of text where closed flagship models burn through budgets quickly.
I would skip Ergo for 3 things:
- Frontend and visual debugging. Because Ergo is text-only, I can’t paste a screenshot of a broken CSS layout or a macOS window and ask what looks wrong.
- Hard one-shot planning. When I want the right architecture on the first pass without a test loop, I’d still pay for a closed frontier model.
- Tiny low-latency autocomplete or simple Q&A. Mandatory reasoning means Ergo always spends extra tokens thinking before it replies, so a tiny non-reasoning model is faster and cheaper for simple classification or quick rewrites.
For most of us, solo developers and small teams, the real story is not downloading 626 GB of weights.
The real story is having a fast, US-hosted open-weights coding model on Bedrock and OpenRouter at $1/$3 with a 97% cache discount, and knowing that if I ever need, I can move those exact weights to another host, or to my own cluster.
Want me to talk about your product? You can sponsor this site.
Related posts about ai: