← All integrationsIntegration · Gateway

Amazon Ergo on OpenRouter

Amazon Ergo is listed on OpenRouter as amazon/ergo-1.0 and you call it like any other chat model there. This page gives the request, explains the one provider caveat that affects long prompts, and compares OpenRouter with the hosted key on this site, which is itself built on OpenRouter.

Every example needs an ergo_live_ API key with prepaid credit (from $5). Get an API key →

OpenRouter is one of three places to get the model as an API, next to Amazon Bedrock and independent hosts such as this site. Pricing there is about $1 per 1M input tokens and $3 per 1M output tokens, with some providers from $0.85 / $2.65. Prices and the provider list change, so treat the OpenRouter model page as the source of truth.

A disclosure before the comparison: Ergo Model is not affiliated with OpenRouter or Amazon, and our own endpoint reaches Amazon Ergo through OpenRouter. Calling OpenRouter yourself is cheaper per token. What we add is described further down.

Model id and endpoint

The model id is amazon/ergo-1.0. The base URL is https://openrouter.ai/api/v1 and you authenticate with your OpenRouter key:

POST https://openrouter.ai/api/v1/chat/completions
Authorization: Bearer $OPENROUTER_API_KEY
Content-Type: application/json

A working request

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "amazon/ergo-1.0",
    "max_tokens": 2048,
    "reasoning": { "effort": "low" },
    "messages": [
      { "role": "user", "content": "Write a haiku about long context windows." }
    ]
  }'

The response has the standard OpenAI shape, so any OpenAI-compatible client works with that base URL and model id.

Reasoning is always on

Ergo reasons before every answer and it cannot be switched off. Reasoning tokens are taken from max_tokens and billed as output. With a small cap such as 300 the reply can come back with empty content and finish_reason "length", which is why the example sets 2,048. Use the reasoning field (effort low, medium or high, or a token budget) to control how much it thinks. This holds on every route to the model, OpenRouter and ours alike.

The 262K-context provider caveat

The model supports a 1,048,576-token context, but OpenRouter routes each request to one of several providers and they do not all serve the full window. One provider, Featherless, caps context at 262K. If your request lands there, a long prompt can be rejected or cut off even though the model page says 1M. When you depend on long context, exclude that provider with OpenRouter's routing options:

{
  "model": "amazon/ergo-1.0",
  "provider": { "ignore": ["featherless"] },
  "max_tokens": 8192,
  "messages": [ ... ]
}

Check the provider list on the OpenRouter model page before relying on this; providers are added and removed over time.

How our hosted key differs

curl https://ergomodel.net/api/v1/chat/completions \
  -H "Authorization: Bearer $ERGO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "ergo-1.0",
    "max_tokens": 2048,
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Which one to use

Use OpenRouter if you already keep your models on one OpenRouter key and invoice, or if the lower per-token price matters most. Use Amazon Bedrock if you are on AWS. Use our key if you want the Amazon Ergo API working in a couple of minutes without either account. The Amazon Ergo API page compares all the providers side by side.

FAQ

What is the Amazon Ergo model id on OpenRouter?

amazon/ergo-1.0, called at https://openrouter.ai/api/v1/chat/completions with an OpenRouter key.

What does Amazon Ergo cost on OpenRouter?

About $1 per 1M input tokens and $3 per 1M output tokens, with some providers from $0.85 / $2.65. Check the OpenRouter model page for current prices. Our hosted endpoint costs $1.50 / $4.50 per 1M, prepaid from $5.

Why did my long prompt fail on OpenRouter?

One provider of the model on OpenRouter caps context at 262K tokens. If the request was routed there, a prompt above that size will not fit. Exclude that provider in the request's provider settings, or use an endpoint pinned to full-context providers.

Is your API the same model as OpenRouter's?

Yes. Our endpoint calls amazon/ergo-1.0 through OpenRouter, pinned to providers that serve the full 1M context, and exposes it as ergo-1.0. You pay more per token in exchange for one key, card payment and no routing to configure.

Can I turn reasoning off on OpenRouter?

No. The model always reasons; asking to disable it returns an error. You can lower the effort to reduce the tokens spent.

See also: Amazon Ergo API: all providers compared · Get an API key · Context window · opencode guide

Start using Amazon Ergo

Try the model in the free browser playground first, then create a key and add it to your setup.

Open the playgroundGet an API key
Amazon Ergo on OpenRouter — model id, request, 262K caveat · Ergo Model