跳到主要内容

快速开始

1. 获取 API Key

platform.xxd.fans 注册账户,获取您的 API Key。

2. 发起第一次调用

OpenAI GPT:

curl -X POST "https://platform-api.xxd.fans/open/aigw/gateway/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "gpt-4o",
"messages": [{"role": "user", "content": "你好"}]
}'

基础 URL

环境URL
生产环境https://platform-api.xxd.fans

下一步

浏览 API 参考文档,查看完整的交互式文档和自动生成的多语言代码示例。