# 灵犀ai接口文档 ## Docs - [介绍](https://lingxi.apifox.cn/5338450m0.md): - [项目说明](https://lingxi.apifox.cn/5338451m0.md): - [发出请求](https://lingxi.apifox.cn/5338443m0.md): - [身份验证](https://lingxi.apifox.cn/5338453m0.md): - 帮助中心 [常见问题及解决办法](https://lingxi.apifox.cn/5338445m0.md): - 聊天(Chat) [聊天完成对象](https://lingxi.apifox.cn/5338455m0.md): - 聊天(Chat) [聊天完成块对象](https://lingxi.apifox.cn/5338456m0.md): - 自动补全(Completions) [完成对象](https://lingxi.apifox.cn/5338457m0.md): - 嵌入(Embeddings) [嵌入对象](https://lingxi.apifox.cn/5338458m0.md): - 微调(Fine-tuning) [ 微调作业对象](https://lingxi.apifox.cn/5338459m0.md): - 微调(Fine-tuning) [微调作业事件对象](https://lingxi.apifox.cn/5338460m0.md): - 图像(Images) [README](https://lingxi.apifox.cn/5338461m0.md): - 图像(Images) [图像对象](https://lingxi.apifox.cn/5338462m0.md): - 模型(Models) [模型对象](https://lingxi.apifox.cn/5338463m0.md): - 文件(Files) [README](https://lingxi.apifox.cn/5338464m0.md): - 文件(Files) [文件对象](https://lingxi.apifox.cn/5338465m0.md): - 审查(Moderations) [调节对象](https://lingxi.apifox.cn/5338466m0.md): - 助手测试版(AssistantsBeta) [辅助对象](https://lingxi.apifox.cn/5338467m0.md): - 助手测试版(AssistantsBeta) [辅助文件对象](https://lingxi.apifox.cn/5338468m0.md): - 线程数(Threads) [线程对象](https://lingxi.apifox.cn/5338469m0.md): - 留言(Messages) [消息对象](https://lingxi.apifox.cn/5338470m0.md): - 留言(Messages) [消息文件对象](https://lingxi.apifox.cn/5338471m0.md): - 运行(Runs) [运行对象](https://lingxi.apifox.cn/5338472m0.md): - 运行(Runs) [运行步骤对象](https://lingxi.apifox.cn/5338473m0.md): ## API Docs - 模型接口 > 聊天接口(Chat) [聊天接口(通用)](https://lingxi.apifox.cn/226205050e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 模型接口 > 聊天接口(Chat) [gpts](https://lingxi.apifox.cn/226205051e0.md): 模型名称格式为:gpt-4-gizmo-*,系统会自动进行识别 - 模型接口 > 聊天接口(Chat) [gemini-pro](https://lingxi.apifox.cn/226205052e0.md): 谷歌最新gemini-pro,vision对接中,后续我们也会直接购买谷歌API付费套餐 - 模型接口 > 聊天接口(Chat) [gpt-4-all(分析图片)](https://lingxi.apifox.cn/226205053e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 模型接口 > 聊天接口(Chat) [gpt-4-all(生成图片)](https://lingxi.apifox.cn/226205054e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 模型接口 > 聊天接口(Chat) [gpt-4-vision-preview](https://lingxi.apifox.cn/226205055e0.md): - 模型接口 > 模型(Models) [列出模型](https://lingxi.apifox.cn/226205049e0.md): 列出并描述 API 中可用的各种模型。您可以参考[模型](https://platform.openai.com/docs/models)文档以了解可用的模型以及它们之间的区别。 - 模型接口 > 自动补全接口(Completions) [内容补全接口](https://lingxi.apifox.cn/226205056e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 模型接口 > 图像接口(Images) > Midjourney API文档 > InsightFace任务提交 [提交swap_face任务](https://lingxi.apifox.cn/226205058e0.md): - 模型接口 > 图像接口(Images) > Midjourney API文档 > 任务提交 [执行动作](https://lingxi.apifox.cn/226205059e0.md): - 模型接口 > 图像接口(Images) > Midjourney API文档 > 任务提交 [提交Blend任务](https://lingxi.apifox.cn/226205060e0.md): - 模型接口 > 图像接口(Images) > Midjourney API文档 > 任务提交 [提交Describe任务](https://lingxi.apifox.cn/226205061e0.md): - 模型接口 > 图像接口(Images) > Midjourney API文档 > 任务提交 [提交Imagine任务](https://lingxi.apifox.cn/226205062e0.md): - 模型接口 > 图像接口(Images) > Midjourney API文档 > 任务提交 [提交Modal](https://lingxi.apifox.cn/226205063e0.md): - 模型接口 > 图像接口(Images) > Midjourney API文档 > 任务提交 [提交Shorten任务](https://lingxi.apifox.cn/226205064e0.md): - 模型接口 > 图像接口(Images) > Midjourney API文档 > 任务提交 [上传文件到discord](https://lingxi.apifox.cn/226205065e0.md): - 模型接口 > 图像接口(Images) > Midjourney API文档 > 任务查询 [查询所有任务](https://lingxi.apifox.cn/226205066e0.md): - 模型接口 > 图像接口(Images) > Midjourney API文档 > 任务查询 [根据ID列表查询任务](https://lingxi.apifox.cn/226205067e0.md): - 模型接口 > 图像接口(Images) > Midjourney API文档 > 任务查询 [根据ID列表查询任务-字段displays](https://lingxi.apifox.cn/226205068e0.md): - 模型接口 > 图像接口(Images) > Midjourney API文档 > 任务查询 [分页查询任务](https://lingxi.apifox.cn/226205069e0.md): - 模型接口 > 图像接口(Images) > Midjourney API文档 > 任务查询 [查询任务队列](https://lingxi.apifox.cn/226205070e0.md): - 模型接口 > 图像接口(Images) > Midjourney API文档 > 任务查询 [取消任务](https://lingxi.apifox.cn/226205071e0.md): - 模型接口 > 图像接口(Images) > Midjourney API文档 > 任务查询 [指定ID获取任务](https://lingxi.apifox.cn/226205072e0.md): - 模型接口 > 图像接口(Images) > Midjourney API文档 > 任务查询 [获取任务图片的seed(需设置mj或niji的私信ID)](https://lingxi.apifox.cn/226205073e0.md): - 模型接口 > 图像接口(Images) [DALL·E 3](https://lingxi.apifox.cn/226205057e0.md): [图片](https://platform.openai.com/docs/api-reference/images) - 模型接口 > 向量生成接口(Embeddings) [创建嵌入](https://lingxi.apifox.cn/226205074e0.md): 获取给定输入的矢量表示,机器学习模型和算法可以轻松使用该表示。 - 模型接口 > 音频接口(Audio) [创建转录](https://lingxi.apifox.cn/226205075e0.md): 了解如何将音频转换为文本。 - 模型接口 > 音频接口(Audio) [创建翻译](https://lingxi.apifox.cn/226205076e0.md): 将音频翻译成英文。 - 模型接口 > 音频接口(Audio) [TTS文本转语音](https://lingxi.apifox.cn/226205077e0.md): 了解如何将文本转换为音频。 - 音频(Audio) [创建语音](https://lingxi.apifox.cn/226205283e0.md): - 音频(Audio) [创建转录](https://lingxi.apifox.cn/226205284e0.md): - 音频(Audio) [创建翻译](https://lingxi.apifox.cn/226205285e0.md): - 聊天(Chat) [创建聊天补全](https://lingxi.apifox.cn/226205286e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 自动补全(Completions) [创建完成](https://lingxi.apifox.cn/226205287e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 嵌入(Embeddings) [创建嵌入](https://lingxi.apifox.cn/226205288e0.md): 获取给定输入的矢量表示,机器学习模型和算法可以轻松使用该表示。 - 微调(Fine-tuning) [创建微调作业](https://lingxi.apifox.cn/226205289e0.md): 创建一个作业,根据给定的数据集微调指定的模型。 - 微调(Fine-tuning) [列出微调作业](https://lingxi.apifox.cn/226205290e0.md): 列出您组织的微调工作 - 微调(Fine-tuning) [检索微调作业](https://lingxi.apifox.cn/226205291e0.md): 获取有关微调工作的信息。 - 微调(Fine-tuning) [取消微调](https://lingxi.apifox.cn/226205292e0.md): 立即取消微调工作。 - 微调(Fine-tuning) [列出微调事件](https://lingxi.apifox.cn/226205293e0.md): 获取微调作业的状态更新。 - 图像(Images) [创建图像](https://lingxi.apifox.cn/226205294e0.md): [图片](https://platform.openai.com/docs/api-reference/images) - 图像(Images) [创建图片编辑](https://lingxi.apifox.cn/226205295e0.md): 在给定原始图像和提示的情况下创建编辑或扩展图像。 - 图像(Images) [创建图像变体](https://lingxi.apifox.cn/226205296e0.md): 创建给定图像的变体。 - 模型(Models) [列出模型](https://lingxi.apifox.cn/226205297e0.md): 列出当前可用的型号,并提供每个型号的基本信息,例如所有者和可用性。 - 模型(Models) [检索模型](https://lingxi.apifox.cn/226205298e0.md): 检索模型实例,提供有关模型的基本信息,例如所有者和权限。 - 模型(Models) [删除微调模型](https://lingxi.apifox.cn/226205299e0.md): 删除微调模型。您必须在组织中具有所有者角色才能删除模型。 - 文件(Files) [上传文件](https://lingxi.apifox.cn/226205300e0.md): 上传可跨各种端点/功能使用的文件。一个组织上传的所有文件大小最大可达 100 GB。 - 文件(Files) [删除文件](https://lingxi.apifox.cn/226205301e0.md): 删除文件。 - 文件(Files) [检索文件](https://lingxi.apifox.cn/226205302e0.md): 返回有关特定文件的信息。 - 文件(Files) [检索文件内容](https://lingxi.apifox.cn/226205303e0.md): - 文件(Files) [列出文件](https://lingxi.apifox.cn/226205304e0.md): - 审查(Moderations) [创建内容审核](https://lingxi.apifox.cn/226205305e0.md): 对文本是否违反 OpenAI 的内容政策进行分类 - 助手测试版(AssistantsBeta) [创建助手](https://lingxi.apifox.cn/226205306e0.md): 创建一个带有模型和说明的助手。 - 助手测试版(AssistantsBeta) [检索助手](https://lingxi.apifox.cn/226205307e0.md): - 助手测试版(AssistantsBeta) [修改助手](https://lingxi.apifox.cn/226205308e0.md): - 助手测试版(AssistantsBeta) [删除助手](https://lingxi.apifox.cn/226205309e0.md): - 助手测试版(AssistantsBeta) [列出助手](https://lingxi.apifox.cn/226205310e0.md): 返回助手列表。 - 助手测试版(AssistantsBeta) [创建辅助文件](https://lingxi.apifox.cn/226205311e0.md): [通过将File](https://platform.openai.com/docs/api-reference/files)附加到[助手](https://platform.openai.com/docs/api-reference/assistants)来创建助手文件。 - 助手测试版(AssistantsBeta) [检索助手文件](https://lingxi.apifox.cn/226205312e0.md): 检索 AssistantFile。 - 助手测试版(AssistantsBeta) [删除辅助文件](https://lingxi.apifox.cn/226205313e0.md): - 助手测试版(AssistantsBeta) [列出助手文件](https://lingxi.apifox.cn/226205314e0.md): 返回辅助文件的列表。 - 线程数(Threads) [创建线程](https://lingxi.apifox.cn/226205315e0.md): 创建一个线程。 - 线程数(Threads) [检索线程](https://lingxi.apifox.cn/226205316e0.md): - 线程数(Threads) [修改线程](https://lingxi.apifox.cn/226205317e0.md): 修改后的与指定ID匹配的[线程对象。](https://platform.openai.com/docs/api-reference/threads/object) - 线程数(Threads) [删除话题](https://lingxi.apifox.cn/226205318e0.md): 删除一个线程。 - 留言(Messages) [创建消息](https://lingxi.apifox.cn/226205319e0.md): - 留言(Messages) [检索消息](https://lingxi.apifox.cn/226205320e0.md): 与指定ID匹配的[消息](https://platform.openai.com/docs/api-reference/threads/messages/object)对象。 - 留言(Messages) [修改留言](https://lingxi.apifox.cn/226205321e0.md): 修改后的[消息](https://platform.openai.com/docs/api-reference/threads/messages/object)对象。 - 留言(Messages) [列出消息](https://lingxi.apifox.cn/226205322e0.md): - 留言(Messages) [检索消息文件](https://lingxi.apifox.cn/226205323e0.md): - 留言(Messages) [列出消息文件](https://lingxi.apifox.cn/226205324e0.md): - 运行(Runs) [创建运行](https://lingxi.apifox.cn/226205325e0.md): 一个[运行](https://platform.openai.com/docs/api-reference/runs/object)对象。 - 运行(Runs) [检索运行](https://lingxi.apifox.cn/226205326e0.md): 与指定ID匹配的[运行](https://platform.openai.com/docs/api-reference/runs/object)对象。 - 运行(Runs) [修改运行](https://lingxi.apifox.cn/226205327e0.md): 与指定 ID 匹配的修改后的[运行对象。](https://platform.openai.com/docs/api-reference/runs/object) - 运行(Runs) [列表运行](https://lingxi.apifox.cn/226205328e0.md): [运行](https://platform.openai.com/docs/api-reference/runs/object)对象的列表。 - 运行(Runs) [提交工具输出以运行](https://lingxi.apifox.cn/226205329e0.md): 当运行具有`status: "requires_action"`和`required_action.type`is时`submit_tool_outputs`,此端点可用于在工具调用全部完成后提交输出。所有输出必须在单个请求中提交。 - 运行(Runs) [取消运行](https://lingxi.apifox.cn/226205330e0.md): 取消运行`in_progress`。 - 运行(Runs) [创建线程并运行](https://lingxi.apifox.cn/226205331e0.md): 创建一个线程并在一个请求中运行它。 - 运行(Runs) [检索运行步骤](https://lingxi.apifox.cn/226205332e0.md): 与指定 ID 匹配的[运行步骤](https://platform.openai.com/docs/api-reference/runs/step-object)对象。 - 运行(Runs) [列出运行步骤](https://lingxi.apifox.cn/226205333e0.md): - 已弃用-音频(Audio) [创建转录](https://lingxi.apifox.cn/226205334e0.md): 了解如何将音频转换为文本。 - 已弃用-音频(Audio) [创建翻译](https://lingxi.apifox.cn/226205335e0.md): 将音频翻译成英文。