Chat OpenAI(ChatGPT)中文文档
  1. Midjourney
Chat OpenAI(ChatGPT)中文文档
  • 发出请求
  • 模型接口
    • 完成对象
    • OpenAI接口(Chat)
      • 列出模型
      • 聊天接口(通用)
      • 官方Function calling调用
      • 官方N测试
      • 官方最新response_format
      • 识图接口(通用)
    • Anthropic Claude
      • 官方Function calling调用
      • 聊天接口
      • 聊天接口(原生API格式请求)
      • 识图接口
    • 谷歌Gemini
      • 聊天接口
      • 识图接口
    • Midjourney
      • 提交swap_face任务
        POST
      • 执行Action动作
        POST
      • 根据ID列表查询任务
        POST
      • 提交Blend任务
        POST
      • 指定ID获取任务
        GET
      • 提交Describe任务
        POST
      • 获取任务图片的seed
        GET
      • 提交Imagine任务
        POST
      • 提交Modal
        POST
      • 上传文件到discord
        POST
    • GPTs 相关
      • GPTs对话
      • 搜索相关 GPTs
      • 查询 GPTs 详情
      • 批量查询 GPTs 详情
      • gpt-4-all(分析图片)
      • gpt-4-all(生成图片)
    • 文生音乐 Suno
      • 生成歌曲(API格式)
      • 生成歌词(API格式)
      • 查询单个任务(API格式)
      • 文生音乐(Chat格式)
    • 文生视频
      • 智谱清言GLM
      • 文生视频(luma)
      • 文生视频(runway)
    • Rerank API
      • Rerank API
    • 自动补全接口(Completions)
      • 内容补全接口
    • 文生图接口
      • DALL·E 3
      • Flux(OpenAI dall-e-3格式)
      • ideogram
      • Stable-Diffusion
    • 向量生成接口(Embeddings)
      • 创建嵌入
    • 音频接口(Audio)
      • 创建转录
      • 创建翻译
      • TTS文本转语音
    • 审查(Moderations)
      • 创建内容审核
  • 帮助中心
    • 常见问题及解决办法
  1. Midjourney

执行Action动作

POST
/mj/submit/action
任务提交

请求参数

Header 参数
Authorization
string 
必需
默认值:
Bearer {{YOUR_API_KEY}}
Content-Type
string 
必需
默认值:
application/json
Accept
string 
必需
默认值:
application/json
Body 参数application/json
chooseSameChannel
boolean 
可选
是否选择同一频道下的账号,默认只使用任务关联的账号
customId
string 
动作标识
必需
示例值:
MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011
taskId
string 
任务ID
必需
示例值:
14001934816969359
accountFilter
object (账号筛选条件) 
可选
channelId
string 
频道ID
可选
instanceId
string 
账号实例ID
可选
modes
array[string]
账号模式
可选
枚举值:
RELAXFASTTURBO
remark
string 
备注包含
可选
remix
boolean 
账号是否remix
可选
remixAutoConsidered
boolean 
可选
账号过滤时,remix自动提交 视为 账号的remix为false
notifyHook
string 
可选
回调地址, 为空时使用全局notifyHook
state
string 
自定义参数
可选
示例
{
  "chooseSameChannel": true,
  "customId": "MJ::JOB::upsample::1::82c51c9d-bc33-4c07-a471-36c3dcb1a6f0",
  "taskId": "1728781324658687",
  "accountFilter": {
    "channelId": "",
    "instanceId": "",
    "modes": [],
    "remark": "",
    "remix": true,
    "remixAutoConsidered": true
  },
  "notifyHook": "",
  "state": ""
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://gitaigc.com/mj/submit/action' \
--header 'Authorization;' \
--header 'Accept;' \
--header 'Content-Type: application/json' \
--data-raw '{
  "chooseSameChannel": true,
  "customId": "MJ::JOB::upsample::1::82c51c9d-bc33-4c07-a471-36c3dcb1a6f0",
  "taskId": "1728781324658687",
  "accountFilter": {
    "channelId": "",
    "instanceId": "",
    "modes": [],
    "remark": "",
    "remix": true,
    "remixAutoConsidered": true
  },
  "notifyHook": "",
  "state": ""
}'

返回响应

🟢200OK
application/json
Body
code
integer <int32>
必需
状态码: 1(提交成功), 22(排队中), other(错误)
示例值:
1
description
string 
描述
必需
示例值:
提交成功
properties
object 
扩展字段
可选
result
string 
任务ID
可选
示例值:
1320098173412546
示例
{
    "code": 1,
    "description": "提交成功",
    "properties": {},
    "result": 1320098173412546
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
上一页
提交swap_face任务
下一页
根据ID列表查询任务
Built with