API for the model Amazon-FMR/Ergo:morph at Hugging Face Inference, $1 / $3 per million tokens, context 1,048,576 tokens. curl, Python and JavaScript samples, live testing.
Amazon-FMR/Ergo served by Morph through the Hugging Face router (fp4 quantization).
- Type
- Model
- Provider
- Hugging Face Inference
- Host
- Morph
- Model ID
Amazon-FMR/Ergo:morph- Pricing
- Paid
- Input / output price
- $1 / $3 per million tokens
- Keyless access
- No
- Key variable
HF_TOKEN- Base URL (OpenAI-compatible)
https://router.huggingface.co/v1- Context
- 1,048,576 tokens
- Inputs
- Text
- Features
- Tool calling, JSON output
- Response time
- First token 3058 ms · 55 tokens/s · uptime 99.9%
- Developer rating
- Not rated yet
- Documentation
- https://huggingface.co/Amazon-FMR/Ergo
Code samples
cURL
curl https://router.huggingface.co/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HF_TOKEN" \
-d '{"model":"Amazon-FMR/Ergo:morph","messages":[{"role":"user","content":"Hello, introduce yourself in one sentence."}]}'Python
# pip install openai
import os
from openai import OpenAI
client = OpenAI(base_url="https://router.huggingface.co/v1", api_key=os.environ["HF_TOKEN"])
r = client.chat.completions.create(
model="Amazon-FMR/Ergo:morph",
messages=[{"role": "user", "content": "Hello, introduce yourself in one sentence."}],
)
print(r.choices[0].message.content)JavaScript
// npm install openai
import OpenAI from 'openai'
const client = new OpenAI({ baseURL: 'https://router.huggingface.co/v1', apiKey: process.env.HF_TOKEN })
const r = await client.chat.completions.create({
model: 'Amazon-FMR/Ergo:morph',
messages: [{ role: 'user', content: 'Hello, introduce yourself in one sentence.' }],
})
console.log(r.choices[0].message.content)
Generate the integration code →
Popular searches
Frequently asked questions
Is the Ergo · Morph API free?
No: Ergo · Morph is a paid API ($1 / $3 per million tokens).
How do I call Ergo · Morph from my code?
Ergo · Morph exposes an OpenAI-compatible API at https://router.huggingface.co/v1: use any OpenAI SDK (Python, JavaScript…) with this base URL. Model identifier: Amazon-FMR/Ergo:morph. Ready-to-use code (streaming, JSON, retries) is available in the developer toolkit.
What is the context window of Ergo · Morph?
Ergo · Morph accepts up to 1,048,576 tokens of context (prompt and history).
What are the alternatives to Ergo · Morph?
Similar APIs listed in the catalog: Ergo · Amazon Bedrock, Ergo · Io Net, Ergo · Pareto Inference, Ergo · Reka, Ergo · AkashML.
Alternatives
- Ergo · Amazon Bedrock — Paid
- Ergo · Io Net — Paid
- Ergo · Pareto Inference — Paid
- Ergo · Reka — Paid
- Ergo · AkashML — Paid
- Ergo · InferenceNet — Paid
- Ergo · Featherless — Paid