对接文档

AI API 聚合平台接入说明

你的客户只需要拿到 Base URL、API Key 和模型名称,就可以像对接 OpenAI 一样接入你的统一接口。

基础信息

Base URL:/api/v1
鉴权:Authorization: Bearer 你的APIKey
模型:gpt-5.4gpt-4o-minideepseek-chat

常用接口

GET /api/v1/models
POST /api/v1/chat/completions
POST /api/v1/embeddings
GET /api/system/status

curl 示例

curl http://localhost:3000/api/v1/chat/completions   -H "Authorization: Bearer sk-your-key"   -H "Content-Type: application/json"   -d '{
    "model": "gpt-5.4",
    "messages": [
      {"role": "user", "content": "请用中文介绍一下你自己"}
    ],
    "stream": false
  }'