> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apiyi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Amazon Ergo 1.0 Lands on APIYI: A 1M-Context Agentic Coding Model

> Amazon's first open-weight frontier model is live on APIYI. Ergo 1.0 brings 1.1T MoE parameters, 55B active, 1M context, and 128K output for coding and agents, priced at $1/$3 with 83–91% effective cost after top-up bonuses.

## Key Highlights

* **Amazon's first open-weight frontier model**: 1.1T total parameters with 55B active, a 1M-token context window, 128K output, and a design target of software engineering and long-running agent work
* **Coding and agents are the strong suit**: Amazon reports DeepSWE 74.2 and Terminal-Bench 4.0 46.2; Artificial Analysis puts Ergo at 38 on its Intelligence Index, second among open-weight models
* **Not an all-round winner**: science reasoning and general knowledge are weaker, the model is text-only, and it is extremely verbose — 171M output tokens across the AA suite, roughly 1.6x the peer median, at \$1.67 per task
* **Priced the same as Amazon's official listing**: \$1.00 input / \$3.00 output / \$0.03 cache read per million tokens; available in the `Default` and `SVIP` groups
* **Live on APIYI**: model ID `ergo-1.0`, OpenAI-compatible and Anthropic-native, with direct Claude Code support; full guide at [Amazon Ergo Overview](https://docs.apiyi.com/en/api-capabilities/amazon-ergo/overview.md)

## Background

On 2026-12-01 at re:Invent, Amazon announced **Amazon Ergo**, its first open-weight frontier model. Developed by Amazon Frontier Model Research, it is not aimed at general chat. It is built for software engineering and agentic workflows: read code, plan, call tools, check results, and stop when the job is done.

Ergo uses a mixture-of-experts architecture with 1.1 trillion total parameters and 55 billion active parameters, a native 1M-token context window, and up to 128K output tokens. The weights are published on Hugging Face in MXFP4, MXFP8, and BF16 under the Amazon Ergo Open-Weights License, which permits commercial use, deployment, fine-tuning, and resale; Model-as-a-Service businesses with more than \$20 million in annual revenue need a separate agreement with Amazon.

APIYI has listed `ergo-1.0` in the `Default` and `SVIP` groups, priced item-for-item the same as Amazon's official listing.

## Analysis

### Benchmarks

Start with Amazon's own numbers. The official model card compares Ergo with Kimi K3.1 Pro, GLM 5.3, and other models. All values below are vendor-reported:

| Benchmark | Ergo | Kimi K3.1 Pro | GLM 5.3 |
| - | -: | -: | -: |
| FMR-Bench AI SWE (pass\@1) | **65.4** | 58.6 | 44.3 |
| DeepSWE (pass\@1) | 74.2 | **77.9** | 69.5 |
| FrontierSWE v2 (Score) | **31.5** | 29.3 | 30.2 |
| Terminal-Bench 4.0 (pass\@1) | 46.2 | **63.3** | 36.9 |
| Terminal-Bench Science 0.1 (pass\@1) | 21.3 | **35.7** | 5.7 |

The takeaway is mixed: Ergo leads on Amazon's own FMR-Bench and on FrontierSWE v2, but trails Kimi K3.1 Pro on DeepSWE, Terminal-Bench 4.0, and science reasoning. Amazon says so itself on the model card: this release focuses on coding and agents, so expect lower relative scores on general knowledge and scientific reasoning.

Now the independent view. Artificial Analysis (AA) scores Ergo at **38** on Intelligence Index v5.0.2, second among 36 open-weight models; the median is 24. Kimi K3.1 Pro scores 47, Gemini 4 Argon 51, and Claude Fable 5.2 64.8. On individual evaluations, Ergo gets 1633 Elo on Briefcase v1.1, 69.0% on AutomationBench-AA, 49.0% on Terminal-Bench 4.1, and 28.8% on FrontierCode-AA 2.0. The weak spots are equally clear: Terminal-Bench Science 0.1 at 19.5%, GDP.pdf at 16.2%, and HLE-Diamond at 20.5%.

AA also measured two cost-relevant traits:

* **Speed**: about 296 output tokens per second, 16.32 seconds to the first answer token, and 7.9 minutes per Index task on average
* **Verbosity**: the full Index suite consumed 171M output tokens versus a peer median of about 106M; weighted cost was \$1.67 per task, ranking 25th of 34 models

In other words, Ergo's token price is low, but cost per task is not. It thinks a lot and writes a lot. Budget accordingly.

One caveat: another third-party sample on launch day measured about 31.5 tok/s, far below AA's 296 tok/s. Speed varies with load, region, and request configuration, so benchmark against your own workload.

### Core Features

**Always reasons; no off switch**

Ergo is a fixed-reasoning model. `reasoning_effort` accepts `low`, `medium`, `high`, `xhigh`, and `max`, but no parameter reduces reasoning to zero. Switches from other models, such as `enable_thinking` or an Anthropic-style thinking-disabled mode, do nothing, and the official Bedrock API returns 400 for `reasoning_effort: "none"`.

Reasoning tokens are billed as output. If `max_completion_tokens` is too small, reasoning consumes the budget and the final answer is empty or truncated. Amazon's own sample recommends at least 8192; use 16384 or more for coding and multi-step agent work.

**1M context + 128K output**

The official window is 1,048,576 tokens, with a maximum input of 1,047,552 and a maximum output of 131,072. In APIYI validation, a mid-document fact was retrieved correctly from a 1,026,083-token input. Requests beyond the window return an explicit 400 rather than silently truncating.

**Tool calling and structured output**

Function calling, parallel tools, tool-result round trips, JSON objects, JSON Schema, and logprobs are supported. For agents, append the full assistant message (including `tool_calls`) to the history, then return each result with its matching `tool_call_id` for the next turn.

**Text only**

This release does not accept images, screenshots, or diagrams; image input returns 400. Use a vision model such as Gemini, GPT, or Qwen when you need image understanding.

**Prefix caching**

Automatic prefix caching is supported; cache reads are billed at \$0.03 per million tokens. Keep long system prompts, codebase notes, and documents at the front and the changing question at the end to cut latency and cost on repeated input. APIYI verified cache writes and reads on the 5-minute tier.

### Technical Specs

| Item | Details |
| - | - |
| Model ID | `ergo-1.0` |
| Developer | Amazon Frontier Model Research |
| Architecture | 1.1T total-parameter MoE, 55B active |
| Context window | 1,048,576 tokens |
| Max input | 1,047,552 tokens |
| Max output | 131,072 tokens |
| Input modality | Text only |
| Output modality | Text |
| Knowledge cutoff | May 2026 (official model card) |
| Reasoning levels | `low` / `medium` / `high` / `xhigh` / `max` |
| Official sampling | `temperature=1.0`, `top_p=0.99` |
| Protocol | OpenAI-compatible, Anthropic native |

## Practical Use

### Recommended Workloads

* **Agentic coding and terminal automation**: multi-step tool use, command execution, and self-checking are Ergo's home turf
* **Large-repository refactors and review**: a 1M-token context holds an entire codebase without chunking
* **Long-document verification**: cross-section retrieval and consistency checks across contracts, policies, and technical manuals
* **High-throughput, verifiable agent loops**: when a test harness or validator can catch mistakes, Ergo can iterate and self-correct

Poor fits: image understanding, low-latency simple classification or routing, one-shot science-heavy problems, and cost-sensitive workloads that cannot tolerate verbose output.

### Code Example

```python theme={null}
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["APIYI_API_KEY"],
    base_url="https://api.apiyi.com/v1",
    timeout=600,
)

resp = client.chat.completions.create(
    model="ergo-1.0",
    messages=[
        {"role": "user", "content": "Implement an LRU cache with expiration eviction in Python, with unit tests."},
    ],
    max_completion_tokens=16384,
    extra_body={"reasoning_effort": "medium"},
)

print(resp.choices[0].message.content)
print(resp.usage)
```

### Best Practices

* **Give the output budget room**: start at 4096 for simple Q\&A and 16384 for coding or agents. If `finish_reason=length` comes back with empty content, raise the budget before retrying
* **Stream long runs**: reasoning streams first and the answer follows, which avoids client timeouts and surfaces progress early
* **Keep stable prefixes first**: system prompts, codebase notes, and long documents at the front; cache hits drop input cost to \$0.03 per million tokens
* **Match reasoning level to the task**: use `low` for short work, and `high` or `max` for complex coding and agent tasks
* **Verify the output**: Amazon itself recommends letting the agent test and check its own changes; do not trust a single pass in production

## Pricing and Availability

### Pricing

| Item | Price (per million tokens) |
| - | -: |
| Input | \$1.00 |
| Output (including reasoning) | \$3.00 |
| Cache read | \$0.03 |

Cache writes are billed on the official cache-write tier; the current official price list shows \$1.25 per million tokens for the 30-minute TTL tier. Check the console logs for actual hits and charges.

Model pricing matches Amazon's official listing item for item, with **no markup**. Available groups: `Default` and `SVIP`; both are 1x for text models.

> [!NOTE]
>
> Model prices are aligned with the official website and may change when the official prices change. The table above is for reference only; the **Model Pricing** tab in the top navigation is authoritative: [Model Pricing](https://docs.apiyi.com/en/models/index.md).

### Top-Up Bonuses

The model price does not change; the discount comes from top-up bonuses and group rates. When you meet the conditions of the [top-up bonus program](https://docs.apiyi.com/en/faq/recharge-promotions.md), a single top-up receives a 10%–20% bonus, bringing the effective cost to roughly **83%–91% of the list price**. Eligibility, rates, and stacking rules are defined on the promotions page.

## Conclusion

Amazon Ergo 1.0 is a model built to do work: 1.1T MoE parameters, a 1M-token context, strong coding and agent tooling, open weights, and a low per-token price. It fits long-running, self-verifying engineering workflows.

It is not an all-rounder. Science reasoning, general knowledge, and image understanding are not its strengths, and fixed reasoning makes it verbose: cheap per token, not necessarily cheap per task. Pick it for code, terminals, long documents, and tool orchestration; pick something else for one-shot hard reasoning or vision.

`ergo-1.0` is live on APIYI in the `Default` and `SVIP` groups. For parameters, output budgets, and long-context details, see the [Amazon Ergo Overview](https://docs.apiyi.com/en/api-capabilities/amazon-ergo/overview.md).

> [!NOTE]
>
> Sources and retrieval date (2026-12-04): Amazon's launch page and the Hugging Face model card (architecture, specs, vendor benchmarks, pricing); the AWS Bedrock model card (max output, cache-write price, knowledge cutoff); Artificial Analysis at `artificialanalysis.ai/models/amazon-ergo` (Intelligence Index 38, sub-scores, speed, cost per task, verbosity, v5.0.2); OrcaRouter's independent review for cross-checking cost and verbosity; and the APIYI pricing API (model listed, groups `Default` / `SVIP`, 1x). Vendor-reported and independent results are labeled separately; different benchmark versions are not compared directly.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.