Refract

Refract › Models › Amazon Ergo

Amazon Ergo API

Use Amazon Ergo by Amazon through Refract's OpenAI-compatible API for $1.73 per 1M input and $5.36 per 1M output tokens. Pay per token, no subscription.

Model IDamazon-ergo
ProviderAmazon
Input, per 1M tokens$1.73
Output, per 1M tokens$5.36
Context window1,000,000 tokens

Amazon Ergo is a language model developed by Amazon for software engineering and agent workflows.

About this model

Amazon Ergo is Amazon's Amazon Ergo model on Refract. It reads up to 1M tokens of context. Repeated prompt prefixes are read from cache at $0.18 per 1M tokens, 89% less than fresh input, which is what makes long agent sessions cheap.

What a request costs

A typical chat message (2,000 tokens in, 400 out) costs about $0.0056. A coding-agent step (60,000 tokens in, 54,000 of them from cache, 800 out) costs about $0.024.

Chat with Amazon Ergo · Get an API key

Use it from code

curl https://refracthub.com/v1/chat/completions \
  -H "Authorization: Bearer $REFRACT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "amazon-ergo", "messages": [{"role": "user", "content": "Hello"}]}'
from openai import OpenAI

client = OpenAI(base_url="https://refracthub.com/v1", api_key="YOUR_REFRACT_KEY")
reply = client.chat.completions.create(model="amazon-ergo", messages=[{"role": "user", "content": "Hello"}])
print(reply.choices[0].message.content)

Questions

How much does Amazon Ergo cost on Refract?

$1.73 per 1M input tokens and $5.36 per 1M output tokens. You pay only for the tokens you use, with no subscription.

Does it work with the OpenAI SDK?

Yes. Point the OpenAI SDK, or any OpenAI-compatible app, at https://refracthub.com/v1 with your Refract key and use the model name "amazon-ergo". The Anthropic Messages format works too.

Can I use Amazon Ergo without writing code?

Yes. Chat with it on the web at https://refracthub.com/chat, or use the Refract desktop app for Windows.

All 56 models