宇博API 接口对接
  1. MJ绘画
宇博API 接口对接
  • 引言
  • 在线调试说明
  • 发出请求
  • 中转站基本介绍
    • API 快速开始指南
    • 如何新建指定分组的令牌
    • 代理接口调用地址
    • API Key 额度查询服务
    • 免费AI聊天项目导航
  • ChatGPT 接口
    • ChatGPT音频(Audio)
      • 创建语音
      • 创建转录
      • 创建翻译
    • ChatGPT聊天(Chat)
      • 聊天完成对象
      • 聊天完成块对象
      • 生成视频
      • 生成视频
      • 生成视频
      • Chat格式lumavip
      • Chat格式lumapro
      • Chat格式luma
      • 生成视频
      • Chat格式lumavip
      • 列出模型
    • ChatGPT自动补全(Completions)
      • 完成对象
      • 创建完成
    • ChatGPT嵌入(Embeddings)
      • 嵌入对象
      • 创建嵌入
  • Anthropic Claude 接口
    • 聊天完成对象
    • 聊天完成块对象
    • 创建聊天补全 (流式)
      POST
    • 创建聊天补全 (非流)
      POST
    • 创建聊天识图 (流式)
      POST
    • 创建聊天识图 (非流)
      POST
  • 文生图接口
    • README
    • 图像对象
    • DALL·E 3
    • Flux(OpenAI dall-e-3格式)
    • 创建图片编辑
    • Stable-Diffusion
    • ideogram
    • recraftv3
    • 创建图像变体
  • 视频生成
    • sora
      • 官方格式
        • 创建视频
        • 查询视频
      • openai chat 格式
        • 生成视频
  • MJ绘画
    • 提交Imagine任务
      POST
    • 根据任务ID 查询任务状态
      GET
    • 根据ID列表查询任务
      POST
    • 获取任务图片的seed
      GET
    • 执行Action动作
      POST
    • 提交Blend任务
      POST
    • 提交Describe任务
      POST
    • 提交Shorten任务
      POST
    • 提交Modal
      POST
    • 提交swap_face任务
      POST
  • 谷歌Gemini
    • 聊天接口
    • 识图接口
  • GPTs 相关
    • gpt-4-all(分析图片)
    • gpt-4-all(生成图片)
    • GPTs对话
  • 文生音乐 Suno
    • 文生音乐(Chat格式)
  • Python配置方式
    • Python使用gpt-4o识别图片
    • Python使用Claude识别图片
    • Python基础对话
    • python openai官方库(使用AutoGPT,langchain等)
    • python 连续对话
    • python 使用 语音转文本
    • python 使用文本转语音
    • python 使用Embeddings 向量化
    • python 调用DALL·E
    • python简单调用 openai function-calling demo
    • python 简单langchain 调用openai demo
    • python llama_index 配置
    • Python使用gpt-4o识别图片-本地图片
  • nodejs 配置方式
    • nodejs 基础对话
  • 各种插件/软件使用教程
    • chatgpt-on-wechat 配置教程
    • 沉浸式翻译 设置gpt翻译
    • nextchat 设置教程
    • aider 配置教程
    • lobechat 设置教程
    • chatgpt GPT Academic 学术优化配置gpt教程
    • zotero gpt 配置方法
    • 浏览器插件ChatGPT Sidebar
    • ChatBox(推荐使用)
    • 开源gpt_academic
  • 帮助中心
    • HTTP状态码及其含义
  1. MJ绘画

根据任务ID 查询任务状态

GET
/mj/task/1730621826053455/fetch

请求参数

Header 参数
Authorization
string 
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数multipart/form-data
object {0}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/mj/task/1730621826053455/fetch' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}'

返回响应

🟢200成功
application/json
Body
id
string 
必需
action
string 
必需
customId
string 
必需
botType
string 
必需
prompt
string 
必需
promptEn
string 
必需
description
string 
必需
state
string 
必需
submitTime
integer 
必需
startTime
integer 
必需
finishTime
integer 
必需
imageUrl
string 
必需
status
string 
必需
progress
string 
必需
failReason
string 
必需
buttons
array [object {5}] 
必需
customId
string 
必需
emoji
string 
必需
label
string 
必需
type
integer 
必需
style
integer 
必需
maskBase64
string 
必需
properties
object 
必需
finalPrompt
string 
必需
finalZhPrompt
string 
必需
示例
{
    "id": "1730621826053455",
    "action": "IMAGINE",
    "customId": "",
    "botType": "",
    "prompt": "pig --v 6.1",
    "promptEn": "pig --v 6.1",
    "description": "Submit success",
    "state": "",
    "submitTime": 1730621826053,
    "startTime": 1730621828024,
    "finishTime": 1730621855817,
    "imageUrl": "https://cdnmjp.oneabc.org/attachments/1300842274347028520/1302547211321741343/kennedyhernandez46715_74108_pig_3785da15-4f70-4034-9128-f3ff1ac634fa.png?ex=6728831f&is=6727319f&hm=f6d701914d608e4da9298d2290b3616317264a70635fbf08a37ca6c1bb671b50&",
    "status": "SUCCESS",
    "progress": "100%",
    "failReason": "",
    "buttons": [
        {
            "customId": "MJ::JOB::upsample::1::3785da15-4f70-4034-9128-f3ff1ac634fa",
            "emoji": "",
            "label": "U1",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::upsample::2::3785da15-4f70-4034-9128-f3ff1ac634fa",
            "emoji": "",
            "label": "U2",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::upsample::3::3785da15-4f70-4034-9128-f3ff1ac634fa",
            "emoji": "",
            "label": "U3",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::upsample::4::3785da15-4f70-4034-9128-f3ff1ac634fa",
            "emoji": "",
            "label": "U4",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::reroll::0::3785da15-4f70-4034-9128-f3ff1ac634fa::SOLO",
            "emoji": "🔄",
            "label": "",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::variation::1::3785da15-4f70-4034-9128-f3ff1ac634fa",
            "emoji": "",
            "label": "V1",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::variation::2::3785da15-4f70-4034-9128-f3ff1ac634fa",
            "emoji": "",
            "label": "V2",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::variation::3::3785da15-4f70-4034-9128-f3ff1ac634fa",
            "emoji": "",
            "label": "V3",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::variation::4::3785da15-4f70-4034-9128-f3ff1ac634fa",
            "emoji": "",
            "label": "V4",
            "type": 2,
            "style": 2
        }
    ],
    "maskBase64": "",
    "properties": {
        "finalPrompt": "pig --v 6.1",
        "finalZhPrompt": ""
    }
}
修改于 2024-11-28 06:54:36
上一页
提交Imagine任务
下一页
根据ID列表查询任务
Built with