# Amazon Ergo 1.0

Amazon Ergo 1.0 is an open-weights model from Amazon that reads text. It always reasons before it answers, with no effort to set. The Inference API serves it on the Private tier, at one price whoever runs the request.

- Model id: `amazon/ergo-1.0`
- Lab: Amazon
- Price: $1 / $3 per 1M input / output tokens
- Context: 1M tokens
- Privacy tiers: Private
- Page: https://trymorse.ai/inference/models/amazon/ergo-1.0

## Each tier

| Tier | Input | Output | Cached input | Context | Max output |
| --- | --- | --- | --- | --- | --- |
| Private | $1 | $3 | $0.03 | 1M | 131K |

## Call it

Base URL: https://inference.trymorse.ai/v1. Read the key from the MORSE_API_KEY environment variable.

### Python

```python
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://inference.trymorse.ai/v1",
    api_key=os.environ["MORSE_API_KEY"],
)

reply = client.chat.completions.create(
    model="amazon/ergo-1.0",
    messages=[{"role": "user", "content": "Why is the sky blue?"}],
)
```

### TypeScript

```ts
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://inference.trymorse.ai/v1",
  apiKey: process.env.MORSE_API_KEY,
});

const reply = await client.chat.completions.create({
  model: "amazon/ergo-1.0",
  messages: [{ role: "user", content: "Why is the sky blue?" }],
});
```

### cURL

```bash
curl https://inference.trymorse.ai/v1/chat/completions \
  -H "Authorization: Bearer $MORSE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "amazon/ergo-1.0",
    "messages": [{ "role": "user", "content": "Why is the sky blue?" }]
  }'
```

## Questions

### How much does Amazon Ergo 1.0 cost on the Morse API?

$1 per million input tokens, $3 per million output tokens, and $0.03 per million cached input tokens, the same on every privacy tier and whichever provider runs the request.

### What is Amazon Ergo 1.0's context length?

1,048,576 tokens (1M) of input and output together, and it writes up to 131,072 tokens in one reply.

### Who can read my prompts to Amazon Ergo 1.0?

It depends on the privacy tier your request names. Private: Vetted providers bound by contract or published policy to keep nothing. The provider processes the prompt and never stores it or trains on it.

### How do I call Amazon Ergo 1.0 from my code?

Point any OpenAI SDK at the base URL https://inference.trymorse.ai/v1, pass your Morse API key, and name the model amazon/ergo-1.0. The code above shows the call in Python, TypeScript, and cURL.
