# OhMyGPT公开API文档 ## Docs - [本站介绍](https://ohmygpt-docs.apifox.cn/doc-3284757.md): - [更新日志](https://ohmygpt-docs.apifox.cn/doc-3685383.md): - [新版网站介绍](https://ohmygpt-docs.apifox.cn/doc-4960079.md): - [自助开票系统使用文档](https://ohmygpt-docs.apifox.cn/doc-5305167.md): - [Telegram Bot使用文档](https://ohmygpt-docs.apifox.cn/doc-5319532.md): - [自建Cloudflare Worker反代教程](https://ohmygpt-docs.apifox.cn/doc-5628298.md): - [Claude Code转发服务](https://ohmygpt-docs.apifox.cn/doc-7055997.md): - [CodeX转发服务](https://ohmygpt-docs.apifox.cn/doc-7412544.md): - Files文件存储服务 开放API [文件存储服务](https://ohmygpt-docs.apifox.cn/doc-5575792.md): - OAuth开放API [开放OAuth API介绍](https://ohmygpt-docs.apifox.cn/doc-4718106.md): - Midjourney、SD图像生成 API > Midjourney开放API接口 [Midjourney服务说明文档](https://ohmygpt-docs.apifox.cn/doc-2941619.md): - OpenAI [关于OpenAI兼容API接口说明](https://ohmygpt-docs.apifox.cn/doc-3143767.md): - OpenAI [关于Azure OpenAI API接口服务说明](https://ohmygpt-docs.apifox.cn/doc-3146135.md): ## API Docs - Files文件存储服务 开放API [文件上传](https://ohmygpt-docs.apifox.cn/api-238525664.md): # 简介 - Files文件存储服务 开放API [文件信息更新](https://ohmygpt-docs.apifox.cn/api-238527205.md): # 简介 - Files文件存储服务 开放API [删除文件](https://ohmygpt-docs.apifox.cn/api-238530420.md): # 简介 - Files文件存储服务 开放API [用户查询 (分页)](https://ohmygpt-docs.apifox.cn/api-238530553.md): # 简介 - Files文件存储服务 开放API [用户元数据查询 (by fileUinqueIds)](https://ohmygpt-docs.apifox.cn/api-298926617.md): # 简介 - Files文件存储服务 开放API [文件下载接口(Public公开文件下载)](https://ohmygpt-docs.apifox.cn/api-238530745.md): # 简介 - Files文件存储服务 开放API [文件下载接口(Private私有文件下载)](https://ohmygpt-docs.apifox.cn/api-238531095.md): # 简介 - Files文件存储服务 开放API [公开文件元数据获取](https://ohmygpt-docs.apifox.cn/api-313166298.md): - OAuth开放API [用户授权页](https://ohmygpt-docs.apifox.cn/api-192724258.md): 按照参数规则配置好URL,并让用户在浏览器中打开此URL,从而要求用户授权您的应用,授权完成后将会获得Code并重定向到带参数的`redirect_uri`中 - OAuth开放API [Code展示页](https://ohmygpt-docs.apifox.cn/api-192763389.md): 用于展示Code,并提示用户在您的App中输入此Code - OAuth开放API [申请access_token](https://ohmygpt-docs.apifox.cn/api-192724620.md): OAuth APP服务端通过自己的client_id+client_secret以及从用户那里拿到的code请求OAuth Access Token - OAuth开放API [读取用户基本信息](https://ohmygpt-docs.apifox.cn/api-192724683.md): 注:调用此API的最低权限为 `common` - OAuth开放API [读取用户余额信息](https://ohmygpt-docs.apifox.cn/api-192729935.md): 注:调用此API的最低权限为 `general_api_access` - OAuth开放API [收取用户费用](https://ohmygpt-docs.apifox.cn/api-192725362.md): 主动扣除用户的代币到您的开发者账户中,方便让用户支付应用的费用,不可以未经用户授权恶意扣除费用。 - OAuth开放API [为用户创建一个Stripe Checkout充值订单](https://ohmygpt-docs.apifox.cn/api-192726782.md): 方便用户在余额不足时直接充值 - OAuth开放API [为用户创建一个Stripe Invoice充值订单](https://ohmygpt-docs.apifox.cn/api-192726818.md): 方便用户在余额不足时直接充值 - OAuth开放API [调用其它开放API](https://ohmygpt-docs.apifox.cn/api-192726841.md): 您可以使用用户授权得到的OAuth Token调用本站绝大多数需要API Key的API,用于给用户提供服务,费用由用户承担,且有机会获得分成,目前支持的API有: - OAuth开放API [通过OAuth Token读取用户管理Token](https://ohmygpt-docs.apifox.cn/api-212810908.md): 获取一个用户管理Token - OAuth开放API [通过OAuth Token更新用户管理Token](https://ohmygpt-docs.apifox.cn/api-212811984.md): 更新用户管理Token - Midjourney、SD图像生成 API > Midjourney开放API接口 [Midjourney 文生图 任务创建](https://ohmygpt-docs.apifox.cn/api-107358560.md): Midjourney imagine接口,可通过该接口执行`/imagine`动作。 - Midjourney、SD图像生成 API > Midjourney开放API接口 [Midjourney 执行动作 任务创建](https://ohmygpt-docs.apifox.cn/api-107358561.md): 执行Imagine文生图后,可以利用这个接口执行放大、变换以及后续的缩放、局部重绘等操作。 - Midjourney、SD图像生成 API > Midjourney开放API接口 [Midjourney Blend 混合图生图 任务创建](https://ohmygpt-docs.apifox.cn/api-107358559.md): - Midjourney、SD图像生成 API > Midjourney开放API接口 [Midjourney Describe prompt提取 任务创建](https://ohmygpt-docs.apifox.cn/api-107358563.md): - Midjourney、SD图像生成 API > Midjourney开放API接口 [Midjourney 查询指定任务ID 的执行状态](https://ohmygpt-docs.apifox.cn/api-107358562.md): - Midjourney、SD图像生成 API > Midjourney开放API接口 [Midjourney 分页批量查询任务](https://ohmygpt-docs.apifox.cn/api-111474416.md): 通过分页的形式批量查询您账号下的所有Mj任务 - Midjourney、SD图像生成 API > Midjourney开放API接口 [从对象存储获取Midjourney生成的图片](https://ohmygpt-docs.apifox.cn/api-115286594.md): `https://pi.ohmygpt.com/api/v1/content/mj-generated/` 是一个Get接口,您可以通过这个接口来从本站的S3对象存储服务中获取图片文件。 - Midjourney、SD图像生成 API > Midjourney开放API接口 [通过WSRV反代Discord图片](https://ohmygpt-docs.apifox.cn/api-115287461.md): 基于`wsrv`项目对图片进行反代,让用户端能直接访问图片,节省服务器反代流量费用。 - Midjourney、SD图像生成 API > Midjourney开放API接口 [通过WSRV反代并压缩Discord图片](https://ohmygpt-docs.apifox.cn/api-115287503.md): 基于`wsrv`项目对图片进行反代,让用户端能直接访问图片,节省服务器反代流量费用。 - Midjourney、SD图像生成 API > Midjourney开放API接口 [从对象存储+WSRV获取Midjourney生成的图片](https://ohmygpt-docs.apifox.cn/api-115287335.md): 基于`wsrv`项目对图片进行反代,让用户端能直接访问图片,节省服务器反代流量费用。 - Midjourney、SD图像生成 API > Midjourney开放API接口 [从对象存储+WSRV获取Midjourney生成的图片(压缩)](https://ohmygpt-docs.apifox.cn/api-115286802.md): 基于`wsrv`项目对图片进行反代,让用户端能直接访问压缩后的图片,提升用户体验。 - Midjourney、SD图像生成 API > 其它图像生成API [ND图像生成 API](https://ohmygpt-docs.apifox.cn/api-145379071.md): # 简介 - Midjourney、SD图像生成 API > Flux图像生成 [Flux Schnell 图像生成](https://ohmygpt-docs.apifox.cn/api-208347493.md): 由黑森林实验室训练的图像生成模型,效果非常棒 - Midjourney、SD图像生成 API > Flux图像生成 [Flux Dev 图像生成](https://ohmygpt-docs.apifox.cn/api-208358618.md): 由黑森林实验室训练的图像生成模型,效果非常棒 - Midjourney、SD图像生成 API > Flux图像生成 [Flux Pro 图像生成](https://ohmygpt-docs.apifox.cn/api-208358615.md): 由黑森林实验室训练的图像生成模型,效果非常棒 - Midjourney、SD图像生成 API > Flux图像生成 [Flux Pro 1.1 图像生成](https://ohmygpt-docs.apifox.cn/api-226188941.md): 由黑森林实验室训练的图像生成模型,效果非常棒 - Midjourney、SD图像生成 API > Flux图像生成 [Flux 1.1 Pro Ultura 图像生成](https://ohmygpt-docs.apifox.cn/api-236396827.md): 由黑森林实验室训练的图像生成模型,效果非常棒 - 管理API列表 [创建新的API Key](https://ohmygpt-docs.apifox.cn/api-105130828.md): 使用具备管理权限的密钥创建一个API Key。 - 管理API列表 [修改API Key信息](https://ohmygpt-docs.apifox.cn/api-105130829.md): 修改指定的API Key信息 - 管理API列表 [查询用户所有的API Key](https://ohmygpt-docs.apifox.cn/api-105130830.md): 获取用户账号下的所有API Key - 管理API列表 [删除指定API Key](https://ohmygpt-docs.apifox.cn/api-105130831.md): 提供要删除的API Key,后台将删除这个API Key。 - 管理API列表 [查询用户会员到期日期接口](https://ohmygpt-docs.apifox.cn/api-105926161.md): 查询会员到期日期 - 管理API列表 [用户余额查询接口](https://ohmygpt-docs.apifox.cn/api-118427018.md): 通过带管理权限的API Key查询用户余额 - 管理API列表 [查询当前模型倍率接口](https://ohmygpt-docs.apifox.cn/api-128073781.md): 查询目前的模型倍率 - Claude [Anthropic 原生 Messages API](https://ohmygpt-docs.apifox.cn/api-152507338.md): **24-1123更新:** - Claude [Anthropic 原生 Completions 企业商用 API](https://ohmygpt-docs.apifox.cn/api-121492326.md): 此API是经DogeNet LLC公司与Anthropic公司签约后,由Anthropic公司直接提供的: - Claude [Anthropic 原生 Messages Token Count API](https://ohmygpt-docs.apifox.cn/api-237994522.md): 由Anthropic官方提供的计算Input Tokens的API - OpenAI > Audio [TTS文本转语音服务](https://ohmygpt-docs.apifox.cn/api-123098300.md): OpenAI 最新款的文本转语音(TTS)模型 - OpenAI > Chat [Chat Completion](https://ohmygpt-docs.apifox.cn/api-123253693.md): OpenAI的ChatCompletion接口 - OpenAI > Chat [Completion (Legacy)](https://ohmygpt-docs.apifox.cn/api-124125561.md): 这里仅给出示例,完整文档请查看官方文档:https://platform.openai.com/docs/api-reference/completions - OpenAI > Images [图像生成](https://ohmygpt-docs.apifox.cn/api-123103208.md): 您可以在这个接口使用OpenAI 最新的图像生成AI: - OpenAI > Images [Image Edit](https://ohmygpt-docs.apifox.cn/api-292319670.md): - OpenAI > Embeddings [Embeddings](https://ohmygpt-docs.apifox.cn/api-124126345.md): 这里仅给出示例,完整参数请查看官方文档:https://platform.openai.com/docs/api-reference/embeddings - OpenAI [Realtime 实时通话端点](https://ohmygpt-docs.apifox.cn/websocket-3563866.md): Realtime API帮助开发者构建低延迟、多模态的对话体验,目前支持文本和语言的实时输入和输出 - OpenAI [Models](https://ohmygpt-docs.apifox.cn/api-124126461.md): 返回本站所支持的所有模型/服务,格式兼容OpenAI的格式 - 其它开放API > 搜索API [Google Custom Search API](https://ohmygpt-docs.apifox.cn/api-141553709.md): # Google Custom Search API - 其它开放API > 搜索API [Google Search By Serper](https://ohmygpt-docs.apifox.cn/api-145085337.md): ## 简介 - 其它开放API > Azure API [Azure 文本转语音](https://ohmygpt-docs.apifox.cn/api-145221673.md): 您可通过此接口直接访问Azure的神经网络语音模型,实现将文字转换为音频的功能。(您需要在您的API密钥上勾选`azure-tts-1`权限才可以调用此接口 - 其它开放API > Azure API [Azure 获取TTS 语音列表](https://ohmygpt-docs.apifox.cn/api-145222093.md): - 其它开放API > 覆写规则 [创建规则](https://ohmygpt-docs.apifox.cn/api-345963858.md): 创建参数覆写规则 - 其它开放API > 覆写规则 [更新规则](https://ohmygpt-docs.apifox.cn/api-345963859.md): 按 ruleId 更新规则的名称、描述、优先级、启用状态、条件或动作。 - 其它开放API > 覆写规则 [删除规则](https://ohmygpt-docs.apifox.cn/api-345963860.md): 按 ruleId 删除规则。 - 其它开放API > 覆写规则 [获取规则](https://ohmygpt-docs.apifox.cn/api-345963861.md): 按 ruleId 获取规则详情。 - 其它开放API > 覆写规则 [列出规则](https://ohmygpt-docs.apifox.cn/api-345963862.md): 列出用户规则,可选 includeDisabled。 - 其它开放API > 覆写规则 [批量启用/禁用](https://ohmygpt-docs.apifox.cn/api-345963863.md): 批量切换规则启用状态。 - 其它开放API > 覆写规则 [复制规则](https://ohmygpt-docs.apifox.cn/api-345963864.md): 复制已有规则为新名称。 - 其它开放API > 覆写规则 [测试规则](https://ohmygpt-docs.apifox.cn/api-345963865.md): 测试请求体在规则应用前后的变化,并返回已应用规则列表。 - 其它开放API > 覆写规则 [获取统计信息](https://ohmygpt-docs.apifox.cn/api-345963866.md): 返回规则数量、启用数量、应用次数等统计。 - 其它开放API > 覆写规则 [获取限制配置](https://ohmygpt-docs.apifox.cn/api-345963867.md): 返回支持的 API 类型、模型、字段及校验器等信息。 - 其它开放API > 覆写规则 [检查规则名](https://ohmygpt-docs.apifox.cn/api-345963868.md): 检查规则名是否可用(可选 excludeRuleId)。 - 其它开放API > 覆写规则 [批量删除](https://ohmygpt-docs.apifox.cn/api-345963869.md): 批量删除多个规则。 - 其它开放API > 覆写规则 [导出规则](https://ohmygpt-docs.apifox.cn/api-345963870.md): 导出用户的所有规则(JSON 数组)。 - 其它开放API > 覆写规则 [导入规则](https://ohmygpt-docs.apifox.cn/api-345963871.md): 导入规则数组,可配置 skipDuplicates。 - 其它开放API [[Beta] OhMyGPT Socket.IO 统一API端点](https://ohmygpt-docs.apifox.cn/socket-io-301840.md):