FocusAPI 对 OpenAI Chat Completions / Responses 等路径提供兼容转发。多数场景下,只需使用 OpenAI SDK 并修改Documentation Index
Fetch the complete documentation index at: https://docs.focusapi.cn/llms.txt
Use this file to discover all available pages before exploring further.
base_url 即可。
推荐接口
| 用途 | 方法 | 路径 |
|---|---|---|
| 对话(最常用) | POST | /v1/chat/completions |
| 模型列表 | GET | /v1/models |
模型名
请求体中的model 必须与控制台 模型广场 中展示的 ID 一致,例如:
gpt-4ogpt-4o-mini- 其他平台已上架的 OpenAI 系列模型
认证头
与原生 OpenAI 的差异(须知)
| 项目 | 说明 |
|---|---|
| Base URL | 使用 https://api.FocusAPI.com/v1,而非 api.openai.com |
| 计费 | 按 FocusAPI 额度与模型倍率计费,见 计费说明 |
| 功能开关 | 部分新特性是否可用取决于平台上架情况,以控制台为准 |
