Midjourney API
    Midjourney API
    • imagine:generate-文生图(⛵️)
      POST
    • imagine:upsample-放大(U1-U4)
      POST
    • imagine:variation-类似(V1-V4)
      POST
    • imagine:regenerate-重绘(🔄)
      POST
    • imagine:direction-偏移(⬅️⬆️)
      POST
    • imagine:vary-魔法棒(🪄)
      POST
    • imagine:zoom-缩放(🔍)
      POST
    • imagine:region-局部重绘(🖌️)
      POST
    • blend:多图融合(⛵️)
      POST
    • describe:图生文(⛵️)
      POST
    • query-任务查询
      POST
    • cancel-任务取消
      POST

      describe:图生文(⛵️)

      POST
      https://www.api-ai.fun/apiclouds/v5/midjourney/describe
      Midjourney的describe命令,图生文即根据输入的图片转换为文字描述。收费API,按调用次数计费(成功解析计算一次,失败不计算次数)

      请求参数

      Header 参数
      Content-Type
      string 
      必需
      application/json格式
      示例值:
      application/json
      x-apiid
      string 
      必需
      apiid在开发者平台的控制台API管理模块里申请
      示例值:
      154729111936411007
      x-token
      string 
      必需
      x-token就是开发者平台的控制台API管的APIKEY
      示例值:
      CAD9579EA33F43D982240AXXXXXX
      Body 参数application/json
      imageUrl
      string 
      图片地址
      必需
      注意:图片不能超过5M,仅jpg,png格式,外网可以访问
      示例
      {
        "imageUrl": "https://mj-upload-tmp-image.oss-accelerate.aliyuncs.com/59b2900aa03cb2182a51cdb520b535b6.png"
      }

      示例代码

      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://www.api-ai.fun/apiclouds/v5/midjourney/describe' \
      --header 'x-apiid: 154729111936411007' \
      --header 'x-token: CAD9579EA33F43D982240AXXXXXX' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "imageUrl": "https://mj-upload-tmp-image.oss-accelerate.aliyuncs.com/59b2900aa03cb2182a51cdb520b535b6.png"
      }'

      返回响应

      🟢200成功
      application/json
      Body
      code
      integer 
      必需
      msg
      string 
      必需
      data
      object 
      必需
      description
      array[string]
      必需
      traceId
      null 
      必需
      success
      boolean 
      必需
      示例
      {
        "code": 0,
        "msg": "OK",
        "data": {
          "description": [
            "1️⃣ a boy in black and white shirt walking down steps, in the style of kawaii aesthetic, gongbi, studyplace, crisp and clean look, soft-edged, strong facial expression, subtle color palette ",
            "2️⃣ the young man is walking down a stairwell in front of other people, in the style of samyang af 14mm f/2.8 rf, 32k uhd, oshare kei, official art, white, romanticist, gongbi ",
            "3️⃣ a young man in a white shirt and pants, in the style of samyang af 14mm f/2.8 rf, [xiaofei yue](https://goo.gl/search?artist%20xiaofei%20yue), cryptid academia, dark academia, 32k uhd, heatwave, urban ",
            "4️⃣ a white shirt with black pants and a camera, in the style of [he jiaying](https://goo.gl/search?artist%20he%20jiaying), urban grittiness, darkest academia, [li shuxing](https://goo.gl/search?artist%20li%20shuxing), poolcore, [joong keun lee](https://goo.gl/search?artist%20joong%20keun%20lee), matte photo "
          ]
        },
        "traceId": null,
        "success": true
      }
      上一页
      blend:多图融合(⛵️)
      下一页
      query-任务查询
      Built with