天衡云枢

API 文档

面向开发者的 Base URL、Key 获取和 OpenAI-compatible 示例。

快速接入

Base URL

https://api.tianheng.com/v1

认证方式

Authorization: Bearer YOUR_API_KEY

获取 Key

curl https://api.tianheng.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-5.1","messages":[{"role":"user","content":"Hello"}]}'