Skip to content

AI Strategy16 min read

How to Use Amazon Ergo on Bedrock: A Business Setup Guide

How to use Amazon Ergo on Bedrock: IAM access, the exact model IDs, US vs Global profiles, a Python API example, Kiro and Claude Code setup and cost controls.

Illustration: a code terminal wired to a cloud, an access key, a budget gauge and a pilot checklist on a lime background.
On this page11 sections
  1. What do you need before you use Amazon Ergo?
  2. What is the Amazon Ergo model ID on Bedrock?
  3. Which profile should a US, Canadian or EU business pick?
  4. How to use Amazon Ergo on Bedrock: step by step
  5. How do you use Amazon Ergo in Kiro, Claude Code, Codex or OpenCode?
  6. Can you use Amazon Ergo through OpenRouter or Hugging Face instead?
  7. How do you control Amazon Ergo costs?
  8. Common Amazon Ergo errors and fixes
  9. Mistakes to avoid
  10. Pilot checklist: what to do this week
  11. Questions people ask

Amazon announced Ergo on December 1, 2026, at AWS re:Invent. Within a day, "how to use amazon ergo", "amazon ergo api key" and "amazon ergo model" were showing up in Google's search suggestions. Most pages ranking for them are launch news or benchmark tables. Few tell you what to type.

This guide shows how to use Amazon Ergo in a small or mid-size business, step by step. You can do it this week. It covers access rights, the exact model IDs and which profile to pick in the US, Canada or the EU. It also gives a working Python and AWS CLI example, the coding tools, cost controls and the errors you will likely hit first.

Every ID, setting and price below comes from AWS's Bedrock model card and its coding-tools page, Kiro's docs, OpenRouter and Hugging Face, checked on December 4, 2026. New on Ergo? Start with our plain-English explainer of what Amazon Ergo is.

What do you need before you use Amazon Ergo?

Amazon Ergo is Amazon's open-weights AI model for coding and AI agents: a 1.1-trillion-parameter mixture-of-experts model that uses 55 billion parameters per token. It reads up to 1 million tokens, writes up to 128K, and handles text only. "Open-weights" means you can download the trained model; it does not mean open source, and it comes with a custom license.

You need four things:

  1. An AWS account with a payment method. If you are new to AWS, sign up first.
  2. An IAM identity (a user or role) that is allowed to call Ergo. IAM is AWS's permission system.
  3. A Region to send requests from. Ergo runs through cross-Region inference, so the Region you call from decides which profiles you can use.
  4. A use case you can measure. One workflow, one owner, one success number.

There are five ways to use Ergo. Pick yours before you set anything up:

RouteBest forWhat it costsData location
Amazon Bedrock APIApps, internal tools, agents$1 / $3 per 1M tokens (Global), $1.10 / $3.30 (US)US-only or Global
Kiro (Preview)Developers who want it built inKiro credits at a 1.2x multiplier; paid plans onlyUS only
Codex, OpenCode, Claude CodeDevelopers using those toolsBedrock token pricesSame as your Bedrock profile
OpenRouterTrying several models with one key$0.85 to $1.10 input, $2.65 to $3.30 output per 1M, by providerDepends on provider; no EU in-region routing
Self-host from Hugging FaceLarge firms with GPU serversYour hardware; the smallest download is 626 GBWherever you run it

For the full cost picture, including self-hosting, see our guide to whether Amazon Ergo is free and what it really costs.

What is the Amazon Ergo model ID on Bedrock?

The base model ID is amazon.ergo-1.0, but you cannot call it directly. AWS's coding-tools guide says to "use an inference profile ID, not the base model ID, in all API calls." If you send the base ID, Bedrock returns a 400 error saying in-Region invocation isn't supported.

IDWhat it isPrice per 1M tokens (input / output / cached input)Who can use it
amazon.ergo-1.0Base model ID; use only in IAM policiesNot callablen/a
us.amazon.ergo-1.0US Geo profile; requests stay in US Regions$1.10 / $3.30 / $0.033Callers in us-east-1, us-east-2, us-west-1, us-west-2
global.amazon.ergo-1.0Global profile; can route to any Region where Ergo runs$1.00 / $3.00 / $0.03Callers in most commercial Regions

Both profiles run on the bedrock-runtime endpoint and support four APIs: Converse, InvokeModel, and the OpenAI-compatible Chat Completions and Responses APIs. The model card also lists streaming, prompt caching, tool use, structured outputs, Guardrails, invocation logging and batch inference. Knowledge Bases and the count-tokens API are not supported.

On Bedrock, AWS says Ergo runs with zero data retention and zero operator access. In plain words: AWS staff can't see your data, and it is not used to train models.

How to set up Amazon Ergo on Amazon BedrockSetting up Amazon Ergo on Amazon Bedrock takes four steps. First, give the IAM user or role permission to invoke the Ergo inference profiles. Second, decide where your data may go: if requests must stay in US Regions, call the US profile us.amazon.ergo-1.0, which costs 1 dollar 10 per million input tokens; otherwise call the Global profile global.amazon.ergo-1.0, which costs 1 dollar and can route to any Region where Ergo runs. Customers in Canada and the EU can only use the Global profile. Third, make a first API call with an output limit of at least 8,192 tokens, because Ergo always reasons and spends part of that limit thinking. Fourth, set a budget alarm and run one measured pilot.1. IAM permissioninvoke the Ergo profiles2. Must data stay in US?yesUS profileus.amazon.ergo-1.0noGlobal profileglobal.amazon.ergo-1.03. First API calloutput limit 8,192+ tokens4. Budget alarm, then pilotone workflow, measured
Permissions, profile, first call, budget. The profile choice decides where your data can travel.

Which profile should a US, Canadian or EU business pick?

Pick the US profile if your data must stay in the United States; otherwise the Global profile is 10% cheaper. That is the whole decision for US firms. For everyone else, there is only one option.

AWS's model card is explicit: Ergo is available through "US Geo and Global cross-Region inference only. In-Region inference is not supported." Its Region table shows:

  • United States: callers in N. Virginia, Ohio, N. California and Oregon can use both profiles. AWS's announcement says the US profile routes only among those four Regions; as of December 4, 2026, the model card's routing table sends all of them to Ohio.
  • Canada and the EU: ca-central-1, Calgary, Frankfurt, Ireland, London, Paris, Stockholm, Milan, Spain and Zurich get the Global profile only. AWS says Global "can route requests to any Region where the model is enabled," including Asia Pacific.
  • Not available at all: China, Hong Kong and AWS's Middle East Regions (UAE, Saudi Arabia, Bahrain).

So a firm in Canada or Germany can't keep Ergo requests in its own country on Bedrock today. What if your contracts or privacy rules require that? You have three choices. Keep personal data out of Ergo prompts. Use a model with an EU or single-Region option; our Ergo vs Nova comparison covers one. Or host the weights yourself. Before you send anything sensitive, use our checklist on whether it is safe to put company data into an AI tool. The same questions apply here.

Ergo price per million input / output tokens on Bedrock's Global profile (AWS model card)
$1 / $3
Minimum output-token limit AWS recommends, because Ergo reasons first (AWS coding-tools guide)
8,192
Kiro credit multiplier for Amazon Ergo in Preview, paid plans only (Kiro docs)
1.2x

How to use Amazon Ergo on Bedrock: step by step

Here is the setup we would follow for a small team. It takes an afternoon for someone comfortable with the AWS console.

  1. Sign in with a non-root identity. Create an IAM user or, better, a role your app assumes. Never use the root account for API calls.

  2. Attach the Ergo invoke policy. This is the policy AWS publishes in its coding-tools guide. It allows both profiles and the base model:

{
  "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"
      ]
    }
  ]
}

If your data must stay in the US, delete the global line so nobody can use the Global profile by mistake.

  1. "Enable model access": there is nothing to request. In commercial Regions, Bedrock now enables most models on first use. AWS says the old Model access page applies only to GovCloud. Amazon's own models are not sold through AWS Marketplace, so no Marketplace subscription is involved. Your first call is the test.

  2. Choose how you authenticate. Code running on AWS should use its IAM role. For a quick test from a laptop, AWS's guide shows two options: create a long-term Bedrock API key in the Bedrock console and store it as the environment variable AWS_BEARER_TOKEN_BEDROCK, or generate a short-term key with the aws-bedrock-token-generator package. Short-term keys expire, which is what you want outside a test.

  3. Make your first call with the Converse API. Converse is Bedrock's standard chat API and works the same way across models. Install boto3 and run:

import boto3

# Call from a US Region to use the US profile; from Canada or the EU, use the Global profile.
client = boto3.client("bedrock-runtime", region_name="us-east-1")

response = client.converse(
    modelId="us.amazon.ergo-1.0",  # or "global.amazon.ergo-1.0"
    system=[{"text": "You are a careful assistant for a small business. Answer briefly."}],
    messages=[
        {"role": "user", "content": [{"text": "List 3 risks of letting an AI agent edit our invoices."}]}
    ],
    inferenceConfig={"maxTokens": 8192},  # Ergo reasons first; keep this at 8,192 or more
)

for block in response["output"]["message"]["content"]:
    if "text" in block:
        print(block["text"])

print(response["stopReason"], response["usage"])

The loop prints only text blocks, because a reasoning model's reply can also contain reasoning blocks. The usage line shows input and output tokens, which is what you pay for.

The same call from the AWS CLI:

aws bedrock-runtime converse \
  --region us-east-1 \
  --model-id us.amazon.ergo-1.0 \
  --messages '[{"role":"user","content":[{"text":"Say hello in one sentence."}]}]' \
  --inference-config '{"maxTokens":8192}'
  1. Set the reasoning effort if you need it. Ergo always reasons: Bedrock lets you set the reasoning effort from low to max, but not turn it off. AWS's sample shows the setting on the OpenAI-compatible Chat Completions API, which uses your Bedrock API key:
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",  # or "us.amazon.ergo-1.0"
    messages=[{"role": "user", "content": "Write a Python function that reverses a string."}],
    reasoning_effort="medium",       # low | medium | high | xhigh | max ("none" returns 400)
    max_completion_tokens=8192,      # reasoning uses part of this; keep >= 8192
)
print(resp.choices[0].message.content)
print(resp.usage)

Start at low or medium for routine work. Higher effort means more reasoning tokens, and those bill as output at $3 per million.

  1. Turn on invocation logging and a budget alarm before anyone else uses it. The next section shows how.

How do you use Amazon Ergo in Kiro, Claude Code, Codex or OpenCode?

Kiro has Ergo built in; Codex and OpenCode connect to Bedrock with a config file; Claude Code needs a small proxy. All except Kiro bill your AWS account at Bedrock prices.

ToolHow it connectsSetup effortNote
KiroBuilt in, PreviewRestart the IDE or CLI, or refresh Kiro Web, to load the model listPaid plans only; US-only inference
OpenCodeChat Completions API, direct to BedrockOne JSON config fileKeep the output limit close to what you need
Codex CLIResponses API, direct to BedrockOne TOML config fileMust disable web search; set AWS_REGION
Claude CodeLocal LiteLLM proxy, then Bedrock Responses APIProxy plus a launcher scriptAWS documents this route on the model card

Kiro. Kiro's changelog says Ergo is rolling out in Preview on paid plans: Pro, Pro+, Pro Max and Power, plus Kiro enterprise users. It is not on the Free tier. It has a 1M-token context window and costs 1.2x the usual credits. Kiro's docs say "inference runs only in the US geography." Two cautions for a business. First, during Preview Kiro lists Ergo as an Excluded Model, so the output indemnity in the AWS Service Terms does not apply. Second, enterprise admins can hide or allow it with Kiro's model settings.

OpenCode. AWS's guide adds a short block of settings 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": 131072 },
          "options": { "reasoningEffort": "medium" }
        }
      }
    }
  },
  "model": "bedrock-runtime/global.amazon.ergo-1.0"
}

AWS warns that "each request reserves its full output limit against your account's quota," so lower output from 131,072 if your team hits throttling.

Codex CLI. Install with npm i -g @openai/codex, then add 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"

Also set AWS_REGION=us-west-2 in your shell profile; Codex does not read the Region from your AWS CLI profile. A "model metadata not found" message at startup can be ignored, per AWS.

Claude Code. Claude Code speaks Anthropic's Messages API, so AWS's model card says it "requires a LiteLLM proxy." Save this 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   # any local placeholder; must match ANTHROPIC_AUTH_TOKEN below

Start the proxy with uv, then launch Claude Code pointed at it:

uv tool run --from 'litellm[proxy]' litellm \
  --config ~/ergo-claude-code/litellm.yaml --host 127.0.0.1 --port 4000

# in a launcher script, e.g. ~/ergo-claude-code/claude-ergo
export ANTHROPIC_BASE_URL="http://127.0.0.1:4000"
export ANTHROPIC_AUTH_TOKEN="sk-ergo-local"
export ANTHROPIC_MODEL="global.amazon.ergo-1.0"
export ANTHROPIC_DEFAULT_OPUS_MODEL="global.amazon.ergo-1.0"
export ANTHROPIC_DEFAULT_SONNET_MODEL="global.amazon.ergo-1.0"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="global.amazon.ergo-1.0"
export CLAUDE_CODE_SUBAGENT_MODEL="global.amazon.ergo-1.0"
export CLAUDE_CODE_MAX_CONTEXT_TOKENS="1048568"
unset CLAUDE_CODE_USE_BEDROCK
exec claude "$@"

If your ~/.claude/settings.json sets CLAUDE_CODE_USE_BEDROCK or ANTHROPIC_MODEL, those override the launcher. Wondering whether Ergo should replace Claude for your developers at all? Our Amazon Ergo vs Claude Opus 5.5 comparison looks at cost per task and quality.

Can you use Amazon Ergo through OpenRouter or Hugging Face instead?

Yes. OpenRouter is the quickest way to try Ergo without an AWS account; Hugging Face is for self-hosting.

OpenRouter. The model slug is amazon/ergo-1.0. On December 4, 2026, OpenRouter listed 11 endpoints from 9 providers, including both Bedrock profiles, with input prices from $0.85 to $1.10 and output from $2.65 to $3.30 per million tokens. Its API lists tools, structured outputs and a reasoning setting as supported, and marks reasoning as mandatory. OpenRouter notes Ergo is not available through its EU in-region routing. Each provider has its own data terms, so check them before you send customer data, or restrict your requests to Amazon Bedrock.

Hugging Face. The weights live at Amazon-FMR/Ergo under the Amazon Ergo Open-Weights License. The default MXFP4 download is 626 GB; MXFP8 is 1.17 TB and BF16 is 2.22 TB. The model card supports vLLM and SGLang from day one, plus Docker Model Runner. With vLLM, serving is one command:

pip install vllm
vllm serve "Amazon-FMR/Ergo"

That command needs a large multi-GPU server, not a desktop PC. The license allows commercial use and fine-tuning. One limit: a firm that sells model access as a service and makes more than US$20 million in any 12 months needs a separate deal with Amazon. This is the $20M Model-as-a-Service clause.

Fine-tuning. AWS says you can tune Ergo on your own data in SageMaker AI, "using ready-to-use recipes or your own." We found no Ergo recipe details yet on the pages we checked. Start from the SageMaker AI docs on custom models.

How do you control Amazon Ergo costs?

Cap output tokens, pick the lowest reasoning effort that works, and set a budget alarm on day one. Ergo's per-token price is low, but it always reasons, and reasoning bills as output.

  • Create an AWS Budgets alert. In the Billing and Cost Management console, choose Budgets, create a monthly cost budget, and add email alerts at thresholds you choose, for example 50%, 80% and 100%. Budget data is not real-time, so treat it as a backstop, not a hard stop.
  • Tag usage with an application inference profile. The model card says Ergo supports application inference profiles, which let you attach cost-allocation tags per project or client, so you can see which workflow is spending.
  • Turn on invocation logging. Logs show what was sent and returned, which you need for both cost reviews and audits. Store them where your data rules allow.
  • Right-size the output limit. Keep it at 8,192 or more, but no higher than the task needs; every request reserves its full limit against your quota.
  • Use prompt caching for repeated context. Cached input costs $0.03 per million tokens on the Global profile, against $1 for fresh input.
  • Measure cost per finished task, not per token. A cheap model that needs three retries is not cheap.

Common Amazon Ergo errors and fixes

These come from AWS's own troubleshooting table, plus what each means in plain words.

ErrorWhat it meansFix
400 "Invocation of model ID amazon.ergo-1.0 with in-region isn't supported"You used the base model IDUse global.amazon.ergo-1.0 or us.amazon.ergo-1.0
400 "The provided model identifier is invalid"Wrong Region, or the account can't use ErgoCall from a supported Region; check account access
400 when setting reasoning effort to noneErgo cannot turn reasoning offUse low to max
403 AccessDeniedExceptionIAM policy missingAttach the invoke policy above
403 UnrecognizedClientExceptionAPI key missing or expiredSet AWS_BEARER_TOKEN_BEDROCK; regenerate short-term keys
429 ThrottlingExceptionQuota used up; large output limits reserve more of itRetry later, lower the output limit, or request an increase in Service Quotas
Empty answer, stop reason max_tokensReasoning used the whole output limitRaise the limit to at least 8,192 tokens
Codex: web_search tool errorBedrock doesn't support that built-in tool hereSet web_search = "disabled"

Mistakes to avoid

  • Hard-coding the base model ID. It looks right and fails every time. Always use a profile ID.
  • Choosing Global by default in a regulated business. Global can send requests to Asia Pacific. Decide the profile with whoever owns your privacy obligations, not the developer alone.
  • Assuming Kiro keeps EU or Canadian data at home. Kiro runs Ergo inference in the US only.
  • Long-term API keys on laptops. They can be set to last for months, or never expire. Use IAM roles in production and short-term keys for testing.
  • Max effort everywhere. Start low, raise it only for the tasks that fail.
  • Sending images or PDFs. Ergo is text-only. Extract the text first, or use a multimodal model for that step.

Pilot checklist: what to do this week

  • Pick one text-only workflow with a clear success measure (for example, first-draft replies to support tickets, or code review comments).
  • Decide US or Global profile, in writing, with your privacy lead.
  • Create the IAM role and attach the invoke policy, with only the profile you chose.
  • Make one Converse call and confirm stopReason is end_turn, not max_tokens.
  • Turn on invocation logging and a monthly AWS Budgets alert.
  • Run 50 to 100 real examples, have a person grade every output, and record cost per finished task.
  • Compare the result against the model you use today before you switch anything.

Amazon Ergo is easy to switch on and cheap to test; the hard part is choosing the right job, the right profile and the right guardrails. If you want help picking the first workflow, setting up Bedrock safely or measuring a pilot, tell us your goal or see how we work. For the bigger picture, compare Ergo with other open models in our Ergo vs Kimi K3.1 vs GLM 5.4 guide.

Sources

Questions people ask

How do I use Amazon Ergo?

The simplest business route is Amazon Bedrock. Give your IAM user or role permission to invoke Ergo, pick the US profile (us.amazon.ergo-1.0) or the Global profile (global.amazon.ergo-1.0), and call it with the Converse API, the OpenAI-compatible Chat Completions or Responses API, or InvokeModel. Set the output limit to at least 8,192 tokens. Developers can also use it inside Kiro, Codex, OpenCode or Claude Code.

What is the Amazon Ergo model ID on Bedrock?

The base model ID is amazon.ergo-1.0, but AWS says it cannot be called directly; calling it returns a 400 error about in-Region inference. Use an inference profile ID instead: us.amazon.ergo-1.0 keeps requests in US Regions and costs $1.10 and $3.30 per million input and output tokens, while global.amazon.ergo-1.0 can route worldwide and costs $1 and $3.

Do I need to request model access for Amazon Ergo?

In commercial AWS Regions there is no access form to submit. Bedrock now enables most models on first use, and the old Model access page applies only to AWS GovCloud. What you do need is an IAM policy that allows bedrock:InvokeModel and bedrock:InvokeModelWithResponseStream on the Ergo inference profiles. A 403 AccessDeniedException usually means that policy is missing.

Can I use Amazon Ergo with Claude Code?

Yes, but not directly. Claude Code speaks Anthropic's Messages API, so AWS's model card says to run a local LiteLLM proxy that translates Claude Code's requests into Bedrock Responses API calls. You point Claude Code at the proxy with ANTHROPIC_BASE_URL and set the model to global.amazon.ergo-1.0. Codex CLI and OpenCode connect to Bedrock directly with a Bedrock API key.

Is Amazon Ergo available in Kiro?

Yes, in Preview since December 1, 2026. Kiro offers it to Pro, Pro+, Pro Max and Power subscribers and Kiro enterprise users, not on the Free tier. It uses a 1.2x credit multiplier and runs inference only in the US. While in Preview it is a Kiro Excluded Model, so the output indemnity in the AWS Service Terms does not apply.

Can businesses in Canada or the EU use Amazon Ergo?

Yes, but only through the Global profile on Bedrock, which can route requests to any Region where Ergo runs, including Asia Pacific. There is no Canada-only, EU-only or single-Region option, and Kiro runs Ergo inference in the US only. If your contracts or data rules require in-country processing, Bedrock's Ergo profiles do not meet that today.

Keep reading

All posts

Want this working in your business?

Tell us what you want to get done. We will tell you if AI can help.