tccli 3.0.1304.1__py2.py3-none-any.whl → 3.0.1307.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/aiart/v20221229/api.json +44 -42
- tccli/services/aiart/v20221229/examples.json +11 -11
- tccli/services/ams/v20201229/api.json +28 -34
- tccli/services/ams/v20201229/examples.json +2 -8
- tccli/services/autoscaling/v20180419/api.json +57 -57
- tccli/services/autoscaling/v20180419/examples.json +6 -6
- tccli/services/bi/v20220105/api.json +9 -0
- tccli/services/bi/v20220105/examples.json +1 -1
- tccli/services/cbs/v20170312/api.json +75 -54
- tccli/services/ccc/v20200210/api.json +10 -0
- tccli/services/cdb/v20170320/api.json +9 -9
- tccli/services/cdb/v20170320/examples.json +2 -2
- tccli/services/cdn/v20180606/api.json +61 -58
- tccli/services/cdn/v20180606/examples.json +8 -8
- tccli/services/cfs/v20190719/api.json +12 -2
- tccli/services/cfs/v20190719/examples.json +2 -2
- tccli/services/cfw/cfw_client.py +53 -0
- tccli/services/cfw/v20190904/api.json +539 -0
- tccli/services/cfw/v20190904/examples.json +8 -0
- tccli/services/chc/v20230418/api.json +56 -1
- tccli/services/ckafka/ckafka_client.py +53 -0
- tccli/services/ckafka/v20190819/api.json +242 -8
- tccli/services/ckafka/v20190819/examples.json +8 -0
- tccli/services/clb/v20180317/api.json +120 -111
- tccli/services/clb/v20180317/examples.json +7 -7
- tccli/services/cvm/v20170312/api.json +130 -21
- tccli/services/cvm/v20170312/examples.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +18 -18
- tccli/services/dbbrain/v20191016/api.json +11 -10
- tccli/services/dbbrain/v20191016/examples.json +1 -1
- tccli/services/dbbrain/v20210527/api.json +1 -1
- tccli/services/dc/v20180410/api.json +16 -6
- tccli/services/dc/v20180410/examples.json +4 -4
- tccli/services/dlc/v20210125/api.json +19 -0
- tccli/services/domain/v20180808/api.json +213 -213
- tccli/services/domain/v20180808/examples.json +38 -38
- tccli/services/drm/v20181115/api.json +52 -65
- tccli/services/drm/v20181115/examples.json +1 -1
- tccli/services/dsgc/v20190723/api.json +10 -0
- tccli/services/dts/v20211206/api.json +0 -9
- tccli/services/dts/v20211206/examples.json +1 -1
- tccli/services/ecdn/v20191012/api.json +12 -12
- tccli/services/emr/v20190103/api.json +10 -0
- tccli/services/es/v20250101/api.json +45 -45
- tccli/services/essbasic/v20210526/examples.json +7 -1
- tccli/services/gs/gs_client.py +53 -0
- tccli/services/gs/v20191118/api.json +75 -3
- tccli/services/gs/v20191118/examples.json +15 -7
- tccli/services/gwlb/v20240906/api.json +28 -28
- tccli/services/hai/hai_client.py +53 -0
- tccli/services/hai/v20230812/api.json +62 -0
- tccli/services/hai/v20230812/examples.json +8 -0
- tccli/services/hunyuan/v20230901/api.json +4 -4
- tccli/services/ims/v20201229/api.json +14 -5
- tccli/services/ims/v20201229/examples.json +2 -2
- tccli/services/ioa/v20220601/api.json +13 -2
- tccli/services/iotexplorer/v20190423/api.json +62 -3
- tccli/services/iotexplorer/v20190423/examples.json +1 -1
- tccli/services/iotvideoindustry/v20201201/api.json +29 -19
- tccli/services/iotvideoindustry/v20201201/examples.json +2 -2
- tccli/services/iss/iss_client.py +273 -8
- tccli/services/iss/v20230517/api.json +586 -0
- tccli/services/iss/v20230517/examples.json +46 -0
- tccli/services/lcic/v20220817/api.json +1 -1
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/live/v20180801/api.json +18 -18
- tccli/services/lke/v20231130/api.json +50 -6
- tccli/services/lkeap/v20240522/api.json +124 -1
- tccli/services/lowcode/v20210108/api.json +10 -1
- tccli/services/monitor/v20180724/api.json +1 -1
- tccli/services/mps/v20190612/api.json +283 -290
- tccli/services/mps/v20190612/examples.json +9 -9
- tccli/services/ocr/v20181119/api.json +133 -114
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/postgres/v20170312/api.json +140 -121
- tccli/services/postgres/v20170312/examples.json +1 -1
- tccli/services/redis/v20180412/api.json +94 -4
- tccli/services/redis/v20180412/examples.json +3 -3
- tccli/services/ses/v20201002/api.json +9 -0
- tccli/services/soe/v20180724/api.json +13 -13
- tccli/services/soe/v20180724/examples.json +2 -2
- tccli/services/tat/v20201028/api.json +19 -19
- tccli/services/tcss/v20201101/api.json +27 -0
- tccli/services/teo/v20220901/api.json +14 -3
- tccli/services/tione/tione_client.py +53 -0
- tccli/services/tione/v20211111/api.json +49 -1
- tccli/services/tione/v20211111/examples.json +8 -0
- tccli/services/tke/v20180525/api.json +37 -37
- tccli/services/trtc/v20190722/api.json +5 -5
- tccli/services/tse/v20201207/api.json +30 -0
- tccli/services/tsf/v20180326/api.json +2 -2
- tccli/services/tts/v20190823/api.json +1 -1
- tccli/services/vm/v20210922/api.json +21 -30
- tccli/services/vm/v20210922/examples.json +2 -2
- tccli/services/vod/v20180717/api.json +15 -6
- tccli/services/vod/v20180717/examples.json +1 -1
- tccli/services/vpc/v20170312/api.json +170 -143
- tccli/services/vpc/v20170312/examples.json +5 -5
- tccli/services/vrs/v20200824/api.json +52 -52
- tccli/services/vrs/v20200824/examples.json +2 -2
- tccli/services/wedata/v20210820/api.json +218 -19
- tccli/services/wedata/v20210820/examples.json +11 -3
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1304.1.dist-info → tccli-3.0.1307.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1304.1.dist-info → tccli-3.0.1307.1.dist-info}/RECORD +109 -109
- {tccli-3.0.1304.1.dist-info → tccli-3.0.1307.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1304.1.dist-info → tccli-3.0.1307.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1304.1.dist-info → tccli-3.0.1307.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1307.1'
|
@@ -781,7 +781,7 @@
|
|
781
781
|
{
|
782
782
|
"disabled": false,
|
783
783
|
"document": "查询生成写真图片任务 ID。",
|
784
|
-
"example": "
|
784
|
+
"example": "d33c2c966ae1476a5fae5e76",
|
785
785
|
"member": "string",
|
786
786
|
"name": "JobId",
|
787
787
|
"required": true,
|
@@ -796,7 +796,7 @@
|
|
796
796
|
{
|
797
797
|
"disabled": false,
|
798
798
|
"document": "任务状态码。\nINIT: 初始化、WAIT:等待中、RUN:运行中、FAIL:处理失败、DONE:处理完成。",
|
799
|
-
"example": "
|
799
|
+
"example": "DONE",
|
800
800
|
"member": "string",
|
801
801
|
"name": "JobStatusCode",
|
802
802
|
"output_required": false,
|
@@ -806,7 +806,7 @@
|
|
806
806
|
{
|
807
807
|
"disabled": false,
|
808
808
|
"document": "任务状态信息。",
|
809
|
-
"example": "
|
809
|
+
"example": "处理完成",
|
810
810
|
"member": "string",
|
811
811
|
"name": "JobStatusMsg",
|
812
812
|
"output_required": false,
|
@@ -816,7 +816,7 @@
|
|
816
816
|
{
|
817
817
|
"disabled": false,
|
818
818
|
"document": "任务错误码。",
|
819
|
-
"example": "
|
819
|
+
"example": "InternalError.EngineError",
|
820
820
|
"member": "string",
|
821
821
|
"name": "JobErrorCode",
|
822
822
|
"output_required": false,
|
@@ -826,7 +826,7 @@
|
|
826
826
|
{
|
827
827
|
"disabled": false,
|
828
828
|
"document": "任务错误信息。",
|
829
|
-
"example": "
|
829
|
+
"example": "算法服务异常。",
|
830
830
|
"member": "string",
|
831
831
|
"name": "JobErrorMsg",
|
832
832
|
"output_required": false,
|
@@ -836,7 +836,7 @@
|
|
836
836
|
{
|
837
837
|
"disabled": false,
|
838
838
|
"document": "结果 URL 数组。\nURL 有效期1小时,请及时保存。",
|
839
|
-
"example": "
|
839
|
+
"example": "[\"https://aiart-portrait-xxx.cos.ap-guangzhou.myqcloud.com/xxx?q-sign-algorithm=sha1&q-ak=xxx&q-sign-time=1731996860;1732000460&q-key-time=1731996860;1732000460&q-header-list=host&q-url-param-list=&q-signature=2a86d7f0c5482e10d6867ddea14d9e3973201e95\"]",
|
840
840
|
"member": "string",
|
841
841
|
"name": "ResultUrls",
|
842
842
|
"output_required": false,
|
@@ -846,7 +846,7 @@
|
|
846
846
|
{
|
847
847
|
"disabled": false,
|
848
848
|
"document": "结果描述数组。",
|
849
|
-
"example": "
|
849
|
+
"example": "[\"SUCCESS\"]",
|
850
850
|
"member": "string",
|
851
851
|
"name": "ResultDetails",
|
852
852
|
"output_required": false,
|
@@ -990,7 +990,7 @@
|
|
990
990
|
{
|
991
991
|
"disabled": false,
|
992
992
|
"document": "任务处理失败错误码。\n",
|
993
|
-
"example": "
|
993
|
+
"example": "FailedOperation.DownloadError",
|
994
994
|
"member": "string",
|
995
995
|
"name": "JobErrorCode",
|
996
996
|
"output_required": false,
|
@@ -1000,7 +1000,7 @@
|
|
1000
1000
|
{
|
1001
1001
|
"disabled": false,
|
1002
1002
|
"document": "任务处理失败错误信息。\n",
|
1003
|
-
"example": "
|
1003
|
+
"example": "文件下载失败。",
|
1004
1004
|
"member": "string",
|
1005
1005
|
"name": "JobErrorMsg",
|
1006
1006
|
"output_required": false,
|
@@ -1032,7 +1032,7 @@
|
|
1032
1032
|
{
|
1033
1033
|
"disabled": false,
|
1034
1034
|
"document": "任务 ID。",
|
1035
|
-
"example": "
|
1035
|
+
"example": "251197749-1732000778-a319cc1b-a646-11ef-be80-525400047e59-0",
|
1036
1036
|
"member": "string",
|
1037
1037
|
"name": "JobId",
|
1038
1038
|
"required": true,
|
@@ -1047,7 +1047,7 @@
|
|
1047
1047
|
{
|
1048
1048
|
"disabled": false,
|
1049
1049
|
"document": "当前任务状态码:\n1:等待中、2:运行中、4:处理失败、5:处理完成。",
|
1050
|
-
"example": "
|
1050
|
+
"example": "5",
|
1051
1051
|
"member": "string",
|
1052
1052
|
"name": "JobStatusCode",
|
1053
1053
|
"output_required": false,
|
@@ -1057,7 +1057,7 @@
|
|
1057
1057
|
{
|
1058
1058
|
"disabled": false,
|
1059
1059
|
"document": "当前任务状态:排队中、处理中、处理失败或者处理完成。\n",
|
1060
|
-
"example": "
|
1060
|
+
"example": "处理完成",
|
1061
1061
|
"member": "string",
|
1062
1062
|
"name": "JobStatusMsg",
|
1063
1063
|
"output_required": false,
|
@@ -1067,7 +1067,7 @@
|
|
1067
1067
|
{
|
1068
1068
|
"disabled": false,
|
1069
1069
|
"document": "任务处理失败错误码。\n",
|
1070
|
-
"example": "
|
1070
|
+
"example": "FailedOperation.DownloadError",
|
1071
1071
|
"member": "string",
|
1072
1072
|
"name": "JobErrorCode",
|
1073
1073
|
"output_required": false,
|
@@ -1077,7 +1077,7 @@
|
|
1077
1077
|
{
|
1078
1078
|
"disabled": false,
|
1079
1079
|
"document": "任务处理失败错误信息。\n",
|
1080
|
-
"example": "
|
1080
|
+
"example": "文件下载失败。",
|
1081
1081
|
"member": "string",
|
1082
1082
|
"name": "JobErrorMsg",
|
1083
1083
|
"output_required": false,
|
@@ -1087,7 +1087,7 @@
|
|
1087
1087
|
{
|
1088
1088
|
"disabled": false,
|
1089
1089
|
"document": "生成图 URL 列表,有效期1小时,请及时保存。\n",
|
1090
|
-
"example": "
|
1090
|
+
"example": "[\"https://aiart-xxx.cos.ap-guangzhou.myqcloud.com/xxx.jpg?q-sign-algorithm=sha1&q-ak=xxxxx&q-sign-time=1731574045;1731577645&q-key-time=1731574045;1731577645&q-header-list=host&q-url-param-list=&q-signature=31fe75c1c18c3d91db59508961209dd37aaf41c7\"]",
|
1091
1091
|
"member": "string",
|
1092
1092
|
"name": "ResultImage",
|
1093
1093
|
"output_required": false,
|
@@ -1097,7 +1097,7 @@
|
|
1097
1097
|
{
|
1098
1098
|
"disabled": false,
|
1099
1099
|
"document": "结果 detail 数组,Success 代表成功。\n",
|
1100
|
-
"example": "
|
1100
|
+
"example": "[\"Success\"]",
|
1101
1101
|
"member": "string",
|
1102
1102
|
"name": "ResultDetails",
|
1103
1103
|
"output_required": false,
|
@@ -1107,7 +1107,7 @@
|
|
1107
1107
|
{
|
1108
1108
|
"disabled": false,
|
1109
1109
|
"document": "对应 SubmitTextToImageProJob 接口中 Revise 参数。开启扩写时,返回扩写后的 prompt 文本。 如果关闭扩写,将直接返回原始输入的 prompt。",
|
1110
|
-
"example": "
|
1110
|
+
"example": "动漫风格,画面主要描述一个雨天的场景,一位亚洲男孩在雨中独自行走,他的身姿显得有些落寞,背景是一个阴雨连绵的城市,镜头是中景",
|
1111
1111
|
"member": "string",
|
1112
1112
|
"name": "RevisedPrompt",
|
1113
1113
|
"output_required": false,
|
@@ -1129,7 +1129,7 @@
|
|
1129
1129
|
{
|
1130
1130
|
"disabled": false,
|
1131
1131
|
"document": "写真模型 ID。\n",
|
1132
|
-
"example": "
|
1132
|
+
"example": "model_01",
|
1133
1133
|
"member": "string",
|
1134
1134
|
"name": "ModelId",
|
1135
1135
|
"required": true,
|
@@ -1144,7 +1144,7 @@
|
|
1144
1144
|
{
|
1145
1145
|
"disabled": false,
|
1146
1146
|
"document": "任务状态码。\nINIT: 初始化、WAIT:等待中、RUN:运行中、FAIL:处理失败、DONE:处理完成。",
|
1147
|
-
"example": "
|
1147
|
+
"example": "DONE",
|
1148
1148
|
"member": "string",
|
1149
1149
|
"name": "JobStatusCode",
|
1150
1150
|
"output_required": false,
|
@@ -1154,7 +1154,7 @@
|
|
1154
1154
|
{
|
1155
1155
|
"disabled": false,
|
1156
1156
|
"document": "任务状态信息。",
|
1157
|
-
"example": "
|
1157
|
+
"example": "处理完成",
|
1158
1158
|
"member": "string",
|
1159
1159
|
"name": "JobStatusMsg",
|
1160
1160
|
"output_required": false,
|
@@ -1164,7 +1164,7 @@
|
|
1164
1164
|
{
|
1165
1165
|
"disabled": false,
|
1166
1166
|
"document": "任务错误码。",
|
1167
|
-
"example": "
|
1167
|
+
"example": "0",
|
1168
1168
|
"member": "string",
|
1169
1169
|
"name": "JobErrorCode",
|
1170
1170
|
"output_required": false,
|
@@ -1174,7 +1174,7 @@
|
|
1174
1174
|
{
|
1175
1175
|
"disabled": false,
|
1176
1176
|
"document": "任务错误信息。",
|
1177
|
-
"example": "
|
1177
|
+
"example": "处理完成",
|
1178
1178
|
"member": "string",
|
1179
1179
|
"name": "JobErrorMsg",
|
1180
1180
|
"output_required": false,
|
@@ -1428,15 +1428,17 @@
|
|
1428
1428
|
"members": [
|
1429
1429
|
{
|
1430
1430
|
"disabled": false,
|
1431
|
-
"document": "生成图分辨率\n\n图像风格化(图生图)支持生成以下分辨率的图片:origin(与输入图分辨率一致,长边最高为2000,超出将做等比例缩小)、768:768(1:1)、768:1024(3:4)、1024:768(4:3),不传默认使用origin
|
1431
|
+
"document": "生成图分辨率\n\n图像风格化(图生图)支持生成以下分辨率的图片:origin(与输入图分辨率一致,长边最高为2000,超出将做等比例缩小)、768:768(1:1)、768:1024(3:4)、1024:768(4:3),不传默认使用origin,如果指定生成的长宽比与输入图长宽比差异过大可能导致图片内容被裁剪。\n注意:此字段可能返回 null,表示取不到有效值。",
|
1432
1432
|
"example": "768:768",
|
1433
1433
|
"member": "string",
|
1434
1434
|
"name": "Resolution",
|
1435
|
+
"output_required": false,
|
1435
1436
|
"required": false,
|
1436
|
-
"type": "string"
|
1437
|
+
"type": "string",
|
1438
|
+
"value_allowed_null": true
|
1437
1439
|
}
|
1438
1440
|
],
|
1439
|
-
"usage": "
|
1441
|
+
"usage": "both"
|
1440
1442
|
},
|
1441
1443
|
"SketchToImageRequest": {
|
1442
1444
|
"document": "SketchToImage请求参数结构体",
|
@@ -1526,7 +1528,7 @@
|
|
1526
1528
|
{
|
1527
1529
|
"disabled": false,
|
1528
1530
|
"document": "写真模型 ID。\n",
|
1529
|
-
"example": "
|
1531
|
+
"example": "model_01",
|
1530
1532
|
"member": "string",
|
1531
1533
|
"name": "ModelId",
|
1532
1534
|
"required": true,
|
@@ -1544,7 +1546,7 @@
|
|
1544
1546
|
{
|
1545
1547
|
"disabled": false,
|
1546
1548
|
"document": "本次生成的图片数量,取值范围[1,4]",
|
1547
|
-
"example": "
|
1549
|
+
"example": "1",
|
1548
1550
|
"member": "int64",
|
1549
1551
|
"name": "ImageNum",
|
1550
1552
|
"required": true,
|
@@ -1562,7 +1564,7 @@
|
|
1562
1564
|
{
|
1563
1565
|
"disabled": false,
|
1564
1566
|
"document": "标识内容设置。 \n默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。",
|
1565
|
-
"example": "
|
1567
|
+
"example": "{\"LogoUrl\": \"https://xxx.com/logo.jpg\", \"LogoRect\": {\"X\": 10, \"Y\": 10, \"Width\": 20, \"Height\": 20}}",
|
1566
1568
|
"member": "LogoParam",
|
1567
1569
|
"name": "LogoParam",
|
1568
1570
|
"required": false,
|
@@ -1586,7 +1588,7 @@
|
|
1586
1588
|
{
|
1587
1589
|
"disabled": false,
|
1588
1590
|
"document": "提交生成写真图片任务 ID。\n",
|
1589
|
-
"example": "
|
1591
|
+
"example": "cf3c2c70f0277a17527cf676",
|
1590
1592
|
"member": "string",
|
1591
1593
|
"name": "JobId",
|
1592
1594
|
"output_required": false,
|
@@ -1817,7 +1819,7 @@
|
|
1817
1819
|
{
|
1818
1820
|
"disabled": false,
|
1819
1821
|
"document": "绘画风格。\n请在 [文生图(高级版)风格列表](https://cloud.tencent.com/document/product/1668/104567) 中选择期望的风格,传入风格编号。\n不传默认不指定风格。",
|
1820
|
-
"example": "
|
1822
|
+
"example": "riman",
|
1821
1823
|
"member": "string",
|
1822
1824
|
"name": "Style",
|
1823
1825
|
"required": false,
|
@@ -1826,7 +1828,7 @@
|
|
1826
1828
|
{
|
1827
1829
|
"disabled": false,
|
1828
1830
|
"document": "生成图分辨率。\n支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1)、720:1280(9:16)、1280:720(16:9)、768:1280(3:5)、1280:768(5:3),不传默认使用1024:1024。",
|
1829
|
-
"example": "
|
1831
|
+
"example": "1024:1024",
|
1830
1832
|
"member": "string",
|
1831
1833
|
"name": "Resolution",
|
1832
1834
|
"required": false,
|
@@ -1835,7 +1837,7 @@
|
|
1835
1837
|
{
|
1836
1838
|
"disabled": false,
|
1837
1839
|
"document": "为生成结果图添加显式水印标识的开关,默认为1。 \n1:添加。 \n0:不添加。 \n其他数值:默认按1处理。 \n建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。",
|
1838
|
-
"example": "
|
1840
|
+
"example": "1",
|
1839
1841
|
"member": "int64",
|
1840
1842
|
"name": "LogoAdd",
|
1841
1843
|
"required": false,
|
@@ -1844,7 +1846,7 @@
|
|
1844
1846
|
{
|
1845
1847
|
"disabled": false,
|
1846
1848
|
"document": "文生图模型,默认使用engine1。\n取值:\nengine1\nengine2",
|
1847
|
-
"example": "
|
1849
|
+
"example": "engine1",
|
1848
1850
|
"member": "string",
|
1849
1851
|
"name": "Engine",
|
1850
1852
|
"required": false,
|
@@ -1853,7 +1855,7 @@
|
|
1853
1855
|
{
|
1854
1856
|
"disabled": false,
|
1855
1857
|
"document": "prompt 扩写开关。1为开启,0为关闭,不传默认开启。\n开启扩写后,将自动扩写原始输入的 prompt 并使用扩写后的 prompt 生成图片,返回生成图片结果时将一并返回扩写后的 prompt 文本。\n如果关闭扩写,将直接使用原始输入的 prompt 生成图片。\n建议开启,在多数场景下可提升生成图片效果、丰富生成图片细节。",
|
1856
|
-
"example": "
|
1858
|
+
"example": "0",
|
1857
1859
|
"member": "int64",
|
1858
1860
|
"name": "Revise",
|
1859
1861
|
"required": false,
|
@@ -1868,7 +1870,7 @@
|
|
1868
1870
|
{
|
1869
1871
|
"disabled": false,
|
1870
1872
|
"document": "任务 ID。",
|
1871
|
-
"example": "
|
1873
|
+
"example": "251197749-1732000967-13b82f68-a647-11ef-be80-525400047e59-0",
|
1872
1874
|
"member": "string",
|
1873
1875
|
"name": "JobId",
|
1874
1876
|
"output_required": true,
|
@@ -1890,7 +1892,7 @@
|
|
1890
1892
|
{
|
1891
1893
|
"disabled": false,
|
1892
1894
|
"document": "在上传写真训练图片时指定的写真模型 ID。 \n每个 AI 写真模型自训练完成起1年内有效,有效期内可使用模型生成图片,期满后需要重新训练模型。\n",
|
1893
|
-
"example": "
|
1895
|
+
"example": "model_01",
|
1894
1896
|
"member": "string",
|
1895
1897
|
"name": "ModelId",
|
1896
1898
|
"required": true,
|
@@ -2008,7 +2010,7 @@
|
|
2008
2010
|
{
|
2009
2011
|
"disabled": false,
|
2010
2012
|
"document": "写真模型 ID。由英文大小写字母、数字及下划线组成。\n用于唯一标识一个写真模型,一个写真模型只能用于一个人物的写真图片生成。",
|
2011
|
-
"example": "
|
2013
|
+
"example": "model_01",
|
2012
2014
|
"member": "string",
|
2013
2015
|
"name": "ModelId",
|
2014
2016
|
"required": true,
|
@@ -2017,7 +2019,7 @@
|
|
2017
2019
|
{
|
2018
2020
|
"disabled": false,
|
2019
2021
|
"document": "写真模型训练用的基础图像 URL,用于固定写真模型可生成的人物。\n图片数量:1张。\n图片内容:单人,脸部清晰。\n图片限制:单边分辨率小于2000,转成 Base64 字符串后小于 5MB。\n",
|
2020
|
-
"example": "
|
2022
|
+
"example": "https://xxx.com/image.jpg",
|
2021
2023
|
"member": "string",
|
2022
2024
|
"name": "BaseUrl",
|
2023
2025
|
"required": false,
|
@@ -2026,7 +2028,7 @@
|
|
2026
2028
|
{
|
2027
2029
|
"disabled": false,
|
2028
2030
|
"document": "写真模型训练用的图像 URL 列表,仅常规训练模式需要上传。\n图片数量:19 - 24 张。\n图片内容:单人,脸部清晰,和基础图像中的人物为同一人。\n图片限制:单边分辨率小于2000,转成 Base64 字符串后小于 5MB。",
|
2029
|
-
"example": "
|
2031
|
+
"example": "[\"https://xxx.com/image_1.jpg\"]",
|
2030
2032
|
"member": "string",
|
2031
2033
|
"name": "Urls",
|
2032
2034
|
"required": false,
|
@@ -2035,7 +2037,7 @@
|
|
2035
2037
|
{
|
2036
2038
|
"disabled": false,
|
2037
2039
|
"document": "训练图像质量过滤开关配置。\n支持开启或关闭对训练图像分辨率下限、脸部区域大小、脸部遮挡的过滤,默认开启以上过滤。\n如果训练图像内包含多人脸或无人脸、和 Base 人像不为同一人也将被过滤,不可关闭该过滤条件。\n建议:关闭以上过滤可能导致写真生成效果受损,建议使用单人、正脸、脸部区域占比较大、脸部清晰无遮挡、无大角度偏转、无夸张表情的图像进行训练。",
|
2038
|
-
"example": "
|
2040
|
+
"example": "{\"Resolution\":1,\"Size\":1,\"Occlusion\":1}",
|
2039
2041
|
"member": "Filter",
|
2040
2042
|
"name": "Filter",
|
2041
2043
|
"required": false,
|
@@ -2044,7 +2046,7 @@
|
|
2044
2046
|
{
|
2045
2047
|
"disabled": false,
|
2046
2048
|
"document": "训练模式。\n默认使用常规训练模式。如果使用快速训练模式和免训练模式,只需要在 BaseUrl 中传入1张图片,Urls.N 中无需传入图片。\n0:常规训练模式,上传多张图片用于模型训练,完成训练后可生成写真图片。\n1:快速训练模式,仅需上传1张图片用于模型训练,训练速度更快,完成训练后可生成写真图片。\n2:免训练模式,仅需上传1张图片,跳过模型训练环节,直接生成写真图片。",
|
2047
|
-
"example": "
|
2049
|
+
"example": "1",
|
2048
2050
|
"member": "int64",
|
2049
2051
|
"name": "TrainMode",
|
2050
2052
|
"required": false,
|
@@ -2059,7 +2061,7 @@
|
|
2059
2061
|
{
|
2060
2062
|
"disabled": false,
|
2061
2063
|
"document": "用于提示对应上传的Urls训练图片是否符合要求,如果未通过需要重新上传。如果基础图像不符合要求会直接通过ErrorCode提示。如果您选择了快速模式,该参数返回为空数组。",
|
2062
|
-
"example": "[\"
|
2064
|
+
"example": "[\"SUCCESS\"]",
|
2063
2065
|
"member": "string",
|
2064
2066
|
"name": "ResultDetails",
|
2065
2067
|
"output_required": false,
|
@@ -43,8 +43,8 @@
|
|
43
43
|
"QueryDrawPortraitJob": [
|
44
44
|
{
|
45
45
|
"document": "成功请求",
|
46
|
-
"input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryDrawPortraitJob\n<公共请求参数>\n\n{\n \"JobId\": \"
|
47
|
-
"output": "{\n \"Response\": {\n \"JobErrorCode\": \"\",\n \"JobErrorMsg\": \"\",\n \"JobStatusCode\": \"DONE\",\n \"JobStatusMsg\": \"处理完成\",\n \"RequestId\": \"9202070d-02bd-4848-bf54-568a2597e400\",\n \"ResultDetails\": [\n \"SUCCESS\"\n ],\n \"ResultUrls\": [\n \"https://xxx.com/
|
46
|
+
"input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryDrawPortraitJob\n<公共请求参数>\n\n{\n \"JobId\": \"d33c2c966ae1476a5fae5e76\"\n}",
|
47
|
+
"output": "{\n \"Response\": {\n \"JobErrorCode\": \"\",\n \"JobErrorMsg\": \"\",\n \"JobStatusCode\": \"DONE\",\n \"JobStatusMsg\": \"处理完成\",\n \"RequestId\": \"9202070d-02bd-4848-bf54-568a2597e400\",\n \"ResultDetails\": [\n \"SUCCESS\"\n ],\n \"ResultUrls\": [\n \"https://aiart-portrait-xxx.cos.ap-guangzhou.myqcloud.com/xxx?q-sign-algorithm=sha1&q-ak=xxx&q-sign-time=1731996860;1732000460&q-key-time=1731996860;1732000460&q-header-list=host&q-url-param-list=&q-signature=2a86d7f0c5482e10d6867ddea14d9e3973201e95\"\n ]\n }\n}",
|
48
48
|
"title": "成功"
|
49
49
|
}
|
50
50
|
],
|
@@ -67,15 +67,15 @@
|
|
67
67
|
"QueryTextToImageProJob": [
|
68
68
|
{
|
69
69
|
"document": "成功调用",
|
70
|
-
"input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryTextToImageProJob\n<公共请求参数>\n\n{\n \"JobId\": \"
|
71
|
-
"output": "{\n \"Response\": {\n \"JobErrorCode\": \"\",\n \"JobErrorMsg\": \"\",\n \"JobStatusCode\": \"5\",\n \"JobStatusMsg\": \"处理完成\",\n \"RequestId\": \"fae816f9-7fd1-4e39-bf1c-3d43677603de\",\n \"ResultDetails\": [\n \"Success\"\n ],\n \"ResultImage\": [\n \"https://
|
70
|
+
"input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryTextToImageProJob\n<公共请求参数>\n\n{\n \"JobId\": \"251197749-1732000967-13b82f68-a647-11ef-be80-525400047e59-0\"\n}",
|
71
|
+
"output": "{\n \"Response\": {\n \"JobErrorCode\": \"\",\n \"JobErrorMsg\": \"\",\n \"JobStatusCode\": \"5\",\n \"JobStatusMsg\": \"处理完成\",\n \"RequestId\": \"fae816f9-7fd1-4e39-bf1c-3d43677603de\",\n \"ResultDetails\": [\n \"Success\"\n ],\n \"ResultImage\": [\n \"https://aiart-xxx.cos.ap-guangzhou.myqcloud.com/xxx.jpg?q-sign-algorithm=sha1&q-ak=xxxxx&q-sign-time=1731574045;1731577645&q-key-time=1731574045;1731577645&q-header-list=host&q-url-param-list=&q-signature=31fe75c1c18c3d91db59508961209dd37aaf41c7\"\n ],\n \"RevisedPrompt\": [\n \"动漫风格,画面主要描述一个雨天的场景,一位亚洲男孩在雨中独自行走,他的身姿显得有些落寞,背景是一个阴雨连绵的城市,镜头是中景\"\n ]\n }\n}",
|
72
72
|
"title": "成功调用"
|
73
73
|
}
|
74
74
|
],
|
75
75
|
"QueryTrainPortraitModelJob": [
|
76
76
|
{
|
77
77
|
"document": "",
|
78
|
-
"input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryTrainPortraitModelJob\n<公共请求参数>\n\n{\n \"ModelId\": \"
|
78
|
+
"input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryTrainPortraitModelJob\n<公共请求参数>\n\n{\n \"ModelId\": \"model_01\"\n}",
|
79
79
|
"output": "{\n \"Response\": {\n \"JobErrorCode\": \"\",\n \"JobErrorMsg\": \"\",\n \"JobStatusCode\": \"DONE\",\n \"JobStatusMsg\": \"处理完成\",\n \"RequestId\": \"d643c325-5fe6-4d90-880c-40516ad27f8e\"\n }\n}",
|
80
80
|
"title": "查询成功"
|
81
81
|
}
|
@@ -107,8 +107,8 @@
|
|
107
107
|
"SubmitDrawPortraitJob": [
|
108
108
|
{
|
109
109
|
"document": "调用成功",
|
110
|
-
"input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitDrawPortraitJob\n<公共请求参数>\n\n{\n \"ModelId\": \"
|
111
|
-
"output": "{\n \"Response\": {\n \"JobId\": \"
|
110
|
+
"input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitDrawPortraitJob\n<公共请求参数>\n\n{\n \"ModelId\": \"model_01\",\n \"StyleId\": \"zhengjian_female\",\n \"ImageNum\": 1\n}",
|
111
|
+
"output": "{\n \"Response\": {\n \"JobId\": \"d33c2c966ae1476a5fae5e76\",\n \"RequestId\": \"94b5192b-b40b-4f0c-b4f8-edfa7092f8b9\"\n }\n}",
|
112
112
|
"title": "成功"
|
113
113
|
}
|
114
114
|
],
|
@@ -132,14 +132,14 @@
|
|
132
132
|
{
|
133
133
|
"document": "成功调用",
|
134
134
|
"input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitTextToImageProJob\n<公共请求参数>\n\n{\n \"Prompt\": \"雨天\",\n \"Style\": \"dongman\"\n}",
|
135
|
-
"output": "{\n \"Response\": {\n \"JobId\": \"
|
135
|
+
"output": "{\n \"Response\": {\n \"JobId\": \"251197749-1732000967-13b82f68-a647-11ef-be80-525400047e59-0\",\n \"RequestId\": \"aeb78554-0772-4c64-8a84-fa21095cbbd7\"\n }\n}",
|
136
136
|
"title": "成功调用"
|
137
137
|
}
|
138
138
|
],
|
139
139
|
"SubmitTrainPortraitModelJob": [
|
140
140
|
{
|
141
141
|
"document": "提交训练任务成功",
|
142
|
-
"input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitTrainPortraitModelJob\n<公共请求参数>\n\n{\n \"ModelId\": \"
|
142
|
+
"input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitTrainPortraitModelJob\n<公共请求参数>\n\n{\n \"ModelId\": \"model_01\"\n}",
|
143
143
|
"output": "{\n \"Response\": {\n \"RequestId\": \"5ed6909b-9b97-4924-a3f3-3b7a9b02d1-ce\"\n }\n}",
|
144
144
|
"title": "成功提交训练任务"
|
145
145
|
}
|
@@ -155,8 +155,8 @@
|
|
155
155
|
"UploadTrainPortraitImages": [
|
156
156
|
{
|
157
157
|
"document": "成功调用上传",
|
158
|
-
"input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UploadTrainPortraitImages\n<公共请求参数>\n\n{\n \"ModelId\": \"
|
159
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"948182a1-e669-42f8-a00e-fa9f5b7d287a\",\n \"ResultDetails\": [
|
158
|
+
"input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UploadTrainPortraitImages\n<公共请求参数>\n\n{\n \"ModelId\": \"model_01\",\n \"BaseUrl\": \"https://xxx.com/image.jpg\",\n \"TrainMode\": 1\n}",
|
159
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"948182a1-e669-42f8-a00e-fa9f5b7d287a\",\n \"ResultDetails\": []\n }\n}",
|
160
160
|
"title": "成功"
|
161
161
|
}
|
162
162
|
]
|