- Context
- 1M tokens
Pricing (USD per 1M tokens)
How prices are calculated| Item | Official | Basic |
|---|---|---|
| Input | $0.30≈ ¥47.6 | $0.30≈ ¥47.8 |
| Output | $1.20≈ ¥190 | $1.20≈ ¥191 |
| Cache read | $0.06≈ ¥9.5 | $0.06≈ ¥9.6 |
Notes
入力が 512K token を超えるときは、公式価格が入力 $0.6 / 出力 $2.4(100万 token あたり)になります。本サイトでは標準価格で計算します。
How to call
POST/v1/chat/completions
import os
from openai import OpenAI
client = OpenAI(
base_url="https://token.echohub.io/v1",
api_key=os.environ["ECHO_API_KEY"],
)
res = client.chat.completions.create(
model="minimax-m3",
messages=[{"role": "user", "content": "Hello"}],
)
print(res.choices[0].message.content)import os
from anthropic import Anthropic
# The Anthropic SDK adds /v1 at the end automatically
client = Anthropic(
base_url="https://token.echohub.io",
api_key=os.environ["ECHO_API_KEY"],
)
msg = client.messages.create(
model="minimax-m3",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
)
print(msg.content[0].text)curl https://token.echohub.io/v1/chat/completions \
-H "Authorization: Bearer $ECHO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax-m3",
"messages": [{"role": "user", "content": "Hello"}]
}'