How to use Amazon Ergo comes down to two routes. Call it as a hosted API on Amazon Bedrock with the model ID global.amazon.ergo-1.0 and the OpenAI SDK, at $1 per million input tokens and $3 per million output tokens. Or download the open weights from Hugging Face and serve them yourself with vLLM or SGLang. The hosted route takes minutes. The local route needs a datacenter GPU node, not a laptop.
Amazon released Ergo . It’s a 1.1 trillion parameter mixture-of-experts model with 55 billion active parameters per token, a 1M-token context window and a 128K output limit, built for coding agents and long-running tasks.

Amazon Ergo setup options at a glance
Pick the route by what you have: an AWS account, or a rack of recent NVIDIA GPUs.
| Route | What you need | Cost | Best for |
|---|---|---|---|
| Amazon Bedrock API | AWS account, Bedrock API key | $1 input / $3 output per 1M tokens (Global profile) | Apps, agents, prototypes |
| Self-hosted with vLLM | 4x GB300, or 8x H200, B300, B200 or GB200 | Your hardware and power | Private data, fine-tuning, heavy steady load |
| Self-hosted with SGLang | Same GPU classes, or AWS Trainium3 | Your hardware or EC2 bill | Teams already running SGLang |
The Hugging Face model card lists three checkpoints: MXFP4 (626 GB), MXFP8 (1.17 TB) and BF16 (2.22 TB).

How to call the Amazon Ergo API on Bedrock
The fastest way to use Amazon Ergo is the Bedrock API. Its OpenAI-compatible endpoint means the OpenAI Python SDK works with a new base URL and key.
- Sign in to the AWS console and open Amazon Bedrock.
- Under API keys, choose Create long-term key and export it as
AWS_BEARER_TOKEN_BEDROCK. - Attach an IAM policy that allows
bedrock:InvokeModelandbedrock:InvokeModelWithResponseStreamon the Ergo inference profiles. - Install the SDK with
pip install -U openai. - Call the model with an inference profile ID, not the base model ID.
Per the Bedrock model card, the base ID amazon.ergo-1.0 can’t be called directly. Use global.amazon.ergo-1.0 from any commercial Region, or us.amazon.ergo-1.0 to keep traffic in US Regions.
Your first Amazon Ergo API request
import os
from openai import OpenAI
client = OpenAI(
base_url="https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1",
api_key=os.environ["AWS_BEARER_TOKEN_BEDROCK"],
)
resp = client.chat.completions.create(
model="global.amazon.ergo-1.0",
messages=[
{"role": "system", "content": "You are a helpful coding assistant."},
{"role": "user", "content": "Write a Python function that reverses a string."},
],
reasoning_effort="medium", # low | medium | high | xhigh | max
max_completion_tokens=8192, # reasoning uses part of this budget
)
print(resp.choices[0].message.content)
print(resp.usage)
The same request in curl, if you want to check the endpoint from a terminal:
curl https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1/chat/completions \
-H "Authorization: Bearer $AWS_BEARER_TOKEN_BEDROCK" \
-H "Content-Type: application/json" \
-d '{
"model": "global.amazon.ergo-1.0",
"messages": [{"role": "user", "content": "Reply with the single word OK."}],
"reasoning_effort": "low",
"max_completion_tokens": 8192
}'
Bedrock also serves Ergo through the Responses API and the boto3 Converse and InvokeModel APIs. The OpenAI-compatible route has one advantage: the same client code works against a self-hosted server later.
Tool calling with Ergo
Client-side tool calling works the way it does on OpenAI models: pass a tools array, Ergo returns tool_calls, your code runs the function, and you send the result back as a tool message.

Bedrock supports streaming, prompt caching, structured outputs and batch inference, but not server-side web search, so keep search tools on your side. Cached input costs $0.03 per million tokens, which adds up in your favor when an agent resends a long system prompt every turn.
How to run Amazon Ergo locally
Running Amazon Ergo locally means on hardware you control, and the hardware bar is high. The smallest checkpoint is 626 GB. The SGLang cookbook lists these minimum NVIDIA footprints:
| Checkpoint | Download | Minimum GPUs |
|---|---|---|
MXFP4 (Amazon-FMR/Ergo) |
626 GB | 4x GB300, or 8x Vera Rubin, B300, B200 or GB200, or 2x DGX Station |
MXFP8 (Amazon-FMR/Ergo-mxfp8) |
1.17 TB | 8x GB300, B300, GB200 or B200 |
BF16 (Amazon-FMR/Ergo-bf16) |
2.22 TB | 16x GB300, B300, GB200 or B200 |
The vLLM recipe adds a preset for one 8x H200 node. No consumer GPU or laptop will hold this model. If that’s your setup, use Bedrock, or try a smaller model like the one in our guide to running ERNIE 5.5 Flash locally with vLLM.
Step 1: Download the weights
pip install -U huggingface_hub
hf download Amazon-FMR/Ergo --local-dir ./Ergo
The repo isn’t gated. Budget 626 GB of disk, plus 6.48 GB for the DSpark draft model (Amazon-FMR/Ergo-dspark) used for speculative decoding.
Step 2: Serve Ergo with vLLM
Ergo support isn’t in a tagged vLLM release yet. The recipe says to use the dedicated image vllm/vllm-openai:amazon-fmr-ergo, which ships for x86_64 (B300, H200) and arm64 (GB300, GB200). This is the recipe’s default configuration for 4x GB300:
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
Keep the ergo tool-call and reasoning parsers, or tool calls come back as raw text. For other hardware, copy the matching preset from the recipe page instead of guessing flags. New to vLLM? Our vLLM guide covers the basics.
Step 3: Call your local Ergo server
vLLM serves the same OpenAI-compatible API on port 8000 by default, so your Bedrock code changes in two lines:
client = OpenAI(base_url="http://localhost:8000/v1", api_key="not-needed")
resp = client.chat.completions.create(
model="Amazon-FMR/Ergo",
messages=[{"role": "user", "content": "Reply with the single word OK."}],
max_completion_tokens=8192,
)
On multi-tray setups, the recipe fronts the engines with vllm-router; send an X-Session-ID header per conversation so turns reuse the prefix cache. SGLang also supports Ergo, including on AWS Trainium3 (trn3.48xlarge).
Amazon Ergo settings that cause first-day errors
Most failed first calls come from four settings. These come from the Bedrock coding tools guide:
| Symptom | Cause | Fix |
|---|---|---|
400 ... with in-region isn't supported |
Base model ID used | Use global.amazon.ergo-1.0 or us.amazon.ergo-1.0 |
400 on reasoning_effort |
Set to none |
Ergo always reasons; use low or higher |
Empty answer, finish_reason: "length" |
Output limit too low | Set max_completion_tokens to at least 8,192 |
403 UnrecognizedClientException |
Missing or expired key | Re-export AWS_BEARER_TOKEN_BEDROCK |
429 ThrottlingException |
Account quota used up | Lower the output limit or request a quota increase |
Each request reserves its full output limit against your quota, so start at 8,192 and raise it only for long generations. Ergo is also text-only in this release.
Let your coding agent test Ergo with Apidog CLI
Bedrock and your own vLLM node take the same request, so let your coding agent describe the endpoint once and run one smoke test against each backend before you ship. Apidog CLI gives the agent the commands to do it.
npm install -g apidog-cli@latest
apidog auth login --with-token <YOUR_TOKEN>
apidog skill install
Then give your agent one prompt:
In Apidog project <projectId>, create a POST /chat/completions endpoint for
Amazon Ergo with model, messages, reasoning_effort (low|medium|high|xhigh|max)
and max_completion_tokens (minimum 8192), sending "Authorization: Bearer
{{api_key}}". Add an environment "Ergo on Bedrock" with base URL
https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1 and model
global.amazon.ergo-1.0. Add a test case that asks for the single word OK
and asserts status 200 and a non-empty choices[0].message.content.
Validate every payload against the CLI schema, run it and tell me why
anything fails.
The agent checks each payload against the schema before it writes, then runs the case:
apidog cli-schema validate endpoint-create --file endpoint.json
apidog endpoint create --project <projectId> --file endpoint.json
apidog environment create "Ergo on Bedrock" --project <projectId> --base-url https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1
apidog cli-schema validate test-case-create --file case.json
apidog test-case create --project <projectId> --file case.json
apidog run --test-case <caseId> --project <projectId> -e <envId> -r cli

We ran it in a sandbox with no Bedrock key set: Bedrock answered 401 and the report says exactly why. Pass your key with --env-var "api_key=$AWS_BEARER_TOKEN_BEDROCK" and rerun. For your vLLM node, add an environment at http://<gpu-host>:8000/v1 and run the same case with its -e ID. The same apidog run line with -r junit drops into a pipeline, as our Apidog CLI CI/CD guide shows. Setting the agent up first? See Apidog CLI in Claude Code.
Once a team runs these checks across several models and backends, Sharkly lets you hand each one out as a task to coding agents running on your own computers with your own Claude Code, Codex or OpenCode plans, then review what they ship before it merges. It’s free to start.
Which Amazon Ergo route should you pick?
Start on Bedrock. You get the model in minutes, zero data retention (Amazon says it doesn’t store prompts or outputs), and a bill you can measure before buying hardware. Our Bedrock vs OpenRouter vs direct API pricing breakdown helps if you’re comparing hosts.
Self-host when your data can’t leave your network, you want to fine-tune, or steady volume makes a GPU node cheaper than per-token billing. The switch is a base URL and a model name.
For coding work, Bedrock’s guide covers OpenCode and Codex CLI directly and Claude Code through a LiteLLM proxy; our LiteLLM guide explains the proxy.
FAQ
Is Amazon Ergo free to use? The weights are free under the Amazon Ergo Open-Weights License, including commercial use under its acceptable use policy. Running them isn’t free: you pay for GPUs, or for Bedrock tokens at $1 per million input and $3 per million output on the Global profile.
Can I run Amazon Ergo on a laptop or a single GPU? No. The smallest checkpoint is 626 GB, and the published minimum is a 4x GB300 node, an 8-GPU H200 or Blackwell node, or 2x DGX Station. Use the Bedrock API on smaller machines.
What is the Amazon Ergo model ID on Bedrock? Use the inference profile global.amazon.ergo-1.0 or us.amazon.ergo-1.0. The base ID amazon.ergo-1.0 returns a 400 error when called directly.
Does the Amazon Ergo API work with the OpenAI SDK? Yes. Point the client at https://bedrock-runtime.<region>.amazonaws.com/openai/v1 with your Bedrock API key. Chat Completions and the Responses API both work, and self-hosted vLLM serves the same Chat Completions format.
Why does Ergo return an empty answer? Ergo always reasons, and reasoning tokens count against your output limit. If max_completion_tokens is below 8,192, it can run out before it answers and return finish_reason: "length".



