wenwen
  1. 绘图模型-Midjourney(/mj)
wenwen
  • 聊天对话-OpenAI格式(/chat/completions)
    • 聊天
      POST
    • 流式返回
      POST
    • 结构化输出
      POST
    • 工具调用(function call)
      POST
    • 分析图片
      POST
    • 修改图片
      POST
    • 生成图片
      POST
  • 聊天对话-Anthropic格式(/messages)
    • 聊天
      POST
    • 流式返回
      POST
    • 分析图片
      POST
  • 绘图模型-OpenAI格式(/images)
    • 文生图(基础)
      POST
    • 文生图(高质量)
      POST
    • 文生图(base64)
      POST
    • 图像编辑(dall-e-2)
      POST
    • 图像编辑(gpt-image-1)
      POST
  • 绘图模型-Midjourney(/mj)
    • 文生图(Imagine)
      POST
    • 图片融合(Blend)
      POST
    • 任务查询接口
      GET
    • 任务批量查询接口
      POST
    • 获取种子(Seed)
      GET
    • 按钮点击(Action)-选择图片
      POST
  • 向量化(/embeddings)
    • 文本向量化
      POST
  1. 绘图模型-Midjourney(/mj)

任务查询接口

GET
/mj/task/{{task_id}}/fetch
通过任务id,查询任务信息。(可以通过轮询调用该接口,实现任务进行的查询。也可以通过回调接口获取)

请求参数

Query 参数
task_id
string 
任务id
必需
示例值:
1712205491372224
Header 参数
Authorization
string 
必需
示例值:
Bearer {YOURI_API_KEY}
Content-Type
string 
必需
示例值:
application/json

示例代码

HTTP
Shell
JavaScript
Java
Swift
Go
PHP
Python
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
HTTP
Shell
JavaScript
Java
curl --location -g --request GET 'https://api.wenwen-ai.com/mj/task/{{task_id}}/fetch?task_id=1712205491372224' \
--header 'Authorization: Bearer {YOURI_API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw ''

返回响应

🟢200成功
application/json
Body
action
string 
必需
buttons
array [object {5}] 
必需
customId
string 
可选
emoji
string 
可选
label
string 
可选
style
integer 
可选
type
integer 
可选
description
string 
必需
failReason
string 
必需
finishTime
integer 
必需
id
string 
必需
imageUrl
string 
必需
progress
string 
必需
prompt
string 
必需
promptEn
string 
必需
properties
object 
必需
startTime
integer 
必需
state
string 
必需
status
string 
必需
submitTime
integer 
必需
示例
{
    "action": "IMAGINE",
    "buttons": [
        {
            "customId": "string",
            "emoji": "string",
            "label": "string",
            "style": 0,
            "type": 0
        }
    ],
    "description": "string",
    "failReason": "string",
    "finishTime": 0,
    "id": "string",
    "imageUrl": "string",
    "progress": "string",
    "prompt": "string",
    "promptEn": "string",
    "properties": {},
    "startTime": 0,
    "state": "string",
    "status": "NOT_START",
    "submitTime": 0
}
修改于 2025-06-14 12:41:19
上一页
图片融合(Blend)
下一页
任务批量查询接口
Built with