> ## Documentation Index
> Fetch the complete documentation index at: https://docs.token.poryf.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 接入配置

> 确认地址、密钥与模型 ID，避免常见接入错误。

## 三项必填信息

| 配置                   | 填写内容                         |
| -------------------- | ---------------------------- |
| Base URL（OpenAI SDK） | `https://token.poryf.com/v1` |
| API Key              | 在未来模力创建的 API 密钥              |
| Model                | 模型广场或模型列表接口中的精确 ID           |

## 地址怎么填

* OpenAI Python SDK 的 `base_url`、JavaScript SDK 的 `baseURL`：填 `https://token.poryf.com/v1`。
* 直接发送 HTTP 请求：文本对话完整地址为 `https://token.poryf.com/v1/chat/completions`。
* 第三方客户端：先看该客户端是否自动添加 `/v1`。若自动添加，只填 `https://token.poryf.com`。

<Warning>不要拼成 `/v1/v1/chat/completions`，也不要把完整的文本对话地址当成 SDK 的 Base URL。</Warning>

## 鉴权

```http theme={null}
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
```

密钥失效时到控制台检查是否启用、过期或受额度限制。密钥一旦泄露，应及时在控制台撤销或更换。

## 兼容范围

本文档先覆盖 OpenAI 兼容的文本对话接口。模型是否支持图像输入、工具调用、结构化输出或其他协议，需要逐项确认。平台支持某个接口，不代表每个模型都支持该接口的全部参数。
