> ## Documentation Index
> Fetch the complete documentation index at: https://bianxieai.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAI 兼容协议

> 使用 OpenAI SDK 和接口格式

将 OpenAI 客户端的基础地址改为 `https://api.bianxie.ai/v1`，并使用平台 API Key。当前文档覆盖 Chat Completions、Responses、Embeddings、Images、Moderations 与 Audio。

```bash theme={null}
curl https://api.bianxie.ai/v1/responses \
  -H "Authorization: Bearer API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "your-model",
    "input": "你好"
  }'
```

接口遵循对应 OpenAI 请求语义，但不保证支持未在本站列出的实验性字段。
