Skip to main content

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.

FocusAPI 对 OpenAI Chat Completions / Responses 等路径提供兼容转发。多数场景下,只需使用 OpenAI SDK 并修改 base_url 即可。

推荐接口

用途方法路径
对话(最常用)POST/v1/chat/completions
模型列表GET/v1/models
完整示例见 快速开始对话 API

模型名

请求体中的 model 必须与控制台 模型广场 中展示的 ID 一致,例如:
  • gpt-4o
  • gpt-4o-mini
  • 其他平台已上架的 OpenAI 系列模型
模型名区分大小写。复制模型广场中的完整 ID,不要自行拼接版本后缀。

认证头

Authorization: Bearer sk-your-api-key
Content-Type: application/json

与原生 OpenAI 的差异(须知)

项目说明
Base URL使用 https://api.FocusAPI.com/v1,而非 api.openai.com
计费按 FocusAPI 额度与模型倍率计费,见 计费说明
功能开关部分新特性是否可用取决于平台上架情况,以控制台为准

相关文档