📚 API文档

快速开始

获取你的API Key,开始使用Harryclaw AI Platform。

API端点

POST https://api.hktoken.hk/v1/chat/completions

Headers: Authorization: Bearer <your_api_key>
Content-Type: application/json

示例代码

import requests

response = requests.post(
    "https://api.hktoken.hk/v1/chat/completions",
    headers={
        "Authorization": "Bearer your_api_key",
        "Content-Type": "application/json"
    },
    json={{
        "model": "auto",
        "messages": [
            {"role": "user", "content": "Hello!"}
        ]
    }}
)
print(response.json())