全部模型 / Moonshot · Kimi
kimi-k2.7-code
数据同步于
| 输入 | 缓存读取 | 输出 |
| Standard 默认 | $0.76 | $0.16 | $3.16 |
| Saver | $0.47 | $0.10 | $1.97 |
| Spot | $0.28 | $0.060 | $1.18 |
| Official | $0.95 | $0.20 | $3.95 |
| Moonshot · Kimi |
| |
| OpenAI Chat Completions |
| |
| |
| |
| Standard · Saver · Spot · Official |
| · |
| 10M in + 1M out | $10.76 |
| 100M in + 20M out | $139 |
curl https://api.xhuoapi.ai/v1/chat/completions \
-H "Authorization: Bearer $XHUO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "kimi-k2.7-code", "messages": [{"role": "user", "content": "Hello"}]}'
from openai import OpenAI
client = OpenAI(base_url="https://api.xhuoapi.ai/v1", api_key="YOUR_XHUOAPI_KEY")
resp = client.chat.completions.create(
model="kimi-k2.7-code",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)