- Context
- 400K tokens
- vs. official price
- 15% cheaper
Pricing (USD per 1M tokens)
How prices are calculated| Item | Official | Basic | Premium |
|---|---|---|---|
| Input | $0.20≈ ¥31.7 | $0.17≈ ¥27.2 | $0.15≈ ¥24.0 |
| Output | $1.25≈ ¥198 | $1.0625≈ ¥170 | $0.9375≈ ¥150 |
| Cache read | $0.02≈ ¥3.2 | $0.017≈ ¥2.7 | $0.015≈ ¥2.4 |
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="gpt-5.4-nano",
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="gpt-5.4-nano",
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": "gpt-5.4-nano",
"messages": [{"role": "user", "content": "Hello"}]
}'