AI中转站登录

AI API 调用入口

面向开发者和进阶用户:Base URL、Key 获取、OpenAI-compatible 示例、常见错误。

快速接入

Base URL

https://api.example.com/v1

认证方式

Authorization: Bearer YOUR_API_KEY

获取 Key

curl 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"}]}'