Chat Completions
拓元智算 API 通过统一入口提供多模型访问。公开接口只使用 api.tuoyuan.ai 与拓元智算 API Key;上游路由对调用方透明。
Endpoint: POST /v1/chat/completions
请求示例
bash
curl https://api.tuoyuan.ai/v1/chat/completions \
-H "Authorization: Bearer $TUOYUAN_API_KEY" -H "Content-Type: application/json" \
-d '{"model":"gpt-5.6-sol","messages":[{"role":"user","content":"Explain API gateways briefly."}]}'常用字段包括 model、messages、temperature、max_tokens 与 stream。不同模型对可选参数的支持可能不同。
