API des Modells Amazon-FMR/Ergo:akashml bei Hugging Face Inference, $1 / $3 pro Million Tokens, Kontext 1.048.576 Tokens. Beispiele in curl, Python und JavaScript, Live-Test.
Im Katalog testen und bewerten
Amazon-FMR/Ergo served by AkashML through the Hugging Face router (fp4 quantization).
- Typ
- Modell
- Anbieter
- Hugging Face Inference
- Hosting
- AkashML
- Modell-ID
Amazon-FMR/Ergo:akashml- Preis
- Kostenpflichtig
- Preis Eingabe / Ausgabe
- $1 / $3 pro Million Tokens
- Zugang ohne Schlüssel
- Nein
- Schlüsselvariable
HF_TOKEN- Basis-URL (OpenAI-kompatibel)
https://router.huggingface.co/v1- Kontext
- 1.048.576 Tokens
- Eingaben
- Text
- Funktionen
- Tool-Aufrufe, JSON-Ausgabe
- Antwortzeit
- Erstes Token 1216 ms · 79 Tokens/s · Verfügbarkeit 99.3 %
- Entwicklerbewertung
- Noch nicht bewertet
- Dokumentation
- https://huggingface.co/Amazon-FMR/Ergo
Codebeispiele
cURL
curl https://router.huggingface.co/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HF_TOKEN" \
-d '{"model":"Amazon-FMR/Ergo:akashml","messages":[{"role":"user","content":"Hallo, stell dich in einem Satz vor."}]}'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:akashml",
messages=[{"role": "user", "content": "Hallo, stell dich in einem Satz vor."}],
)
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:akashml',
messages: [{ role: 'user', content: 'Hallo, stell dich in einem Satz vor.' }],
})
console.log(r.choices[0].message.content)
Beliebte Suchen
Häufige Fragen
Ist die API von Ergo · AkashML kostenlos?
Nein: Ergo · AkashML ist eine kostenpflichtige API ($1 / $3 pro Million Tokens).
Wie rufe ich Ergo · AkashML aus meinem Code auf?
Ergo · AkashML bietet eine OpenAI-kompatible API unter https://router.huggingface.co/v1: Verwenden Sie ein beliebiges OpenAI-SDK (Python, JavaScript …) mit dieser Basis-URL. Modellkennung: Amazon-FMR/Ergo:akashml. Fertiger Code (Streaming, JSON, Wiederholungen) steht im Werkzeugkasten für Entwickler bereit.
Wie groß ist das Kontextfenster von Ergo · AkashML?
Ergo · AkashML verarbeitet bis zu 1.048.576 Tokens Kontext (Nachricht und Verlauf).
Welche Alternativen gibt es zu Ergo · AkashML?
Ähnliche APIs im Katalog: Ergo · Amazon Bedrock, Ergo · Io Net, Ergo · Morph, Ergo · Pareto Inference, Ergo · Reka.
Alternativen
- Ergo · Amazon Bedrock — Kostenpflichtig
- Ergo · Io Net — Kostenpflichtig
- Ergo · Morph — Kostenpflichtig
- Ergo · Pareto Inference — Kostenpflichtig
- Ergo · Reka — Kostenpflichtig
- Ergo · InferenceNet — Kostenpflichtig
- Ergo · Featherless — Kostenpflichtig