快速开始
创建密钥,替换 Base URL,然后使用兼容 OpenAI 的客户端发起请求。
Base URL
https://api.latticehub.top/v1OpenAI SDK 通常需要包含 /v1。直接请求接口时也使用这里展示的完整地址。
curl https://api.latticehub.top/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_MODEL",
"messages": [{"role": "user", "content": "ping"}]
}'curl https://api.latticehub.top/v1/models \
-H "Authorization: Bearer YOUR_API_KEY"