📍 Independent. Unsponsored. Reliable.

How to Use Amazon Ergo: Bedrock, Hugging Face, Kiro and Coding Tools Step by Step

Here is how to use Amazon Ergo the fastest way, through Amazon Bedrock: pick the Global inference profile, call it with the Converse API and the model ID global.amazon.ergo-1.0, and you get a response in …

Dark card titled How to Use Amazon Ergo with a browser window showing a prompt symbol, a gear and an arrow linking two small boxes, with the subline Bedrock, Kiro and Hugging Face step by step.

Here is how to use Amazon Ergo the fastest way, through Amazon Bedrock: pick the Global inference profile, call it with the Converse API and the model ID global.amazon.ergo-1.0, and you get a response in about ten lines of Python. You can also download the open weights from Hugging Face, select Ergo in Kiro, or point a coding tool at it.

This guide is for developers and technical leads who have decided to try Ergo and want working steps, plus the settings that decide your bill and your results. It covers four paths in order of effort, the reasoning-effort setting that is easy to miss, tool use, prompt caching and the mistakes most likely to cost you time.

The code samples here come from Amazon’s published Bedrock model card, Hugging Face card and the vLLM and SGLang launch posts, as of December 4, 2026. We have not run them ourselves, so test each one in a sandbox account before you rely on it.

What do you need before you start using Amazon Ergo?

You need an AWS account with Bedrock access in a Region that supports the Global profile, plus either AWS credentials or a Bedrock API key. For the open weights you need a Hugging Face account and a lot of GPU memory. Decide your path first, because the requirements differ by an order of magnitude.

Use this table to choose where to begin.

Path You need Time to first response Best for
Amazon Bedrock AWS account, credentials or a Bedrock API key Minutes Almost everyone starting out
Kiro A paid Kiro plan; preview access Minutes Trying Ergo inside an AI coding environment
Coding tools (Claude Code, Codex, OpenCode) A Bedrock endpoint; a LiteLLM proxy for Claude Code An hour Teams that already live in one of these tools
Hugging Face weights A multi-GPU server and 626 GB or more of disk A day or more Data-control, research or fine-tuning needs

How to use Amazon Ergo on Bedrock with the Converse API

Create a bedrock-runtime client, then call converse with modelId set to global.amazon.ergo-1.0 and your prompt as a message. The Global profile routes the request across Regions at the $1 and $3 rates. Bedrock has no in-Region option for Ergo, so you must use a profile, never the bare model ID, for live traffic.

Step 1: Confirm access

Open the Bedrock console in one of your Regions and check that Ergo appears in the model catalog. Amazon’s model card lists Global cross-Region support from most Regions, including us-east-1, us-west-2 and many EU and Asia-Pacific Regions, and lists several Middle East and Hong Kong Regions as unsupported.

Step 2: Install the SDK and set credentials

Install boto3 and set your AWS credentials the usual way, through environment variables or a profile. Your IAM role needs permission to invoke the model, which the CLI reference describes as the bedrock:InvokeModel action.

Step 3: Send the first request

This is the Converse sample from Amazon’s model card:

import boto3

client = boto3.client('bedrock-runtime', region_name='us-west-2')
response = client.converse(
    modelId='global.amazon.ergo-1.0',
    messages=[
        {
            'role': 'user',
            'content': [{'text': 'Can you explain the features of Amazon Bedrock?'}]
        }
    ]
)
print(response)

Step 4: Read the answer, not just the text

Ergo always reasons, so the response can contain reasoning content alongside the final text. Check the structure of the response object before you assume the first content block is the answer.

Use The Profile ID, Not The Model ID

Bedrock’s card lists amazon.ergo-1.0 as the model ID but says in-Region inference is not supported. Call global.amazon.ergo-1.0 for the $1 and $3 rates, or us.amazon.ergo-1.0 if you must keep traffic inside the United States and can accept the 10% higher price.

Which Bedrock API should you use: Converse, Chat Completions or Responses?

Bedrock lists four APIs for Ergo: Converse, InvokeModel, Chat Completions and Responses. Use Converse if you already use Bedrock. Use Chat Completions if you need to set the reasoning effort, because that is the only API where Amazon’s examples show the setting. Use Responses if your code already targets the OpenAI Responses format.

The two OpenAI-compatible APIs authenticate with a long-term Bedrock API key in the AWS_BEARER_TOKEN_BEDROCK environment variable and a base URL on the bedrock-runtime endpoint. Amazon’s Responses sample looks like this:

import os
from openai import OpenAI

region = "us-west-2"
client = OpenAI(
    api_key=os.environ["AWS_BEARER_TOKEN_BEDROCK"],
    base_url=f"https://bedrock-runtime.{region}.amazonaws.com/openai/v1",
)

resp = client.responses.create(
    input="Can you explain the features of Amazon Bedrock?",
    model="global.amazon.ergo-1.0",
)
print(resp.output_text)

Switching from another model usually means changing the model ID and checking token limits, not rewriting your integration. If you already call Opus or GPT through an OpenAI-style client, the Chat Completions route is the shortest migration.

How do you set Amazon Ergo’s reasoning effort?

Pass reasoning_effort to the Chat Completions API with one of five values: low, medium, high, xhigh or max. Amazon’s card says none is rejected with an error, because Ergo always reasons. Its example also sets max_completion_tokens to 8192 and notes that reasoning uses part of that budget, so keep the limit at 8192 or higher.

The card does not state a default effort, and its Converse, Responses and InvokeModel examples set no reasoning parameter. That gap matters for cost. Artificial Analysis recorded 171 million output tokens for Ergo on its index against a median of 106 million for large open-weights models, so a loose output limit and a high effort setting can turn a cheap price per token into an expensive task.

Here is the Chat Completions pattern from the card, adapted to a client you have already created:

response = client.chat.completions.create(
    model="global.amazon.ergo-1.0",
    messages=[{"role": "user", "content": "Explain this stack trace."}],
    reasoning_effort="medium",    # low | medium | high | xhigh | max
    max_completion_tokens=8192,   # reasoning uses part of this
)

We have not verified how each level changes accuracy or token use, and Amazon does not publish that curve. Measure it on your own tasks: run the same ten prompts at low, medium and high, and record pass rate and output tokens.

Why does my Ergo response come back empty or cut off?

The usual cause is a token limit that is too small. Reasoning tokens count toward the output cap, so a low limit can be consumed by thinking before any answer text appears. Raise max_completion_tokens first, then lower the reasoning effort if the cost is too high.

How do you use tools and structured outputs with Amazon Ergo?

Bedrock supports client-side tool use for Ergo, where your code runs the tool and sends the result back, and a server-side web search tool. The model card’s example uses the OpenAI-style tools array with type function, then a follow-up call that returns the tool output with role tool. Structured outputs are also listed as supported.

The loop is the standard one for any tool-calling model:

  1. Send your messages and a tools array describing each function.
  2. If the reply asks for a tool call, run that function in your own code.
  3. Append the result as a tool message and call the model again.
  4. Repeat until the model returns a final answer, with a hard cap on the number of turns.

Put that turn cap in from day one. Long-running agent tasks are what Ergo is built for, and an uncapped loop on a reasoning model is the quickest way to spend more than you planned.

How do you keep Ergo costs down with prompt caching?

Ergo supports implicit and explicit prompt caching. On the Global profile, cached input is read at $0.03 per million tokens against $1.00 for fresh input, and a cache write costs $1.25 per million with a 30-minute lifetime. Put the long, stable part of your prompt first so repeated requests reuse it.

For agent work this matters more than the headline price, because an agent resends the same instructions, tool definitions and file contents on every turn. A rough rule: if more than a few thousand tokens repeat across calls inside 30 minutes, design the prompt so those tokens come first and stay identical. The worked cost model is in our Amazon Ergo pricing guide.

How to use Amazon Ergo in Kiro and other coding tools

In Kiro, open the model selector and choose Ergo if your plan includes it. Kiro’s own changelog calls the rollout an experimental preview, so check that page before you plan around it. For other tools, Amazon’s card lists Claude Code, Codex, Kiro and OpenCode as compatible, and says Claude Code needs a LiteLLM proxy.

The compatibility claim has caveats you should know about:

  • Kiro: Amazon’s launch post says Ergo is available today, but Kiro’s changelog describes a limited preview with US-only inference and a 1.2x credit multiplier.
  • Claude Code: the AWS product page lists it as compatible, while the Bedrock card says a LiteLLM proxy is required. Plan for the proxy.
  • Setup steps: the Bedrock card links to a page called “Use Amazon Ergo-1.0 with coding tools.” Follow that page, not a blog’s paraphrase.

Whichever tool you use, start with a low-risk repository and review every change. Amazon’s own card warns that Ergo can produce confident but incorrect code.

How do you download and run the Amazon Ergo weights?

Download the checkpoint from the Hugging Face model card: Amazon-FMR/Ergo is the MXFP4 version at 626 GB, Amazon-FMR/Ergo-mxfp8 is 1.17 TB, and Amazon-FMR/Ergo-bf16 is 2.22 TB. Serve it with vLLM or SGLang. The model card says to use the BF16 checkpoint for Transformers inference or fine-tuning.

The simplest launch commands are on the model card. For vLLM:

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

For SGLang:

pip install sglang
python3 -m sglang.launch_server \
    --model-path "Amazon-FMR/Ergo" \
    --host 0.0.0.0 \
    --port 30000

Those minimal commands will not fit on ordinary hardware. Both engine teams published fuller recipes, in the vLLM launch post and the SGLang launch post. The hardware requirements and a realistic cost comparison are in our guide to running Amazon Ergo locally. If you only need to know whether you are allowed to, read is Amazon Ergo open source? first.

What sampling settings does Amazon recommend?

The Hugging Face card recommends a temperature of 1.0, a top_p of 0.99 and max_tokens up to 131,072, with a context window of 1,048,576 tokens. That temperature is higher than many teams use for code, so test it against a lower value on your own tasks before changing it.

What mistakes should you avoid when starting with Amazon Ergo?

The common mistakes are calling the bare model ID, setting reasoning effort to none, using a small output limit, forgetting that Ergo cannot read images, and trusting one benchmark instead of your own tasks. Each one is cheap to avoid and expensive to discover in production.

Mistake What happens Fix
Calling amazon.ergo-1.0 directly Request fails, because in-Region inference is not supported Use the global or us profile ID
Setting reasoning_effort to none The API returns a 400 error Choose low as the minimum
Output cap of 1,000 tokens Reasoning eats the budget; empty or truncated answers Keep max_completion_tokens at 8192 or higher
Sending a screenshot Ergo is text only Extract text first, or use a model that accepts images
Expecting Knowledge Bases or prompt routing Not supported for Ergo on Bedrock Build retrieval yourself; see below
Merging without review Confident but wrong code reaches main Require human review of every change

Run Ten Of Your Own Tasks First

Before you wire Ergo into a pipeline, run ten real tasks from your backlog at two reasoning levels and record pass rate, output tokens and review minutes. That one afternoon tells you more about cost per accepted change than any vendor chart, including the one in our comparison post.

What does this mean if you work in L&D or training technology?

If your IT team builds internal tools on Ergo, you will mostly care about two things: where the data goes and how the output is reviewed. On Bedrock, AWS states zero data retention and zero operator access. For retrieval over course material, which Bedrock Knowledge Bases does not support for Ergo, see our guide to building a RAG chatbot on your training content.

Nothing published yet tests Ergo on instructional design or assessment writing, so pilot it on a small, low-stakes set of materials and have a subject matter expert review the output before it reaches learners.

What should you do next?

Run the Converse sample above in a sandbox account today. Then work through the pricing guide with the token counts from your ten test tasks to see what a month of real use would cost.

If you are still deciding whether Ergo is the right model, start with the Amazon Ergo overview or the head-to-head comparison. For the exact setup details, keep the Bedrock model card for Ergo open, since AWS can change it.

FAQ

Q1. How do I access Amazon Ergo?

The quickest route is Amazon Bedrock. Call the Converse API with the model ID global.amazon.ergo-1.0, using AWS credentials or a Bedrock API key. You can also download the open weights from Hugging Face under Amazon-FMR/Ergo, select Ergo in Kiro if your plan includes the preview, or reach it through routers such as OpenRouter.

Q2. What is the Amazon Ergo model ID on Bedrock?

The model ID is amazon.ergo-1.0, but Bedrock does not support in-Region inference for it, so you call an inference profile instead. Use global.amazon.ergo-1.0 for the standard $1 and $3 rates, or us.amazon.ergo-1.0 to keep routing in the United States at a 10% higher price.

Q3. How do I set the reasoning effort for Amazon Ergo?

Use the Chat Completions API and pass reasoning_effort as low, medium, high, xhigh or max. Amazon’s model card says none returns a 400 error because Ergo always reasons. Keep max_completion_tokens at 8192 or higher, since reasoning tokens use part of that limit. The card does not state a default level.

Q4. Can I use Amazon Ergo with Claude Code?

Amazon’s Bedrock model card lists Claude Code as compatible but says it requires a LiteLLM proxy. The AWS product page lists it without that caveat, so follow the Bedrock card. The card also lists Codex, Kiro and OpenCode, and links to a setup page called Use Amazon Ergo-1.0 with coding tools.

Q5. Does Amazon Ergo support function calling?

Yes on Bedrock. The model card documents client-side tool use, where your code runs the function and returns the result, and a server-side web search tool. Structured outputs are listed as supported too. OpenRouter’s page was inconsistent about tool support on December 4, 2026, so check it before relying on that route.

Q6. How much hardware do I need to run Amazon Ergo myself?

A lot. The smallest published checkpoint, MXFP4, is 626 GB to download. The vLLM team lists verified launch recipes on GB300, GB200, B300 and a single node of eight H200 GPUs. Neither Amazon nor the vLLM post states a minimum, so test your own configuration before committing to hardware.

Published by the LMSpedia Editorial Team

Written by Published by the LMSpedia Editorial Team

LMSpedia is an independent knowledge base on learning management systems, training platforms and enterprise learning technology. Every article is researched from vendor documentation, public reports and official sources, then fact-checked, edited and published by our editorial team. Read more on our About page.

Table of contents