图片模版生成接口

POST /openapi/v2/image/template/generate

MethodPOST
Path/openapi/v2/image/template/generate
Typehttp
Status1
Module2102810
Folder86260306

概览

MethodPOST
Path/openapi/v2/image/template/generate
Typehttp
Status1
Module2102810
Folder86260306

参数

{
  "query": [],
  "path": [],
  "cookie": [],
  "header": [
    {
      "required": false,
      "description": "",
      "type": "string",
      "id": "esVWBdLSGb",
      "enable": true,
      "name": "Content-Type",
      "sampleValue": "application/json"
    },
    {
      "required": false,
      "description": "",
      "type": "string",
      "id": "VDD8KaFeGH",
      "enable": true,
      "name": "API-KEY",
      "sampleValue": "{{YOUR_API_KEY}}"
    }
  ]
}

请求体

{
  "type": "application/json",
  "parameters": [],
  "jsonSchema": {
    "type": "object",
    "properties": {
      "img_ids": {
        "type": "array",
        "items": {
          "type": "integer"
        }
      },
      "template_id": {
        "type": "integer"
      }
    },
    "required": [
      "img_ids",
      "template_id"
    ]
  },
  "required": true,
  "mediaType": "",
  "examples": [
    {
      "name": "示例 1",
      "value": "{\r\n    \"img_ids\": [\r\n        0\r\n    ],\r\n    \"template_id\": 384631857552768\r\n}",
      "mediaType": "application/json"
    }
  ],
  "oasExtensions": ""
}

响应

[
  {
    "id": 122153799,
    "name": "成功",
    "code": 200,
    "contentType": "json",
    "jsonSchema": {
      "type": "object",
      "properties": {}
    },
    "itemSchema": {},
    "description": "",
    "mediaType": "",
    "headers": []
  }
]