Skip to content

根据任务ID 查询任务状态

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /mj/task/1743326750223591/fetch:
    get:
      summary: 根据任务ID 查询任务状态
      deprecated: false
      description: ''
      tags:
        - 绘画模型/Midjourney
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: false
          example: Bearer {{YOUR_API_KEY}}
          schema:
            type: string
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties: {}
            example: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  action:
                    type: string
                  customId:
                    type: string
                  botType:
                    type: string
                  prompt:
                    type: string
                  promptEn:
                    type: string
                  description:
                    type: string
                  state:
                    type: string
                  submitTime:
                    type: integer
                  startTime:
                    type: integer
                  finishTime:
                    type: integer
                  imageUrl:
                    type: string
                  status:
                    type: string
                  progress:
                    type: string
                  failReason:
                    type: string
                  buttons:
                    type: array
                    items:
                      type: object
                      properties:
                        customId:
                          type: string
                        emoji:
                          type: string
                        label:
                          type: string
                        type:
                          type: integer
                        style:
                          type: integer
                      required:
                        - customId
                        - emoji
                        - label
                        - type
                        - style
                  maskBase64:
                    type: string
                  properties:
                    type: object
                    properties:
                      finalPrompt:
                        type: string
                      finalZhPrompt:
                        type: string
                    required:
                      - finalPrompt
                      - finalZhPrompt
                required:
                  - id
                  - action
                  - customId
                  - botType
                  - prompt
                  - promptEn
                  - description
                  - state
                  - submitTime
                  - startTime
                  - finishTime
                  - imageUrl
                  - status
                  - progress
                  - failReason
                  - buttons
                  - maskBase64
                  - properties
              examples:
                '1':
                  summary: 成功示例
                  value:
                    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: ''
                '2':
                  summary: 成功示例
                  value:
                    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: ''
          headers: {}
          x-apifox-name: 成功
      security:
        - bearer: []
      x-apifox-folder: 绘画模型/Midjourney
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5443236/apis/api-232421939-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://www.anyapi.vip
    description: 正式环境
security:
  - bearer: []

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