Overview
Amazon Ergo is an open-weights frontier model from Amazon Frontier Model Research, built for software engineering and agentic workflows. It is a mixture-of-experts model with 1.1 trillion total parameters and 55 billion active parameters, a native 1M-token context window, and up to 128K output tokens. It is designed for long-running tasks that require planning, tool use, and self-checking. APIYI serves the model asergo-1.0, with OpenAI-compatible Chat Completions and Responses endpoints plus an Anthropic-compatible Messages endpoint. It works directly with Claude Code and other Anthropic-native clients. Input and output are text only; image input is not supported.
Pricing & Groups
Quick Start
Reasoning Budget
Long Context
Pricing
Amazon Ergo is billed by token usage. APIYI list prices match Amazon’s official prices with no markup. All prices are in USD per 1M tokens:Effective cost with top-up bonuses
The list price does not change. When you meet the conditions of the top-up bonus program, a single top-up receives a 10%–20% bonus, which brings the effective cost to roughly 83%–91% of the list price:Cost examples
Because the model always reasons, output tokens run well above the visible answer length. The following APIYI test samples are estimated at $3.00 per 1M output tokens:Group Setup
The model has three group entry points:ClaudeCode group is billed at a 0.95 rate (about 95% of list); top-up bonuses lower the effective cost further — see the recharge promotions page. OpenAI-compatible calls do not need a group change; for Claude Code and other Anthropic clients, switch the Token’s group to ClaudeCode.
For the Token’s Billing model, choose either Pay-as-you-go or Pay-as-you-go Priority. Pay-per-request does not apply to token-billed text models.
Tested Capabilities
APIYI validated the following cases forergo-1.0 on 2026-12-04 (UTC+8):
Quick Start
Use an APIYI Token and callPOST /v1/chat/completions. Amazon recommends a max_completion_tokens value of at least 8192 to leave room for reasoning.
Claude Code and Anthropic Native Access
The/v1/messages endpoint for ergo-1.0 is live on APIYI and works directly with Claude Code and other Anthropic-native clients. Validation covered basic chat, tool calling, thinking block replay, tool_result replay, and streaming; an end-to-end Claude Code CLI run with the Read tool also passed.
ClaudeCode Token group (0.95x rate, about 95% of list); OpenAI-compatible calls continue to use Default / SVIP. Claude Code may show an unrecognized_model warning; it does not affect the call.
Watch the output budget: Ergo always reasons, so a max_tokens below 8192 is more likely to produce an empty answer. Claude Code sets its own output limit; if the answer is empty, check whether reasoning consumed the budget and raise the client limit.
https://api.apiyi.com, send anthropic-version: 2023-06-01, and keep the model ID as ergo-1.0.Reasoning and Output Budget
Amazon Ergo always reasons and cannot disable reasoning. The officialreasoning_effort parameter adjusts the reasoning level and accepts low, medium, high, xhigh, and max. none is not an official value and returns 400 on Bedrock. Even when a compatibility layer accepts none, it does not turn reasoning off.
Reading the response
The final answer is inchoices[0].message.content; reasoning is in choices[0].message.reasoning_content. Read content when you only need the conclusion, and reasoning_content when you want to show the thought process.
Reasoning tokens are billed at the output price. Do not estimate cost from the visible answer alone; use usage and the console logs.
Recommended output budgets
finish_reason is length and content is empty, reasoning most likely consumed the entire budget. Raise max_completion_tokens and retry; do not treat this as the model being unavailable.Streaming
Reasoning arrives throughdelta.reasoning_content; the final answer arrives through delta.content. The last chunk may include usage, so check chunk.usage before reading choices.
Tool Calling
The model generates function names and arguments; your application executes the tools. After receivingtool_calls, append the full assistant message to the history, then append each tool result with its matching tool_call_id, and send the next request.
Prompt Caching
Amazon Ergo supports prefix caching. Put stable content first (system prompts, codebase notes, long documents) and the changing question last. This reduces latency and cost for repeated input.Long Context
The official context window is 1,048,576 tokens, with a maximum input of 1,047,552 tokens and a maximum output of 131,072 tokens.Put stable content first
Budget input and output together
max_completion_tokens must fit within the 1,048,576-token window. Compress the input first when you approach the limit.Stream long runs
Technical Specs
FAQ
Can I turn off reasoning?
Can I turn off reasoning?
enable_thinking and thinking disabled do not take effect. You can adjust the level with reasoning_effort, but you cannot reduce reasoning to zero.Why is the returned content empty?
Why is the returned content empty?
max_completion_tokens value that is too small: reasoning consumes the budget first and finish_reason becomes length. Raise the budget to at least 8,000 and retry; use 16,000 or more for coding and long tasks.Does it support image input?
Does it support image input?
Which APIs are supported?
Which APIs are supported?
base_url to https://api.apiyi.com/v1. With the Anthropic SDK, point the base URL to https://api.apiyi.com and send the anthropic-version header.Does it work with Claude Code?
Does it work with Claude Code?
/v1/messages is live on APIYI; basic chat, tool calling, thinking replay, and streaming have been validated. Set ANTHROPIC_BASE_URL=https://api.apiyi.com, ANTHROPIC_AUTH_TOKEN, and ANTHROPIC_MODEL=ergo-1.0, and select the ClaudeCode group. An unrecognized-model warning does not block calls.Why does the output cost exceed the visible answer length?
Why does the output cost exceed the visible answer length?
usage.completion_tokens_details.reasoning_tokens reports the reasoning usage; use usage and the console logs for cost, not the answer character count.How is prompt caching billed?
How is prompt caching billed?
usage and the console logs for actual hits and charges.What is the maximum output?
What is the maximum output?
max_completion_tokens together against the 1,048,576-token window.Does it support parallel tool calls?
Does it support parallel tool calls?
tool_calls, execute them in parallel and return each result with its matching tool_call_id.What sampling parameters does Amazon recommend?
What sampling parameters does Amazon recommend?
temperature=1.0 and top_p=0.99. You can lower the temperature for more deterministic output, but that moves away from the official recommendation.Why is the top-up discount 83%–91%?
Why is the top-up discount 83%–91%?
Related Docs
- Text Generation API Overview
- API Manual
- Function Calling Basics
- Handling Reasoning Model Responses
- Claude Code Integration
- Model Pricing
- Group Guide
- Recharge Promotions
huggingface.co/Amazon-FMR/Ergo, aboutamazon.com/amazon-ergo, docs.aws.amazon.com/bedrock/latest/userguide/model-card-amazon-ergo-1-0.html.