POST
/kling/v1/general/custom-elements主体(旧)
API Key application/json
请求示例
curl -X POST https://top.qingyuntop.ai/kling/v1/general/custom-elements \
-H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"element_name": "",
"element_description": "",
"element_frontal_image": "",
"element_refer_list": ""
}'请求参数
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
Content-Type | Header | string | 否 | - | application/json |
Authorization | Header | string | 否 | - | Bearer {{YOUR_API_KEY}} |
element_name | JSON body | string | 是 | 主体名称 不能超过20个字符 | - |
element_description | JSON body | string | 是 | 主体描述 不能超过100个字符 | - |
element_frontal_image | JSON body | string | 是 | 主体正面参考图 支持传入图片Base64编码或图片URL(确保可访问) 图片格式支持.jpg / .jpeg / .png 图片文件大小不能超过10MB,图片宽高尺寸不小于300px,图片宽高比要在1:2.5 ~ 2.5:1之间 | - |
element_refer_list | JSON body | array<object> | 是 | 主体其他参考列表 可通过上传多张、不同角度的主体参考图来定义主体外观 至少上传1张参考图,至多上传3张参考图 用key:value承载,其中具体如下: 1 2 3 4 5 "element_refer_list":[ {"image_url":"image_url_1"}, {"image_url":"image_url_2"}, {"image_url":"image_url_3"} ] | - |
element_refer_list[].image_url | JSON body | string | 是 | - | - |
返回响应 (200)
此部分没有定义参数。
来源原始接口定义(用于追溯)
以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。
{
"id": 495899827,
"name": "主体(旧)",
"type": "http",
"serverId": "",
"preProcessors": [],
"postProcessors": [],
"inheritPreProcessors": {},
"inheritPostProcessors": {},
"description": "",
"operationId": "",
"sourceUrl": "",
"method": "post",
"path": "/kling/v1/general/custom-elements",
"tags": [],
"status": 1,
"requestBody": {
"type": "application/json",
"parameters": [],
"jsonSchema": {
"type": "object",
"properties": {
"element_name": {
"type": "string",
"description": "主体名称\n不能超过20个字符"
},
"element_description": {
"type": "string",
"description": "主体描述\n不能超过100个字符"
},
"element_frontal_image": {
"type": "string",
"description": "主体正面参考图\n支持传入图片Base64编码或图片URL(确保可访问)\n图片格式支持.jpg / .jpeg / .png\n图片文件大小不能超过10MB,图片宽高尺寸不小于300px,图片宽高比要在1:2.5 ~ 2.5:1之间"
},
"element_refer_list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"image_url": {
"type": "string"
}
},
"required": [
"image_url"
],
"x-apifox-orders": [
"image_url"
]
},
"description": "主体其他参考列表\n可通过上传多张、不同角度的主体参考图来定义主体外观\n至少上传1张参考图,至多上传3张参考图\n用key:value承载,其中具体如下:\n1\n2\n3\n4\n5\n\"element_refer_list\":[\n {\"image_url\":\"image_url_1\"},\n {\"image_url\":\"image_url_2\"},\n {\"image_url\":\"image_url_3\"}\n]"
}
},
"required": [
"element_name",
"element_description",
"element_frontal_image",
"element_refer_list"
],
"x-apifox-orders": [
"element_name",
"element_description",
"element_frontal_image",
"element_refer_list"
]
},
"examples": [
{
"mediaType": "application/json",
"value": "{\r\n \"element_name\": \"\",\r\n \"element_description\": \"\",\r\n \"element_frontal_image\": \"\",\r\n \"element_refer_list\": \"\"\r\n}"
}
],
"mediaType": "",
"oasExtensions": "",
"required": true,
"additionalContentTypes": []
},
"parameters": {
"path": [],
"query": [],
"cookie": [],
"header": [
{
"id": "C1O6m7YJRK",
"name": "Content-Type",
"required": false,
"enable": true,
"description": "",
"type": "string",
"sampleValue": "application/json"
},
{
"id": "Bd2EHr4vPQ",
"name": "Authorization",
"required": false,
"enable": true,
"description": "",
"type": "string",
"sampleValue": "Bearer {{YOUR_API_KEY}}"
}
]
},
"commonParameters": {
"query": [],
"body": [],
"cookie": [],
"header": []
},
"auth": {},
"responses": [
{
"id": 118745554,
"name": "成功",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {},
"x-apifox-orders": []
},
"itemSchema": {},
"description": "",
"mediaType": "",
"headers": []
}
],
"responseExamples": [],
"codeSamples": [],
"projectId": 8662722,
"moduleId": 8310462,
"folderId": 92436159,
"ordering": 0,
"responsibleId": 0,
"commonResponseStatus": {},
"advancedSettings": {
"disabledSystemHeaders": {}
},
"customApiFields": {},
"oasExtensions": "",
"mockScript": {},
"createdAt": "2026-08-02T03:53:34.000Z",
"updatedAt": "2026-08-06T12:15:55.000Z",
"creatorId": 2863449,
"editorId": 2863449,
"creatorUserId": 2863449,
"editorUserId": 2863449,
"responseChildren": [],
"visibility": "INHERITED",
"securityScheme": {},
"callbacks": ""
}