Skip to content

执行Action动作

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /mj/submit/action:
    post:
      summary: 执行Action动作
      deprecated: false
      description: >-
        官方文档:https://docs.midjourney.com/hc/en-us/articles/32804058614669-Upscalers
      tags:
        - 绘画模型/Midjourney
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: false
          example: Bearer {{YOUR_API_KEY}}
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                chooseSameChannel:
                  type: boolean
                  description: |+
                    是否选择同一频道下的账号,默认只使用任务关联的账号

                customId:
                  type: string
                  description: 动作标识
                  examples:
                    - MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011
                taskId:
                  type: string
                  description: 任务ID
                  examples:
                    - '14001934816969359'
                notifyHook:
                  type: string
                  description: |+
                    回调地址, 为空时使用全局notifyHook

                state:
                  type: string
                  description: |
                    自定义参数
              required:
                - chooseSameChannel
              x-apifox-orders:
                - chooseSameChannel
                - customId
                - taskId
                - notifyHook
                - state
            example:
              chooseSameChannel: true
              customId: MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011
              taskId: '14001934816969359'
              notifyHook: ''
              state: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  created:
                    type: integer
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        url:
                          type: string
                      required:
                        - url
                      x-apifox-orders:
                        - url
                required:
                  - created
                  - data
                x-apifox-orders:
                  - created
                  - data
              example:
                created: 1589478378
                data:
                  - url: https://...
                  - url: https://...
          headers: {}
          x-apifox-name: Create image
      security:
        - bearer: []
      x-apifox-folder: 绘画模型/Midjourney
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5443236/apis/api-232421942-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://www.anyapi.vip
    description: 正式环境
security:
  - bearer: []

AnyAPI — 专业的 AI 接口聚合服务