创建任务
概览
- 方法: POST
- 地址: https://api.winfull.cloud-ip.cc/tencent-vod/v1/aigc-image
- 简介: 官方文档:https://cloud.tencent.com/document/product/266/126240
认证
- Header: Authorization: Bearer
<token>
请求参数
- Header: Authorization: Bearer
<token> - Body 类型: application/json
{
"model_name": "GEM",
"model_version": "3.0",
"file_infos": [
{
"type": "file",
"file_id": "387702299774574677",
"url": "",
"text": "原始图片的描述信息"
}
],
"prompt": "convert this image to anime style",
"negative_prompt": "blur, distorted",
"enhance_prompt": "Enabled",
"output_config": {
"storage_mode": "Temporary",
"resolution": "1080P",
"aspect_ratio": "1:1",
"person_generation": "AllowAdult",
"input_compliance_check": "Enabled",
"output_compliance_check": "Enabled"
},
"session_id": "image-task-67890",
"session_context": "{\"user_id\": \"123\", \"scene\": \"profile_picture\"}",
"tasks_priority": 10,
"ext_info": ""
}请求示例
curl --location --request POST 'https://api.winfull.cloud-ip.cc/tencent-vod/v1/aigc-image' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model_name": "GEM",
"model_version": "3.0",
"file_infos": [
{
"type": "file",
"file_id": "387702299774574677",
"url": "",
"text": "原始图片的描述信息"
}
],
"prompt": "convert this image to anime style",
"negative_prompt": "blur, distorted",
"enhance_prompt": "Enabled",
"output_config": {
"storage_mode": "Temporary",
"resolution": "1080P",
"aspect_ratio": "1:1",
"person_generation": "AllowAdult",
"input_compliance_check": "Enabled",
"output_compliance_check": "Enabled"
},
"session_id": "image-task-67890",
"session_context": "{\"user_id\": \"123\", \"scene\": \"profile_picture\"}",
"tasks_priority": 10,
"ext_info": ""
}'返回示例
🟢200成功 示例
{
"Response": {
"TaskId": "251007502-AigcImage***2782aff1e896673f1ft",
"RequestId": "f50d7667-72d8-46bb-a7e3-0613588971b6"
}
}最后更新:2026-01-07 06:03:37
