快速接入
Base URL
https://api.example.com/v1认证方式
Authorization: Bearer YOUR_API_KEY面向开发者和进阶用户:Base URL、Key 获取、OpenAI-compatible 示例、常见错误。
Base URL
https://api.example.com/v1认证方式
Authorization: Bearer YOUR_API_KEYcurl https://api.example.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"}]}'