# OhMyGPT API ## Docs - [本站介绍](https://docs.dogeworks.com/doc-3284757.md): - [更新日志](https://docs.dogeworks.com/doc-3685383.md): - [推广计划奖励使用说明](https://docs.dogeworks.com/doc-7702188.md): - OAuth [开放OAuth API介绍](https://docs.dogeworks.com/doc-4718106.md): - 存储服务 [文件存储服务](https://docs.dogeworks.com/doc-5575792.md): - 归档文档 [自助开票系统使用文档](https://docs.dogeworks.com/doc-5305167.md): - 归档文档 [Telegram Bot使用文档](https://docs.dogeworks.com/doc-5319532.md): - 归档文档 [自建Cloudflare Worker反代教程](https://docs.dogeworks.com/doc-5628298.md): - 归档文档 [Claude Code转发服务](https://docs.dogeworks.com/doc-7055997.md): - 归档文档 [CodeX转发服务](https://docs.dogeworks.com/doc-7412544.md): - 归档文档 [新版网站介绍](https://docs.dogeworks.com/doc-4960079.md): ## API Docs - OpenAI > Responses [创建 model response](https://docs.dogeworks.com/api-358190026.md): - OpenAI > Responses [获取 model response](https://docs.dogeworks.com/api-358212694.md): - OpenAI > Responses [删除 model response](https://docs.dogeworks.com/api-358212738.md): - OpenAI > Responses [取消响应](https://docs.dogeworks.com/api-358212824.md): - OpenAI > Responses [列出 input items](https://docs.dogeworks.com/api-358214562.md): - OpenAI > Conversations [创建 conversation](https://docs.dogeworks.com/api-358205682.md): - OpenAI > Conversations [检索 conversation](https://docs.dogeworks.com/api-358210166.md): - OpenAI > Conversations [更新 conversation](https://docs.dogeworks.com/api-358210332.md): - OpenAI > Conversations [删除 conversation](https://docs.dogeworks.com/api-358210378.md): - OpenAI > Conversations [创建 items](https://docs.dogeworks.com/api-358211043.md): - OpenAI > Conversations [列出 items](https://docs.dogeworks.com/api-358210697.md): - OpenAI > Conversations [检索 item](https://docs.dogeworks.com/api-358211111.md): - OpenAI > Conversations [删除 item](https://docs.dogeworks.com/api-358211134.md): - OpenAI [Chat.Completions API](https://docs.dogeworks.com/api-123253693.md): - OpenAI [TTS文本转语音](https://docs.dogeworks.com/api-123098300.md): OpenAI 最新款的文本转语音(TTS)模型 - OpenAI [Embeddings](https://docs.dogeworks.com/api-124126345.md): 这里仅给出示例,完整参数请查看官方文档:https://platform.openai.com/docs/api-reference/embeddings - OpenAI [图像生成](https://docs.dogeworks.com/api-123103208.md): 您可以在这个接口使用OpenAI 最新的图像生成AI: - OpenAI [图像编辑](https://docs.dogeworks.com/api-292319670.md): - Claude > batches [创建消息批次](https://docs.dogeworks.com/api-377061793.md): 消息批处理 API 可用于一次处理多个消息 API 请求。创建消息批处理后,它会立即开始处理。批处理可能需要最长 24 小时才能完成。 - Claude > batches [检索消息批次](https://docs.dogeworks.com/api-377062226.md): 此端点是幂等的,可用于轮询消息批处理的完成状态。要访问消息批处理的结果,请请求响应中的 results_url 字段。 - Claude > batches [检索消息批次结果](https://docs.dogeworks.com/api-377062255.md): 文件中的每一行都是一个 JSON 对象,包含消息批处理中单个请求的结果。结果的顺序不保证与请求顺序相同。请使用 custom_id 字段将结果与请求匹配。 - Claude > batches [列出消息批次](https://docs.dogeworks.com/api-377062274.md): 列出工作区内的所有消息批次。返回的批次按创建时间倒序排列,最近创建的批次优先。 - Claude > batches [取消消息批次](https://docs.dogeworks.com/api-377062481.md): 批处理可以在处理结束前的任何时间取消。一旦启动取消,批处理将进入 canceling 状态,此时系统可能会完成任何正在进行且不可中断的请求,然后才完成取消。 - Claude > batches [删除消息批次](https://docs.dogeworks.com/api-377062487.md): 消息批次只能在处理完成后删除。如果您想删除正在进行中的批次,必须先取消它。 - Claude > Claude Code专用接口 [Claude Code专用接口 (Messages原生API)](https://docs.dogeworks.com/api-378988586.md): - Claude > Claude Code专用接口 [Claude Code API (Chat.Completions 兼容API)](https://docs.dogeworks.com/api-378995298.md): - Claude [Anthropic 原生 Completions 企业商用 API](https://docs.dogeworks.com/api-121492326.md): 此API是经DogeNet LLC公司与Anthropic公司签约后,由Anthropic公司直接提供的: - Claude [Anthropic 原生 Messages API](https://docs.dogeworks.com/api-152507338.md): **24-1123更新:** - Claude [Anthropic 原生 Messages Token Count API](https://docs.dogeworks.com/api-237994522.md): 由Anthropic官方提供的计算Input Tokens的API - 图像生成 > 其它 [ND图像生成 API](https://docs.dogeworks.com/api-145379071.md): # 简介 - 图像生成 > Flux [Flux Schnell 图像生成](https://docs.dogeworks.com/api-208347493.md): 由黑森林实验室训练的图像生成模型,效果非常棒 - 图像生成 > Flux [Flux Dev 图像生成](https://docs.dogeworks.com/api-208358618.md): 由黑森林实验室训练的图像生成模型,效果非常棒 - 图像生成 > Flux [Flux Pro 图像生成](https://docs.dogeworks.com/api-208358615.md): 由黑森林实验室训练的图像生成模型,效果非常棒 - 图像生成 > Flux [Flux Pro 1.1 图像生成](https://docs.dogeworks.com/api-226188941.md): 由黑森林实验室训练的图像生成模型,效果非常棒 - 图像生成 > Flux [Flux 1.1 Pro Ultura 图像生成](https://docs.dogeworks.com/api-236396827.md): 由黑森林实验室训练的图像生成模型,效果非常棒 - 覆写规则 [创建规则](https://docs.dogeworks.com/api-345963858.md): 创建参数覆写规则 - 覆写规则 [更新规则](https://docs.dogeworks.com/api-345963859.md): 按 ruleId 更新规则的名称、描述、优先级、启用状态、条件或动作。 - 覆写规则 [删除规则](https://docs.dogeworks.com/api-345963860.md): 按 ruleId 删除规则。 - 覆写规则 [获取规则](https://docs.dogeworks.com/api-345963861.md): 按 ruleId 获取规则详情。 - 覆写规则 [列出规则](https://docs.dogeworks.com/api-345963862.md): 列出用户规则,可选 includeDisabled。 - 覆写规则 [批量启用/禁用](https://docs.dogeworks.com/api-345963863.md): 批量切换规则启用状态。 - 覆写规则 [复制规则](https://docs.dogeworks.com/api-345963864.md): 复制已有规则为新名称。 - 覆写规则 [测试规则](https://docs.dogeworks.com/api-345963865.md): 测试请求体在规则应用前后的变化,并返回已应用规则列表。 - 覆写规则 [获取统计信息](https://docs.dogeworks.com/api-345963866.md): 返回规则数量、启用数量、应用次数等统计。 - 覆写规则 [获取限制配置](https://docs.dogeworks.com/api-345963867.md): 返回支持的 API 类型、模型、字段及校验器等信息。 - 覆写规则 [检查规则名](https://docs.dogeworks.com/api-345963868.md): 检查规则名是否可用(可选 excludeRuleId)。 - 覆写规则 [批量删除](https://docs.dogeworks.com/api-345963869.md): 批量删除多个规则。 - 覆写规则 [导出规则](https://docs.dogeworks.com/api-345963870.md): 导出用户的所有规则(JSON 数组)。 - 覆写规则 [导入规则](https://docs.dogeworks.com/api-345963871.md): 导入规则数组,可配置 skipDuplicates。 - Store [列出聊天完成项](https://docs.dogeworks.com/api-358084812.md): 存储的聊天完成列表。只有在使用 store 参数设置为 true 时存储的聊天完成才会被返回。 - Store [获取聊天完成](https://docs.dogeworks.com/api-358086056.md): 按唯一标识获取单条存储记录详情。 - Store [删除聊天完成](https://docs.dogeworks.com/api-358086330.md): 按 responseId/responseIds 与 omgUrId/omgUrIds 删除当前用户的存储记录;多个条件间为 “或” 关系。 - OAuth [用户授权页](https://docs.dogeworks.com/api-192724258.md): 按照参数规则配置好URL,并让用户在浏览器中打开此URL,从而要求用户授权您的应用,授权完成后将会获得Code并重定向到带参数的`redirect_uri`中 - OAuth [Code展示页](https://docs.dogeworks.com/api-192763389.md): 用于展示Code,并提示用户在您的App中输入此Code - OAuth [申请access_token](https://docs.dogeworks.com/api-192724620.md): OAuth APP服务端通过自己的client_id+client_secret以及从用户那里拿到的code请求OAuth Access Token - OAuth [读取用户基本信息](https://docs.dogeworks.com/api-192724683.md): 注:调用此API的最低权限为 `common` - OAuth [读取用户余额信息](https://docs.dogeworks.com/api-192729935.md): 注:调用此API的最低权限为 `general_api_access` - OAuth [收取用户费用](https://docs.dogeworks.com/api-192725362.md): 主动扣除用户的代币到您的开发者账户中,方便让用户支付应用的费用,不可以未经用户授权恶意扣除费用。 - OAuth [为用户创建一个Stripe Checkout充值订单](https://docs.dogeworks.com/api-192726782.md): 方便用户在余额不足时直接充值 - OAuth [为用户创建一个Stripe Invoice充值订单](https://docs.dogeworks.com/api-192726818.md): 方便用户在余额不足时直接充值 - OAuth [调用其它开放API](https://docs.dogeworks.com/api-192726841.md): 您可以使用用户授权得到的OAuth Token调用本站绝大多数需要API Key的API,用于给用户提供服务,费用由用户承担,且有机会获得分成,目前支持的API有: - OAuth [通过OAuth Token读取用户管理Token](https://docs.dogeworks.com/api-212810908.md): 获取一个用户管理Token - OAuth [通过OAuth Token更新用户管理Token](https://docs.dogeworks.com/api-212811984.md): 更新用户管理Token - 存储服务 [文件上传](https://docs.dogeworks.com/api-238525664.md): # 简介 - 存储服务 [文件信息更新](https://docs.dogeworks.com/api-238527205.md): # 简介 - 存储服务 [删除文件](https://docs.dogeworks.com/api-238530420.md): # 简介 - 存储服务 [用户查询 (分页)](https://docs.dogeworks.com/api-238530553.md): # 简介 - 存储服务 [用户元数据查询 (by fileUinqueIds)](https://docs.dogeworks.com/api-298926617.md): # 简介 - 存储服务 [文件下载接口(Public公开文件下载)](https://docs.dogeworks.com/api-238530745.md): # 简介 - 存储服务 [文件下载接口(Private私有文件下载)](https://docs.dogeworks.com/api-238531095.md): # 简介 - 存储服务 [公开文件元数据获取](https://docs.dogeworks.com/api-313166298.md): - API KEY 管理 [创建新的API Key](https://docs.dogeworks.com/api-105130828.md): 使用具备管理权限的密钥创建一个API Key。 - API KEY 管理 [修改API Key信息](https://docs.dogeworks.com/api-105130829.md): 修改指定的API Key信息 - API KEY 管理 [查询用户所有的API Key](https://docs.dogeworks.com/api-105130830.md): 获取用户账号下的所有API Key - API KEY 管理 [删除指定API Key](https://docs.dogeworks.com/api-105130831.md): 提供要删除的API Key,后台将删除这个API Key。 - API KEY 管理 [查询用户会员到期日期接口](https://docs.dogeworks.com/api-105926161.md): 查询会员到期日期 - API KEY 管理 [用户余额查询接口](https://docs.dogeworks.com/api-118427018.md): 通过带管理权限的API Key查询用户余额 - API KEY 管理 [查询当前模型倍率接口](https://docs.dogeworks.com/api-128073781.md): 查询目前的模型倍率 - 其它 > 搜索 [Google Custom Search API](https://docs.dogeworks.com/api-141553709.md): # Google Custom Search API - 其它 > 搜索 [Google Search By Serper](https://docs.dogeworks.com/api-145085337.md): ## 简介 - 其它 > Azure [Azure 文本转语音](https://docs.dogeworks.com/api-145221673.md): 您可通过此接口直接访问Azure的神经网络语音模型,实现将文字转换为音频的功能。(您需要在您的API密钥上勾选`azure-tts-1`权限才可以调用此接口 - 其它 > Azure [Azure 获取TTS 语音列表](https://docs.dogeworks.com/api-145222093.md): - 其它 [[Beta] OhMyGPT Socket.IO 统一API端点](https://docs.dogeworks.com/socket-io-301840.md): - 其它 [Gemini 3 Pro Image Preview API](https://docs.dogeworks.com/api-388557739.md): 注:将 `body.omg_extra_body.gemini_b64img_upload_enabled` 设置为true,可以让返回的Base 64改成图像URL,图像URL有效期14天。 - [模型列表](https://docs.dogeworks.com/api-124126461.md): 返回本站所支持的所有模型/服务,格式兼容OpenAI的格式 ## Schemas - Chat [ChatSession](https://docs.dogeworks.com/schema-59070537.md): - Chat [ChatMessage](https://docs.dogeworks.com/schema-59070538.md): - Chat [ChatGPTParams](https://docs.dogeworks.com/schema-59070539.md): - Chat [UserPrompts](https://docs.dogeworks.com/schema-59070540.md): - Chat [OnlinePrompts](https://docs.dogeworks.com/schema-59070541.md): - User [User](https://docs.dogeworks.com/schema-59070542.md): - User [UserLog](https://docs.dogeworks.com/schema-59070543.md): - User [UserToken-D](https://docs.dogeworks.com/schema-59070544.md): - Pay [UserOrder](https://docs.dogeworks.com/schema-59070545.md): - Pay [UserBill](https://docs.dogeworks.com/schema-59070546.md): - System [OpenAIKey](https://docs.dogeworks.com/schema-59070547.md): - System [SystemOpenAIKey](https://docs.dogeworks.com/schema-59070548.md): - System [Settings](https://docs.dogeworks.com/schema-59070549.md): - System [SmtpSettings](https://docs.dogeworks.com/schema-59070550.md): - System [MailDto](https://docs.dogeworks.com/schema-59070551.md): - Draw [AIImages](https://docs.dogeworks.com/schema-59070552.md): - Draw [MjImagineQueryResult](https://docs.dogeworks.com/schema-59070553.md): - Schemas [Scope](https://docs.dogeworks.com/schema-199144310.md): - Schemas [ApiType](https://docs.dogeworks.com/schema-199144311.md): - Schemas [RuleCondition](https://docs.dogeworks.com/schema-199144312.md): - Schemas [ActionType](https://docs.dogeworks.com/schema-199144313.md): - Schemas [RuleAction](https://docs.dogeworks.com/schema-199144314.md): - Schemas [ParameterOverrideRule](https://docs.dogeworks.com/schema-199144315.md): - Schemas [CreateRuleRequest](https://docs.dogeworks.com/schema-199144316.md): - Schemas [CreateRuleResponse](https://docs.dogeworks.com/schema-199144317.md): - Schemas [UpdateRuleRequest](https://docs.dogeworks.com/schema-199144318.md): - Schemas [IdRequest](https://docs.dogeworks.com/schema-199144319.md): - Schemas [ToggleRulesRequest](https://docs.dogeworks.com/schema-199144320.md): - Schemas [DuplicateRuleRequest](https://docs.dogeworks.com/schema-199144321.md): - Schemas [ListRulesRequest](https://docs.dogeworks.com/schema-199144322.md): - Schemas [RulesArray](https://docs.dogeworks.com/schema-199144323.md): - Schemas [ListRulesResponse](https://docs.dogeworks.com/schema-199144324.md): - Schemas [StatsResponse](https://docs.dogeworks.com/schema-199144325.md): - Schemas [RestrictionsResponse](https://docs.dogeworks.com/schema-199144326.md): - Schemas [CheckRuleNameRequest](https://docs.dogeworks.com/schema-199144327.md): - Schemas [CheckRuleNameResponse](https://docs.dogeworks.com/schema-199144328.md): - Schemas [BatchDeleteRequest](https://docs.dogeworks.com/schema-199144329.md): - Schemas [ExportRulesResponse](https://docs.dogeworks.com/schema-199144330.md): - Schemas [ImportRulesRequest](https://docs.dogeworks.com/schema-199144331.md): - Schemas [ImportRulesResponse](https://docs.dogeworks.com/schema-199144332.md): - Schemas [TestRulesRequest](https://docs.dogeworks.com/schema-199144333.md): - Schemas [AppliedRule](https://docs.dogeworks.com/schema-199144334.md): - Schemas [TestRulesResponse](https://docs.dogeworks.com/schema-199144335.md): - Schemas [GenericOk](https://docs.dogeworks.com/schema-199144336.md): - Schemas [GenericError](https://docs.dogeworks.com/schema-199144337.md): - [Payload](https://docs.dogeworks.com/schema-59070535.md): - [PubResponse](https://docs.dogeworks.com/schema-59070536.md):