提交Blend任务

POST /mj/submit/blend

MethodPOST
Path/mj/submit/blend
Typehttp
Status1
Module2102810
Folder45008037

说明

概览

MethodPOST
Path/mj/submit/blend
Typehttp
Status1
Module2102810
Folder45008037

参数

{
  "query": [],
  "path": [],
  "cookie": [],
  "header": [
    {
      "required": false,
      "description": "",
      "type": "string",
      "id": "GTujCrB2It",
      "enable": true,
      "name": "Authorization",
      "sampleValue": "Bearer {{YOUR_API_KEY}}"
    }
  ]
}

请求体

{
  "type": "application/json",
  "parameters": [],
  "jsonSchema": {
    "type": "object",
    "properties": {
      "quality": {
        "type": "string",
        "description": "将生成的图像的质量。`hd`创建具有更精细细节和更高一致性的图像。此参数仅支持`dall-e-3`."
      },
      "botType": {
        "type": "string",
        "description": "bot类型,mj(默认)或niji\n\n",
        "enum": [
          "NIJI_JOURNEY",
          "MID_JOURNEY"
        ],
        "x-apifox-enum": [
          {
            "value": "NIJI_JOURNEY",
            "name": "",
            "description": ""
          },
          {
            "value": "MID_JOURNEY",
            "name": "",
            "description": ""
          }
        ],
        "examples": [
          "MID_JOURNEY"
        ]
      },
      "base64Array": {
        "type": "string",
        "description": "图片base64数组\n\n"
      },
      "dimensions": {
        "type": "string",
        "description": "比例: PORTRAIT(2:3); SQUARE(1:1); LANDSCAPE(3:2)\n\n",
        "enum": [
          "PORTRAIT",
          "SQUARE",
          "LANDSCAPE"
        ],
        "x-apifox-enum": [
          {
            "value": "PORTRAIT",
            "name": "",
            "description": ""
          },
          {
            "value": "SQUARE",
            "name": "",
            "description": ""
          },
          {
            "value": "LANDSCAPE",
            "name": "",
            "description": ""
          }
        ],
        "examples": [
          "SQUARE"
        ]
      },
      "notifyHook": {
        "type": "string",
        "description": "回调地址, 为空时使用全局notifyHook\n\n"
      },
      "state": {
        "type": "string",
        "description": "自定义参数\n"
      }
    },
    "required": [
      "botType"
    ],
    "x-apifox-orders": [
      "botType",
      "base64Array",
      "dimensions",
      "quality",
      "notifyHook",
      "state"
    ]
  },
  "mediaType": "",
  "examples": [
    {
      "value": "{\n  \"botType\": \"MID_JOURNEY\",\n  \"base64Array\": [\n    \"data:image/png;base64,xxx1\",\n    \"data:image/png;base64,xxx2\"\n  ],\n  \"dimensions\": \"SQUARE\",\n  \"notifyHook\": \"\",\n  \"state\": \"\"\n}",
      "mediaType": "application/json",
      "description": ""
    }
  ],
  "oasExtensions": ""
}

响应

[
  {
    "id": 562499908,
    "name": "Create image",
    "code": 200,
    "contentType": "json",
    "jsonSchema": {
      "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"
      ]
    },
    "itemSchema": {},
    "description": "",
    "mediaType": "",
    "headers": [],
    "oasExtensions": ""
  }
]

响应示例

[
  {
    "name": "Create image",
    "responseId": 562499908,
    "data": "{\n    \"created\": 1589478378,\n    \"data\": [\n        {\n            \"url\": \"https://...\"\n        },\n        {\n            \"url\": \"https://...\"\n        }\n    ]\n}",
    "description": "",
    "oasKey": "",
    "oasExtensions": "",
    "id": 440609014
  }
]