# Oapi接口文档 ## Docs - [介绍](https://czl-oapi.apifox.cn/doc-3536032.md): - [项目说明](https://czl-oapi.apifox.cn/doc-3536033.md): - [导言](https://czl-oapi.apifox.cn/doc-3536034.md): - [身份验证](https://czl-oapi.apifox.cn/doc-3536035.md): - [发出请求](https://czl-oapi.apifox.cn/doc-3536036.md): - [参数详情](https://czl-oapi.apifox.cn/doc-3536037.md): - 聊天(Chat) [聊天完成对象](https://czl-oapi.apifox.cn/doc-3536038.md): - 聊天(Chat) [聊天完成块对象](https://czl-oapi.apifox.cn/doc-3536039.md): - 自动补全(Completions) [完成对象](https://czl-oapi.apifox.cn/doc-3536040.md): - 嵌入(Embeddings) [嵌入对象](https://czl-oapi.apifox.cn/doc-3536041.md): - 微调(Fine-tuning) [ 微调作业对象](https://czl-oapi.apifox.cn/doc-3536042.md): - 微调(Fine-tuning) [微调作业事件对象](https://czl-oapi.apifox.cn/doc-3536043.md): - 图像(Images) [README](https://czl-oapi.apifox.cn/doc-3536044.md): - 图像(Images) [图像对象](https://czl-oapi.apifox.cn/doc-3536045.md): - 模型(Models) [模型对象](https://czl-oapi.apifox.cn/doc-3536046.md): - 文件(Files) [README](https://czl-oapi.apifox.cn/doc-3536047.md): - 文件(Files) [文件对象](https://czl-oapi.apifox.cn/doc-3536048.md): - 审查(Moderations) [调节对象](https://czl-oapi.apifox.cn/doc-3536049.md): - 助手测试版(AssistantsBeta) [辅助对象](https://czl-oapi.apifox.cn/doc-3536050.md): - 助手测试版(AssistantsBeta) [辅助文件对象](https://czl-oapi.apifox.cn/doc-3536051.md): - 线程数(Threads) [线程对象](https://czl-oapi.apifox.cn/doc-3536052.md): - 留言(Messages) [消息对象](https://czl-oapi.apifox.cn/doc-3536053.md): - 留言(Messages) [消息文件对象](https://czl-oapi.apifox.cn/doc-3536054.md): - 运行(Runs) [运行对象](https://czl-oapi.apifox.cn/doc-3536055.md): - 运行(Runs) [运行步骤对象](https://czl-oapi.apifox.cn/doc-3536056.md): ## API Docs - oapi专属接口 [返回价格列表](https://czl-oapi.apifox.cn/api-160582484.md): 美元:1 === $0.002 / 1K tokens - oapi专属接口 [模型厂家接口](https://czl-oapi.apifox.cn/api-160583077.md): 获取厂家代码和厂家名称的对应关系 - oapi专属接口 [获取指定日期使用量](https://czl-oapi.apifox.cn/api-161962068.md): - oapi专属接口 [获取可使用模型](https://czl-oapi.apifox.cn/api-161962229.md): - oapi专属接口 [Gemini原生接口](https://czl-oapi.apifox.cn/api-243492095.md): 支持gemini官方API请求方式, 把base_url改为`https://oapi.czl.net/gemini`即可. - oapi专属接口 [Claude原生接口](https://czl-oapi.apifox.cn/api-243492177.md): 支持Claude原生请求方式, 将`base_url`改为`https://oapi.czl.net/claude`即可. - 聊天(Chat) [创建聊天补全](https://czl-oapi.apifox.cn/api-139541808.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 音频(Audio) [创建语音](https://czl-oapi.apifox.cn/api-139541805.md): - 音频(Audio) [创建转录](https://czl-oapi.apifox.cn/api-139541806.md): - 音频(Audio) [创建翻译](https://czl-oapi.apifox.cn/api-139541807.md): - 自动补全(Completions) [创建完成](https://czl-oapi.apifox.cn/api-139541809.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 嵌入(Embeddings) [创建嵌入](https://czl-oapi.apifox.cn/api-139541810.md): 获取给定输入的矢量表示,机器学习模型和算法可以轻松使用该表示。 - 微调(Fine-tuning) [创建微调作业](https://czl-oapi.apifox.cn/api-139541811.md): 创建一个作业,根据给定的数据集微调指定的模型。 - 微调(Fine-tuning) [列出微调作业](https://czl-oapi.apifox.cn/api-139541812.md): 列出您组织的微调工作 - 微调(Fine-tuning) [检索微调作业](https://czl-oapi.apifox.cn/api-139541813.md): 获取有关微调工作的信息。 - 微调(Fine-tuning) [取消微调](https://czl-oapi.apifox.cn/api-139541814.md): 立即取消微调工作。 - 微调(Fine-tuning) [列出微调事件](https://czl-oapi.apifox.cn/api-139541815.md): 获取微调作业的状态更新。 - 图像(Images) [创建图像](https://czl-oapi.apifox.cn/api-139541816.md): [图片](https://platform.openai.com/docs/api-reference/images) - 图像(Images) [创建图片编辑](https://czl-oapi.apifox.cn/api-139541817.md): 在给定原始图像和提示的情况下创建编辑或扩展图像。 - 图像(Images) [创建图像变体](https://czl-oapi.apifox.cn/api-139541818.md): 创建给定图像的变体。 - 模型(Models) [列出模型](https://czl-oapi.apifox.cn/api-139541819.md): 列出当前可用的型号,并提供每个型号的基本信息,例如所有者和可用性。 - 模型(Models) [检索模型](https://czl-oapi.apifox.cn/api-139541820.md): 检索模型实例,提供有关模型的基本信息,例如所有者和权限。 - 模型(Models) [删除微调模型](https://czl-oapi.apifox.cn/api-139541821.md): 删除微调模型。您必须在组织中具有所有者角色才能删除模型。 - 文件(Files) [上传文件](https://czl-oapi.apifox.cn/api-139541822.md): 上传可跨各种端点/功能使用的文件。一个组织上传的所有文件大小最大可达 100 GB。 - 文件(Files) [删除文件](https://czl-oapi.apifox.cn/api-139541823.md): 删除文件。 - 文件(Files) [检索文件](https://czl-oapi.apifox.cn/api-139541824.md): 返回有关特定文件的信息。 - 文件(Files) [检索文件内容](https://czl-oapi.apifox.cn/api-139541825.md): - 文件(Files) [列出文件](https://czl-oapi.apifox.cn/api-139541826.md): - 审查(Moderations) [创建内容审核](https://czl-oapi.apifox.cn/api-139541827.md): 对文本是否违反 OpenAI 的内容政策进行分类 - 助手测试版(AssistantsBeta) [创建助手](https://czl-oapi.apifox.cn/api-139541828.md): 创建一个带有模型和说明的助手。 - 助手测试版(AssistantsBeta) [检索助手](https://czl-oapi.apifox.cn/api-139541829.md): - 助手测试版(AssistantsBeta) [修改助手](https://czl-oapi.apifox.cn/api-139541830.md): - 助手测试版(AssistantsBeta) [删除助手](https://czl-oapi.apifox.cn/api-139541831.md): - 助手测试版(AssistantsBeta) [列出助手](https://czl-oapi.apifox.cn/api-139541832.md): 返回助手列表。 - 助手测试版(AssistantsBeta) [创建辅助文件](https://czl-oapi.apifox.cn/api-139541833.md): [通过将File](https://platform.openai.com/docs/api-reference/files)附加到[助手](https://platform.openai.com/docs/api-reference/assistants)来创建助手文件。 - 助手测试版(AssistantsBeta) [检索助手文件](https://czl-oapi.apifox.cn/api-139541834.md): 检索 AssistantFile。 - 助手测试版(AssistantsBeta) [删除辅助文件](https://czl-oapi.apifox.cn/api-139541835.md): - 助手测试版(AssistantsBeta) [列出助手文件](https://czl-oapi.apifox.cn/api-139541836.md): 返回辅助文件的列表。 - 线程数(Threads) [创建线程](https://czl-oapi.apifox.cn/api-139541837.md): 创建一个线程。 - 线程数(Threads) [检索线程](https://czl-oapi.apifox.cn/api-139541838.md): - 线程数(Threads) [修改线程](https://czl-oapi.apifox.cn/api-139541839.md): 修改后的与指定ID匹配的[线程对象。](https://platform.openai.com/docs/api-reference/threads/object) - 线程数(Threads) [删除话题](https://czl-oapi.apifox.cn/api-139541840.md): 删除一个线程。 - 留言(Messages) [创建消息](https://czl-oapi.apifox.cn/api-139541841.md): - 留言(Messages) [检索消息](https://czl-oapi.apifox.cn/api-139541842.md): 与指定ID匹配的[消息](https://platform.openai.com/docs/api-reference/threads/messages/object)对象。 - 留言(Messages) [修改留言](https://czl-oapi.apifox.cn/api-139541843.md): 修改后的[消息](https://platform.openai.com/docs/api-reference/threads/messages/object)对象。 - 留言(Messages) [列出消息](https://czl-oapi.apifox.cn/api-139541844.md): - 留言(Messages) [检索消息文件](https://czl-oapi.apifox.cn/api-139541845.md): - 留言(Messages) [列出消息文件](https://czl-oapi.apifox.cn/api-139541846.md): - 运行(Runs) [创建运行](https://czl-oapi.apifox.cn/api-139541847.md): 一个[运行](https://platform.openai.com/docs/api-reference/runs/object)对象。 - 运行(Runs) [检索运行](https://czl-oapi.apifox.cn/api-139541848.md): 与指定ID匹配的[运行](https://platform.openai.com/docs/api-reference/runs/object)对象。 - 运行(Runs) [修改运行](https://czl-oapi.apifox.cn/api-139541849.md): 与指定 ID 匹配的修改后的[运行对象。](https://platform.openai.com/docs/api-reference/runs/object) - 运行(Runs) [列表运行](https://czl-oapi.apifox.cn/api-139541850.md): [运行](https://platform.openai.com/docs/api-reference/runs/object)对象的列表。 - 运行(Runs) [提交工具输出以运行](https://czl-oapi.apifox.cn/api-139541851.md): 当运行具有`status: "requires_action"`和`required_action.type`is时`submit_tool_outputs`,此端点可用于在工具调用全部完成后提交输出。所有输出必须在单个请求中提交。 - 运行(Runs) [取消运行](https://czl-oapi.apifox.cn/api-139541852.md): 取消运行`in_progress`。 - 运行(Runs) [创建线程并运行](https://czl-oapi.apifox.cn/api-139541853.md): 创建一个线程并在一个请求中运行它。 - 运行(Runs) [检索运行步骤](https://czl-oapi.apifox.cn/api-139541854.md): 与指定 ID 匹配的[运行步骤](https://platform.openai.com/docs/api-reference/runs/step-object)对象。 - 运行(Runs) [列出运行步骤](https://czl-oapi.apifox.cn/api-139541855.md): - 已弃用-音频(Audio) [创建转录](https://czl-oapi.apifox.cn/api-139541856.md): 了解如何将音频转换为文本。 - 已弃用-音频(Audio) [创建翻译](https://czl-oapi.apifox.cn/api-139541857.md): 将音频翻译成英文。