UnoRouter Midjourney API

The Midjourney API from UnoRouter, for midjourney.

GitHub OpenAPI

Operations 34

GET /api/mj/ Get All Midjourney #
GET /api/mj/self Get User Midjourney #
POST /mj/insight-face/swap Post Mj Insight Face Swap #
POST /mj/notify Post Mj Notify #
POST /mj/submit/action Relay Midjourney #
POST /mj/submit/blend Post Mj Submit Blend #
POST /mj/submit/change Post Mj Submit Change #
POST /mj/submit/describe Post Mj Submit Describe #
POST /mj/submit/edits Post Mj Submit Edits #
POST /mj/submit/imagine Post Mj Submit Imagine #
POST /mj/submit/modal Post Mj Submit Modal #
POST /mj/submit/shorten Post Mj Submit Shorten #
POST /mj/submit/simple-change Post Mj Submit Simple Change #
POST /mj/submit/upload-discord-images Post Mj Submit Upload Discord Images #
POST /mj/submit/video Post Mj Submit Video #
POST /mj/task/list-by-condition Post Mj Task List By Condition #
GET /mj/task/{id}/fetch Get Mj Task Id Fetch #
GET /mj/task/{id}/image-seed Get Mj Task Id Image Seed #
POST /{mode}/mj/insight-face/swap Post Mode Mj Insight Face Swap #
POST /{mode}/mj/notify Post Mode Mj Notify #
POST /{mode}/mj/submit/action Post Mode Mj Submit Action #
POST /{mode}/mj/submit/blend Post Mode Mj Submit Blend #
POST /{mode}/mj/submit/change Post Mode Mj Submit Change #
POST /{mode}/mj/submit/describe Post Mode Mj Submit Describe #
POST /{mode}/mj/submit/edits Post Mode Mj Submit Edits #
POST /{mode}/mj/submit/imagine Post Mode Mj Submit Imagine #
POST /{mode}/mj/submit/modal Post Mode Mj Submit Modal #
POST /{mode}/mj/submit/shorten Post Mode Mj Submit Shorten #
POST /{mode}/mj/submit/simple-change Post Mode Mj Submit Simple Change #
POST /{mode}/mj/submit/upload-discord-images Post Mode Mj Submit Upload Discord Images #
POST /{mode}/mj/submit/video Post Mode Mj Submit Video #
POST /{mode}/mj/task/list-by-condition Post Mode Mj Task List By Condition #
GET /{mode}/mj/task/{id}/fetch Get Mode Mj Task Id Fetch #
GET /{mode}/mj/task/{id}/image-seed Get Mode Mj Task Id Image Seed #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/unorouter-com:unorouter-com-midjourney-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

unorouter-com-midjourney-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: ' '
  title: New Midjourney API
  version: 0.0.1
tags:
- name: Midjourney
paths:
  /api/mj/:
    get:
      operationId: getAllMidjourney
      parameters:
      - description: Page number (1-based)
        in: query
        name: p
        schema:
          type: integer
      - description: Items per page
        in: query
        name: page_size
        schema:
          type: integer
      - description: Filter by channel ID
        in: query
        name: channel_id
        schema:
          type: string
      - description: Midjourney task ID
        in: query
        name: mj_id
        schema:
          type: string
      - description: Start timestamp
        in: query
        name: start_timestamp
        schema:
          type: string
      - description: End timestamp
        in: query
        name: end_timestamp
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_dto.PageData-model.Midjourney'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_dto.PageData-model.Midjourney'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Get All Midjourney
      tags:
      - Midjourney
  /api/mj/self:
    get:
      operationId: getUserMidjourney
      parameters:
      - description: Page number (1-based)
        in: query
        name: p
        schema:
          type: integer
      - description: Items per page
        in: query
        name: page_size
        schema:
          type: integer
      - description: Midjourney task ID
        in: query
        name: mj_id
        schema:
          type: string
      - description: Start timestamp
        in: query
        name: start_timestamp
        schema:
          type: string
      - description: End timestamp
        in: query
        name: end_timestamp
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_dto.PageData-model.Midjourney'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_dto.PageData-model.Midjourney'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Get User Midjourney
      tags:
      - Midjourney
  /mj/insight-face/swap:
    post:
      operationId: postMjInsightFaceSwap
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mj Insight Face Swap
      tags:
      - Midjourney
  /mj/notify:
    post:
      operationId: postMjNotify
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mj Notify
      tags:
      - Midjourney
  /mj/submit/action:
    post:
      operationId: relayMidjourney
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay Midjourney
      tags:
      - Midjourney
  /mj/submit/blend:
    post:
      operationId: postMjSubmitBlend
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mj Submit Blend
      tags:
      - Midjourney
  /mj/submit/change:
    post:
      operationId: postMjSubmitChange
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mj Submit Change
      tags:
      - Midjourney
  /mj/submit/describe:
    post:
      operationId: postMjSubmitDescribe
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mj Submit Describe
      tags:
      - Midjourney
  /mj/submit/edits:
    post:
      operationId: postMjSubmitEdits
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mj Submit Edits
      tags:
      - Midjourney
  /mj/submit/imagine:
    post:
      operationId: postMjSubmitImagine
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mj Submit Imagine
      tags:
      - Midjourney
  /mj/submit/modal:
    post:
      operationId: postMjSubmitModal
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mj Submit Modal
      tags:
      - Midjourney
  /mj/submit/shorten:
    post:
      operationId: postMjSubmitShorten
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mj Submit Shorten
      tags:
      - Midjourney
  /mj/submit/simple-change:
    post:
      operationId: postMjSubmitSimpleChange
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mj Submit Simple Change
      tags:
      - Midjourney
  /mj/submit/upload-discord-images:
    post:
      operationId: postMjSubmitUploadDiscordImages
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mj Submit Upload Discord Images
      tags:
      - Midjourney
  /mj/submit/video:
    post:
      operationId: postMjSubmitVideo
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mj Submit Video
      tags:
      - Midjourney
  /mj/task/list-by-condition:
    post:
      operationId: postMjTaskListByCondition
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mj Task List By Condition
      tags:
      - Midjourney
  /mj/task/{id}/fetch:
    get:
      operationId: getMjTaskIdFetch
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Get Mj Task Id Fetch
      tags:
      - Midjourney
  /mj/task/{id}/image-seed:
    get:
      operationId: getMjTaskIdImageSeed
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Get Mj Task Id Image Seed
      tags:
      - Midjourney
  /{mode}/mj/insight-face/swap:
    post:
      operationId: postModeMjInsightFaceSwap
      parameters:
      - in: path
        name: mode
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mode Mj Insight Face Swap
      tags:
      - Midjourney
  /{mode}/mj/notify:
    post:
      operationId: postModeMjNotify
      parameters:
      - in: path
        name: mode
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mode Mj Notify
      tags:
      - Midjourney
  /{mode}/mj/submit/action:
    post:
      operationId: postModeMjSubmitAction
      parameters:
      - in: path
        name: mode
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mode Mj Submit Action
      tags:
      - Midjourney
  /{mode}/mj/submit/blend:
    post:
      operationId: postModeMjSubmitBlend
      parameters:
      - in: path
        name: mode
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mode Mj Submit Blend
      tags:
      - Midjourney
  /{mode}/mj/submit/change:
    post:
      operationId: postModeMjSubmitChange
      parameters:
      - in: path
        name: mode
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mode Mj Submit Change
      tags:
      - Midjourney
  /{mode}/mj/submit/describe:
    post:
      operationId: postModeMjSubmitDescribe
      parameters:
      - in: path
        name: mode
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mode Mj Submit Describe
      tags:
      - Midjourney
  /{mode}/mj/submit/edits:
    post:
      operationId: postModeMjSubmitEdits
      parameters:
      - in: path
        name: mode
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mode Mj Submit Edits
      tags:
      - Midjourney
  /{mode}/mj/submit/imagine:
    post:
      operationId: postModeMjSubmitImagine
      parameters:
      - in: path
        name: mode
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mode Mj Submit Imagine
      tags:
      - Midjourney
  /{mode}/mj/submit/modal:
    post:
      operationId: postModeMjSubmitModal
      parameters:
      - in: path
        name: mode
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mode Mj Submit Modal
      tags:
      - Midjourney
  /{mode}/mj/submit/shorten:
    post:
      operationId: postModeMjSubmitShorten
      parameters:
      - in: path
        name: mode
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mode Mj Submit Shorten
      tags:
      - Midjourney
  /{mode}/mj/submit/simple-change:
    post:
      operationId: postModeMjSubmitSimpleChange
      parameters:
      - in: path
        name: mode
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mode Mj Submit Simple Change
      tags:
      - Midjourney
  /{mode}/mj/submit/upload-discord-images:
    post:
      operationId: postModeMjSubmitUploadDiscordImages
      parameters:
      - in: path
        name: mode
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mode Mj Submit Upload Discord Images
      tags:
      - Midjourney
  /{mode}/mj/submit/video:
    post:
      operationId: postModeMjSubmitVideo
      parameters:
      - in: path
        name: mode
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mode Mj Submit Video
      tags:
      - Midjourney
  /{mode}/mj/task/list-by-condition:
    post:
      operationId: postModeMjTaskListByCondition
      parameters:
      - in: path
        name: mode
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Post Mode Mj Task List By Condition
      tags:
      - Midjourney
  /{mode}/mj/task/{id}/fetch:
    get:
      operationId: getModeMjTaskIdFetch
      parameters:
      - in: path
        name: mode
        required: true
        schema:
          type: string
      - in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Get Mode Mj Task Id Fetch
      tags:
      - Midjourney
  /{mode}/mj/task/{id}/image-seed:
    get:
      operationId: getModeMjTaskIdImageSeed
      parameters:
      - in: path
        name: mode
        required: true
        schema:
          type: string
      - in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MidjourneyResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Get Mode Mj Task Id Image Seed
      tags:
      - Midjourney
components:
  schemas:
    Response_dto.PageData-model.Midjourney:
      description: Response_dto.PageData-model.Midjourney schema
      properties:
        data:
          properties:
            items:
              items:
                $ref: '#/components/schemas/Midjourney'
              type:
              - array
              - 'null'
            page:
              type: integer
            page_size:
              type: integer
            total:
              type: integer
          required:
          - items
          - page
          - page_size
          - total
          type: object
        message:
          type: string
        success:
          type: boolean
      required:
      - data
      - message
      - success
      type: object
    Midjourney:
      properties:
        action:
          type: string
        buttons:
          type: string
        channel_id:
          type: integer
        code:
          type: integer
        description:
          type: string
        fail_reason:
          type: string
        finish_time:
          format: int64
          type: integer
        id:
          type: integer
        image_url:
          type: string
        mj_id:
          type: string
        progress:
          type: string
        prompt:
          type: string
        prompt_en:
          type: string
        properties:
          type: string
        quota:
          type: integer
        start_time:
          format: int64
          type: integer
        state:
          type: string
        status:
          type: string
        submit_time:
          format: int64
          type: integer
        user_id:
          type: integer
        video_url:
          type: string
        video_urls:
          type: string
      required:
      - action
      - buttons
      - channel_id
      - code
      - description
      - fail_reason
      - finish_time
      - id
      - image_url
      - mj_id
      - progress
      - prompt
      - prompt_en
      - properties
      - quota
      - start_time
      - state
      - status
      - submit_time
      - user_id
      - video_url
      - video_urls
      type: object
    MidjourneyResponse:
      description: MidjourneyResponse schema
      properties:
        code:
          type: integer
        description:
          type: string
        properties: {}
        result:
          type: string
      required:
      - code
      - description
      - properties
      - result
      type: object
  securitySchemes:
    accessToken:
      description: System access token for dashboard API routes. Must be paired with New-Api-User header.
      in: header
      name: Authorization
      type: apiKey
    anthropicApiKey:
      description: Anthropic-style API key. Used by /v1/messages and /v1/models.
      in: header
      name: x-api-key
      type: apiKey
    bearerAuth:
      description: API token (sk-...). Used by relay routes (/v1/*) and token-based query endpoints.
      scheme: bearer
      type: http
    newApiUser:
      description: User ID header. Required together with the access token or session cookie for dashboard API routes.
      in: header
      name: New-Api-User
      type: apiKey
    sessionAuth:
      description: Session cookie from /api/user/login. Used by dashboard routes as an alternative to access token.
      in: cookie
      name: session
      type: apiKey