跳到主要内容

按钮点击(Action)

OpenAPI Specification

openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/mj/submit/action:
post:
summary: 按钮点击(Action)
deprecated: false
description: 该接口是用于点击图片下方的按钮,customId通过任务查询接口可以获取到。
tags:
- 模型接口/Midjourney/原生接口
parameters:
- name: Accept
in: header
description: ''
required: true
example: application/json
schema:
type: string
default: application/json
- name: Authorization
in: header
description: ''
required: true
example: sk-
schema:
type: string
default: sk-
- name: Content-Type
in: header
description: ''
required: true
example: application/json
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
notifyHook:
type: string
description: 回调地址, 为空时使用全局notifyHook
state:
type: string
description: 自定义参数
customId:
type: string
description: >-
动作标识,xxx部分为每次任务都会变的项,具体数值看任务查询后下方的customId,后缀带solo的为选择单图后对单图进行的操作
enum:
- MJ::JOB::upsample::n::xxx
- MJ::JOB::reroll::xxx::SOLO
- MJ::JOB::variation::n::xxx
- MJ::JOB::upsample_v5_2x::xxx::SOLO
- MJ::JOB::low_variation::xxx::SOLO
- MJ::Outpaint::75::xxx::SOLO
- 'MJ::JOB::pan_left::xxx::SOLO '
- 'MJ::Inpaint::xxx::SOLO '
- 'MJ::CustomZoom::xxx '
x-apifox-enum:
- value: MJ::JOB::upsample::n::xxx
name: ''
description: 选择第n张图
- value: MJ::JOB::reroll::xxx::SOLO
name: ''
description: 返回图片至未修改的样子
- value: MJ::JOB::variation::n::xxx
name: ''
description: 以第n张图为基准再生成四张图
- value: MJ::JOB::upsample_v5_2x::xxx::SOLO
name: ''
description: 画质提高(2倍/4倍)
- value: MJ::JOB::low_variation::xxx::SOLO
name: ''
description: (小幅/大幅)改动图片并重新生成四张
- value: MJ::Outpaint::75::xxx::SOLO
name: ''
description: 扩图(2倍/1.5倍)
- value: 'MJ::JOB::pan_left::xxx::SOLO '
name: ''
description: 往(上/下/左/右)扩图,并生成四张图片
- value: 'MJ::Inpaint::xxx::SOLO '
name: ''
description: 指定区域进行变化并生成四张图(需要用到modal接口,如果不指定区域则全图随机变化)
- value: 'MJ::CustomZoom::xxx '
name: ''
description: 指定区域进行扩图(需要使用modal接口,未指定区域会报错)
taskId:
type: string
description: 任务ID
x-apifox-orders:
- customId
- taskId
- notifyHook
- state
required:
- customId
- taskId
example:
customId: MJ::JOB::upsample::1::0bc41848-dc7f-42f9-893c-9c33b00ebdf3
taskId: '1734937261701345'
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties:
code:
type: integer
description:
type: string
properties:
type: object
properties: {}
x-apifox-orders: []
result:
type: string
x-apifox-orders:
- code
- description
- properties
- result
example:
code: 1
description: 提交成功
properties: {}
result: 1320098173412546
headers: {}
x-apifox-name: 成功
security: []
x-apifox-folder: 模型接口/Midjourney/原生接口
x-apifox-status: released
x-run-in-apifox: https://app.apifox.com/web/project/5503894/apis/api-319292002-run
components:
schemas: {}
securitySchemes: {}
servers:
- url: '{{base_url}}'
description: 测试环境
- url: https://newapi.eronmind.com
description: 正式环境
security: []