tencentcloud-sdk-nodejs-aiart 4.0.833 → 4.0.834
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.
- package/package.json +1 -1
- package/products.md +17 -16
- package/src/services/aiart/v20221229/aiart_client.ts +4 -11
- package/src/services/aiart/v20221229/aiart_models.ts +6 -5
- package/tencentcloud/services/aiart/v20221229/aiart_client.d.ts +4 -11
- package/tencentcloud/services/aiart/v20221229/aiart_client.js +4 -11
- package/tencentcloud/services/aiart/v20221229/aiart_models.d.ts +6 -5
package/package.json
CHANGED
package/products.md
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
| advisor | [云顾问](https://cloud.tencent.com/document/product/1264) | 2024-03-20 01:07:31 |
|
|
7
7
|
| af | [借贷反欺诈](https://cloud.tencent.com/document/product/668) | 2024-03-20 01:07:31 |
|
|
8
8
|
| afc | [定制建模](https://cloud.tencent.com/document/product/1029) | 2024-03-27 01:07:50 |
|
|
9
|
-
| aiart | [大模型图像创作引擎](https://cloud.tencent.com/document/product/1668) | 2024-04-
|
|
9
|
+
| aiart | [大模型图像创作引擎](https://cloud.tencent.com/document/product/1668) | 2024-04-12 01:07:15 |
|
|
10
10
|
| ame | [正版曲库直通车](https://cloud.tencent.com/document/product/1155) | 2023-08-17 01:06:14 |
|
|
11
11
|
| ams | [音频内容安全](https://cloud.tencent.com/document/product/1219) | 2024-03-20 01:07:34 |
|
|
12
12
|
| anicloud | [动效素材服务](https://cloud.tencent.com/document/product/1641) | 2023-05-18 01:01:53 |
|
|
13
|
-
| antiddos | [T-Sec-DDoS防护(Anti-DDoS)](https://cloud.tencent.com/document/product/297) | 2024-
|
|
13
|
+
| antiddos | [T-Sec-DDoS防护(Anti-DDoS)](https://cloud.tencent.com/document/product/297) | 2024-04-12 01:07:18 |
|
|
14
14
|
| apcas | [汽车精准获客服务](https://cloud.tencent.com/document/product/1244) | 2022-04-04 06:05:36 |
|
|
15
15
|
| ape | [正版图库直通车](https://cloud.tencent.com/document/product/1181) | 2022-04-04 06:05:40 |
|
|
16
16
|
| api | [云 API](https://cloud.tencent.com/document/product/1278) | 2023-01-05 01:02:52 |
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
| cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2024-03-20 01:09:28 |
|
|
41
41
|
| cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2024-03-21 01:09:20 |
|
|
42
42
|
| ccc | [云联络中心](https://cloud.tencent.com/document/product/679) | 2024-04-10 01:09:30 |
|
|
43
|
-
| cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2024-
|
|
43
|
+
| cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2024-04-12 01:09:15 |
|
|
44
44
|
| cdc | [本地专用集群](https://cloud.tencent.com/document/product/1346) | 2024-03-20 01:10:04 |
|
|
45
|
-
| cdn | [内容分发网络 CDN](https://cloud.tencent.com/document/product/228) | 2024-
|
|
45
|
+
| cdn | [内容分发网络 CDN](https://cloud.tencent.com/document/product/228) | 2024-04-12 01:09:42 |
|
|
46
46
|
| cds | [T-Sec-数据安全审计(DSA)](https://cloud.tencent.com/document/product/856) | 2024-03-20 01:10:22 |
|
|
47
47
|
| cdwch | [云数据仓库 ClickHouse](https://cloud.tencent.com/document/product/1299) | 2024-04-04 01:10:06 |
|
|
48
48
|
| cdwdoris | [腾讯云数据仓库 TCHouse-D](https://cloud.tencent.com/document/product/1387) | 2024-04-09 01:09:52 |
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
| cii | [智能保险助手](https://cloud.tencent.com/document/product/1368) | 2023-05-18 01:12:07 |
|
|
56
56
|
| cim | [](https://cloud.tencent.com/document/product) | 2019-05-16 17:21:18 |
|
|
57
57
|
| cis | [](https://cloud.tencent.com/document/product) | 2018-06-07 15:01:42 |
|
|
58
|
-
| ckafka | [消息队列 CKafka 版](https://cloud.tencent.com/document/product/597) | 2024-
|
|
58
|
+
| ckafka | [消息队列 CKafka 版](https://cloud.tencent.com/document/product/597) | 2024-04-12 01:10:35 |
|
|
59
59
|
| clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2024-03-28 01:11:53 |
|
|
60
60
|
| cloudaudit | [操作审计](https://cloud.tencent.com/document/product/629) | 2024-01-15 01:09:37 |
|
|
61
61
|
| cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2024-03-20 01:11:31 |
|
|
62
|
-
| cloudstudio | [Cloud Studio(云端 IDE)](https://cloud.tencent.com/document/product/1039) | 2024-
|
|
62
|
+
| cloudstudio | [Cloud Studio(云端 IDE)](https://cloud.tencent.com/document/product/1039) | 2024-04-12 01:11:02 |
|
|
63
63
|
| cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2024-03-27 01:12:06 |
|
|
64
64
|
| cme | [多媒体创作引擎](https://cloud.tencent.com/document/product/1156) | 2024-03-20 01:12:05 |
|
|
65
65
|
| cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2024-03-20 01:12:14 |
|
|
@@ -95,11 +95,11 @@
|
|
|
95
95
|
| eiam | [数字身份管控平台(员工版)](https://cloud.tencent.com/document/product/1442) | 2024-03-20 01:16:13 |
|
|
96
96
|
| eis | [数据连接器](https://cloud.tencent.com/document/product/1270) | 2023-08-10 01:17:44 |
|
|
97
97
|
| emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2024-03-27 01:16:55 |
|
|
98
|
-
| es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2024-
|
|
98
|
+
| es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2024-04-11 16:23:06 |
|
|
99
99
|
| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2024-04-10 01:15:19 |
|
|
100
100
|
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2024-04-10 01:15:33 |
|
|
101
101
|
| facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2024-03-20 01:17:05 |
|
|
102
|
-
| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2024-04-
|
|
102
|
+
| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2024-04-12 01:15:49 |
|
|
103
103
|
| fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2024-03-20 01:17:11 |
|
|
104
104
|
| ft | [人像变换](https://cloud.tencent.com/document/product/1202) | 2024-03-20 01:17:13 |
|
|
105
105
|
| gaap | [全球应用加速](https://cloud.tencent.com/document/product/608) | 2024-04-04 01:15:50 |
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
| hai | [高性能应用服务](https://cloud.tencent.com/document/product/1721) | 2024-03-22 01:16:13 |
|
|
113
113
|
| hasim | [高可用物联网卡](https://cloud.tencent.com/document/product/1482) | 2023-05-18 01:29:47 |
|
|
114
114
|
| hcm | [数学作业批改](https://cloud.tencent.com/document/product/1004) | 2024-03-20 01:17:36 |
|
|
115
|
-
| hunyuan | [腾讯混元大模型](https://cloud.tencent.com/document/product/1729) | 2024-
|
|
115
|
+
| hunyuan | [腾讯混元大模型](https://cloud.tencent.com/document/product/1729) | 2024-04-11 20:52:21 |
|
|
116
116
|
| iai | [人脸识别](https://cloud.tencent.com/document/product/867) | 2024-03-20 01:17:43 |
|
|
117
117
|
| ic | [图片瘦身](https://cloud.tencent.com/document/product/636) | 2023-03-02 01:23:21 |
|
|
118
118
|
| icr | [对话机器人](https://cloud.tencent.com/document/product/1268) | 2024-03-20 01:17:48 |
|
|
@@ -135,6 +135,7 @@
|
|
|
135
135
|
| lcic | [实时互动-教育版](https://cloud.tencent.com/document/product/1639) | 2024-04-09 01:17:28 |
|
|
136
136
|
| lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2024-04-09 01:17:37 |
|
|
137
137
|
| live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2024-04-11 01:17:46 |
|
|
138
|
+
| lke | [大模型知识引擎](https://cloud.tencent.com/document/product/1759) | 2024-04-11 17:23:26 |
|
|
138
139
|
| lowcode | [云开发低码](https://cloud.tencent.com/document/product/1301) | 2022-04-04 06:56:51 |
|
|
139
140
|
| lp | [登录保护](https://cloud.tencent.com/document/product/1190) | 2022-04-04 06:56:52 |
|
|
140
141
|
| mall | [商场客留大数据](https://cloud.tencent.com/document/product/1707) | 2024-03-20 01:20:11 |
|
|
@@ -143,7 +144,7 @@
|
|
|
143
144
|
| memcached | [云数据库Memcached](https://cloud.tencent.com/document/product/241) | 2024-03-20 01:20:22 |
|
|
144
145
|
| mgobe | [游戏联机对战引擎](https://cloud.tencent.com/document/product/1038) | 2022-07-08 06:11:32 |
|
|
145
146
|
| mmps | [小程序安全](https://cloud.tencent.com/document/product/1223) | 2024-03-20 01:20:23 |
|
|
146
|
-
| mna | [多网聚合加速](https://cloud.tencent.com/document/product/1385) | 2024-
|
|
147
|
+
| mna | [多网聚合加速](https://cloud.tencent.com/document/product/1385) | 2024-04-12 01:19:07 |
|
|
147
148
|
| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2024-04-09 01:18:23 |
|
|
148
149
|
| monitor | [腾讯云可观测平台](https://cloud.tencent.com/document/product/248) | 2024-04-11 01:18:27 |
|
|
149
150
|
| mps | [媒体处理](https://cloud.tencent.com/document/product/862) | 2024-04-02 01:19:24 |
|
|
@@ -163,7 +164,7 @@
|
|
|
163
164
|
| privatedns | [私有域解析 Private DNS](https://cloud.tencent.com/document/product/1338) | 2024-03-20 01:22:42 |
|
|
164
165
|
| pts | [云压测](https://cloud.tencent.com/document/product/1484) | 2024-03-27 01:23:10 |
|
|
165
166
|
| rce | [全栈式风控引擎](https://cloud.tencent.com/document/product/1343) | 2024-03-20 01:22:53 |
|
|
166
|
-
| redis | [云数据库Redis](https://cloud.tencent.com/document/product/239) | 2024-04-
|
|
167
|
+
| redis | [云数据库Redis](https://cloud.tencent.com/document/product/239) | 2024-04-12 01:21:07 |
|
|
167
168
|
| region | [地域管理系统](https://cloud.tencent.com/document/product/1596) | 2024-03-20 01:23:06 |
|
|
168
169
|
| rkp | [风险探针](https://cloud.tencent.com/document/product/1169) | 2023-12-25 00:16:39 |
|
|
169
170
|
| rp | [注册保护](https://cloud.tencent.com/document/product/1191) | 2022-04-04 07:04:06 |
|
|
@@ -173,7 +174,7 @@
|
|
|
173
174
|
| smh | [智能媒资托管](https://cloud.tencent.com/document/product/1339) | 2024-03-20 01:23:27 |
|
|
174
175
|
| smop | [腾讯安心用户运营平台](https://cloud.tencent.com/document/product/1310) | 2024-04-11 01:20:38 |
|
|
175
176
|
| smpn | [营销号码安全](https://cloud.tencent.com/document/product/1127) | 2024-03-20 01:23:29 |
|
|
176
|
-
| sms | [短信](https://cloud.tencent.com/document/product/382) | 2024-
|
|
177
|
+
| sms | [短信](https://cloud.tencent.com/document/product/382) | 2024-04-12 01:21:45 |
|
|
177
178
|
| soe | [智聆口语评测](https://cloud.tencent.com/document/product/884) | 2024-04-11 01:20:45 |
|
|
178
179
|
| solar | [智汇零售](https://cloud.tencent.com/document/product) | 2020-03-19 08:01:59 |
|
|
179
180
|
| sqlserver | [云数据库 SQL Server](https://cloud.tencent.com/document/product/238) | 2024-04-10 01:21:30 |
|
|
@@ -205,7 +206,7 @@
|
|
|
205
206
|
| tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2024-04-02 01:23:41 |
|
|
206
207
|
| tds | [设备安全](https://cloud.tencent.com/document/product/1628) | 2024-03-20 01:26:12 |
|
|
207
208
|
| tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2024-03-20 01:26:14 |
|
|
208
|
-
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2024-04-
|
|
209
|
+
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2024-04-12 01:24:21 |
|
|
209
210
|
| thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2024-03-20 01:27:05 |
|
|
210
211
|
| tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
|
|
211
212
|
| tic | [资源编排 TIC](https://cloud.tencent.com/document/product/1213) | 2023-08-17 05:26:08 |
|
|
@@ -213,7 +214,7 @@
|
|
|
213
214
|
| tics | [威胁情报云查服务](https://cloud.tencent.com/document/product/1013) | 2024-03-20 01:27:08 |
|
|
214
215
|
| tiems | [腾讯云 TI 平台 TI-EMS ](https://cloud.tencent.com/document/product/1120) | 2022-07-19 06:19:39 |
|
|
215
216
|
| tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2024-03-20 01:27:09 |
|
|
216
|
-
| tione | [TI-ONE 训练平台](https://cloud.tencent.com/document/product/851) | 2024-04-
|
|
217
|
+
| tione | [TI-ONE 训练平台](https://cloud.tencent.com/document/product/851) | 2024-04-12 01:25:11 |
|
|
217
218
|
| tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2024-03-20 01:27:28 |
|
|
218
219
|
| tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2024-03-20 01:28:56 |
|
|
219
220
|
| tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 |
|
|
@@ -224,7 +225,7 @@
|
|
|
224
225
|
| trocket | [消息队列 RocketMQ 版](https://cloud.tencent.com/document/product/1493) | 2024-04-04 01:25:24 |
|
|
225
226
|
| trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2024-03-26 01:27:42 |
|
|
226
227
|
| trro | [远程实时操控](https://cloud.tencent.com/document/product/1584) | 2024-03-20 01:29:13 |
|
|
227
|
-
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2024-04-
|
|
228
|
+
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2024-04-12 01:26:18 |
|
|
228
229
|
| tse | [微服务引擎](https://cloud.tencent.com/document/product/1364) | 2024-04-02 01:25:46 |
|
|
229
230
|
| tsf | [微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2024-03-20 01:29:39 |
|
|
230
231
|
| tsw | [微服务观测平台 TSW](https://cloud.tencent.com/document/product/1311) | 2024-03-20 01:30:06 |
|
|
@@ -237,7 +238,7 @@
|
|
|
237
238
|
| vrs | [声音复刻](https://cloud.tencent.com/document/product/1283) | 2024-04-02 01:27:45 |
|
|
238
239
|
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2024-03-20 01:31:28 |
|
|
239
240
|
| wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2024-03-20 01:32:09 |
|
|
240
|
-
| wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2024-04-
|
|
241
|
+
| wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2024-04-12 01:28:34 |
|
|
241
242
|
| weilingwith | [微瓴同业开放平台](https://cloud.tencent.com/document/product/1693) | 2024-04-03 11:34:07 |
|
|
242
243
|
| wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
|
|
243
244
|
| yinsuda | [音速达直播音乐版权引擎](https://cloud.tencent.com/document/product/1592) | 2024-03-20 01:33:11 |
|
|
@@ -66,12 +66,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
70
|
-
输入:256个字符以内的描述性文本,推荐使用中文。
|
|
71
|
-
输出:对应风格及分辨率的 AI 生成图。
|
|
72
|
-
可支持的风格详见 [智能文生图风格列表](https://cloud.tencent.com/document/product/1668/86249),请将列表中的“风格编号”传入 Styles 数组,建议选择一种风格。
|
|
69
|
+
* 智能文生图接口提供基础版文生图能力,将根据输入的文本描述,智能生成与之相关的结果图。
|
|
73
70
|
|
|
74
|
-
|
|
71
|
+
智能文生图默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
75
72
|
*/
|
|
76
73
|
async TextToImage(
|
|
77
74
|
req: TextToImageRequest,
|
|
@@ -81,12 +78,8 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
81
78
|
}
|
|
82
79
|
|
|
83
80
|
/**
|
|
84
|
-
*
|
|
85
|
-
|
|
86
|
-
输出:对应风格及分辨率的 AI 生成图。
|
|
87
|
-
可支持的风格详见 [智能图生图风格列表](https://cloud.tencent.com/document/product/1668/86250),请将列表中的“风格编号”传入 Styles 数组,建议选择一种风格。
|
|
88
|
-
|
|
89
|
-
请求频率限制为1次/秒。
|
|
81
|
+
* 智能图生图接口提供基础版图生图能力,将根据输入的图像及文本描述,智能生成风格转化后的图像。建议避免输入人像过小、姿势复杂、人数较多的人像图片。
|
|
82
|
+
智能图生图默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
90
83
|
*/
|
|
91
84
|
async ImageToImage(
|
|
92
85
|
req: ImageToImageRequest,
|
|
@@ -95,14 +95,14 @@ export interface ImageToImageRequest {
|
|
|
95
95
|
* 输入图 Base64 数据。
|
|
96
96
|
算法将根据输入的图片,结合文本描述智能生成与之相关的图像。
|
|
97
97
|
Base64 和 Url 必须提供一个,如果都提供以 Base64 为准。
|
|
98
|
-
图片限制:单边分辨率小于
|
|
98
|
+
图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 8MB。
|
|
99
99
|
*/
|
|
100
100
|
InputImage?: string
|
|
101
101
|
/**
|
|
102
102
|
* 输入图 Url。
|
|
103
103
|
算法将根据输入的图片,结合文本描述智能生成与之相关的图像。
|
|
104
104
|
Base64 和 Url 必须提供一个,如果都提供以 Base64 为准。
|
|
105
|
-
图片限制:单边分辨率小于
|
|
105
|
+
图片限制:单边分辨率小于5000,转成 Base64 字符串后小于8MB。
|
|
106
106
|
*/
|
|
107
107
|
InputUrl?: string
|
|
108
108
|
/**
|
|
@@ -125,7 +125,8 @@ Base64 和 Url 必须提供一个,如果都提供以 Base64 为准。
|
|
|
125
125
|
Styles?: Array<string>
|
|
126
126
|
/**
|
|
127
127
|
* 生成图结果的配置,包括输出图片分辨率和尺寸等。
|
|
128
|
-
支持生成以下分辨率的图片:origin
|
|
128
|
+
支持生成以下分辨率的图片:origin(与输入图分辨率一致,长边最高为2000,超出将做等比例缩小)、768:768(1:1)、768:1024(3:4)、1024:768(4:3)。
|
|
129
|
+
不传默认使用origin。
|
|
129
130
|
*/
|
|
130
131
|
ResultConfig?: ResultConfig
|
|
131
132
|
/**
|
|
@@ -232,9 +233,9 @@ export interface ResultConfig {
|
|
|
232
233
|
/**
|
|
233
234
|
* 生成图分辨率
|
|
234
235
|
|
|
235
|
-
智能文生图支持生成以下分辨率的图片: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)、1080:1920(9:16)、1920:1080(16:9),不传默认使用768:768
|
|
236
|
+
智能文生图支持生成以下分辨率的图片: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)、1080:1920(9:16)、1920:1080(16:9),不传默认使用768:768。
|
|
236
237
|
|
|
237
|
-
智能图生图支持生成以下分辨率的图片:origin
|
|
238
|
+
智能图生图支持生成以下分辨率的图片:origin(与输入图分辨率一致,长边最高为2000,超出将做等比例缩小)、768:768(1:1)、768:1024(3:4)、1024:768(4:3),不传默认使用origin,如果指定生成的长宽比与输入图长宽比差异过大可能导致图片内容被裁剪。
|
|
238
239
|
*/
|
|
239
240
|
Resolution?: string
|
|
240
241
|
}
|
|
@@ -21,21 +21,14 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
21
21
|
*/
|
|
22
22
|
SubmitTextToImageProJob(req: SubmitTextToImageProJobRequest, cb?: (error: string, rep: SubmitTextToImageProJobResponse) => void): Promise<SubmitTextToImageProJobResponse>;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
25
|
-
输入:256个字符以内的描述性文本,推荐使用中文。
|
|
26
|
-
输出:对应风格及分辨率的 AI 生成图。
|
|
27
|
-
可支持的风格详见 [智能文生图风格列表](https://cloud.tencent.com/document/product/1668/86249),请将列表中的“风格编号”传入 Styles 数组,建议选择一种风格。
|
|
24
|
+
* 智能文生图接口提供基础版文生图能力,将根据输入的文本描述,智能生成与之相关的结果图。
|
|
28
25
|
|
|
29
|
-
|
|
26
|
+
智能文生图默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
30
27
|
*/
|
|
31
28
|
TextToImage(req: TextToImageRequest, cb?: (error: string, rep: TextToImageResponse) => void): Promise<TextToImageResponse>;
|
|
32
29
|
/**
|
|
33
|
-
*
|
|
34
|
-
|
|
35
|
-
输出:对应风格及分辨率的 AI 生成图。
|
|
36
|
-
可支持的风格详见 [智能图生图风格列表](https://cloud.tencent.com/document/product/1668/86250),请将列表中的“风格编号”传入 Styles 数组,建议选择一种风格。
|
|
37
|
-
|
|
38
|
-
请求频率限制为1次/秒。
|
|
30
|
+
* 智能图生图接口提供基础版图生图能力,将根据输入的图像及文本描述,智能生成风格转化后的图像。建议避免输入人像过小、姿势复杂、人数较多的人像图片。
|
|
31
|
+
智能图生图默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
39
32
|
*/
|
|
40
33
|
ImageToImage(req: ImageToImageRequest, cb?: (error: string, rep: ImageToImageResponse) => void): Promise<ImageToImageResponse>;
|
|
41
34
|
}
|
|
@@ -46,23 +46,16 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
46
46
|
return this.request("SubmitTextToImageProJob", req, cb);
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
50
|
-
输入:256个字符以内的描述性文本,推荐使用中文。
|
|
51
|
-
输出:对应风格及分辨率的 AI 生成图。
|
|
52
|
-
可支持的风格详见 [智能文生图风格列表](https://cloud.tencent.com/document/product/1668/86249),请将列表中的“风格编号”传入 Styles 数组,建议选择一种风格。
|
|
49
|
+
* 智能文生图接口提供基础版文生图能力,将根据输入的文本描述,智能生成与之相关的结果图。
|
|
53
50
|
|
|
54
|
-
|
|
51
|
+
智能文生图默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
55
52
|
*/
|
|
56
53
|
async TextToImage(req, cb) {
|
|
57
54
|
return this.request("TextToImage", req, cb);
|
|
58
55
|
}
|
|
59
56
|
/**
|
|
60
|
-
*
|
|
61
|
-
|
|
62
|
-
输出:对应风格及分辨率的 AI 生成图。
|
|
63
|
-
可支持的风格详见 [智能图生图风格列表](https://cloud.tencent.com/document/product/1668/86250),请将列表中的“风格编号”传入 Styles 数组,建议选择一种风格。
|
|
64
|
-
|
|
65
|
-
请求频率限制为1次/秒。
|
|
57
|
+
* 智能图生图接口提供基础版图生图能力,将根据输入的图像及文本描述,智能生成风格转化后的图像。建议避免输入人像过小、姿势复杂、人数较多的人像图片。
|
|
58
|
+
智能图生图默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
66
59
|
*/
|
|
67
60
|
async ImageToImage(req, cb) {
|
|
68
61
|
return this.request("ImageToImage", req, cb);
|
|
@@ -75,14 +75,14 @@ export interface ImageToImageRequest {
|
|
|
75
75
|
* 输入图 Base64 数据。
|
|
76
76
|
算法将根据输入的图片,结合文本描述智能生成与之相关的图像。
|
|
77
77
|
Base64 和 Url 必须提供一个,如果都提供以 Base64 为准。
|
|
78
|
-
图片限制:单边分辨率小于
|
|
78
|
+
图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 8MB。
|
|
79
79
|
*/
|
|
80
80
|
InputImage?: string;
|
|
81
81
|
/**
|
|
82
82
|
* 输入图 Url。
|
|
83
83
|
算法将根据输入的图片,结合文本描述智能生成与之相关的图像。
|
|
84
84
|
Base64 和 Url 必须提供一个,如果都提供以 Base64 为准。
|
|
85
|
-
图片限制:单边分辨率小于
|
|
85
|
+
图片限制:单边分辨率小于5000,转成 Base64 字符串后小于8MB。
|
|
86
86
|
*/
|
|
87
87
|
InputUrl?: string;
|
|
88
88
|
/**
|
|
@@ -105,7 +105,8 @@ export interface ImageToImageRequest {
|
|
|
105
105
|
Styles?: Array<string>;
|
|
106
106
|
/**
|
|
107
107
|
* 生成图结果的配置,包括输出图片分辨率和尺寸等。
|
|
108
|
-
支持生成以下分辨率的图片:origin
|
|
108
|
+
支持生成以下分辨率的图片:origin(与输入图分辨率一致,长边最高为2000,超出将做等比例缩小)、768:768(1:1)、768:1024(3:4)、1024:768(4:3)。
|
|
109
|
+
不传默认使用origin。
|
|
109
110
|
*/
|
|
110
111
|
ResultConfig?: ResultConfig;
|
|
111
112
|
/**
|
|
@@ -208,9 +209,9 @@ export interface ResultConfig {
|
|
|
208
209
|
/**
|
|
209
210
|
* 生成图分辨率
|
|
210
211
|
|
|
211
|
-
智能文生图支持生成以下分辨率的图片: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)、1080:1920(9:16)、1920:1080(16:9),不传默认使用768:768
|
|
212
|
+
智能文生图支持生成以下分辨率的图片: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)、1080:1920(9:16)、1920:1080(16:9),不传默认使用768:768。
|
|
212
213
|
|
|
213
|
-
智能图生图支持生成以下分辨率的图片:origin
|
|
214
|
+
智能图生图支持生成以下分辨率的图片:origin(与输入图分辨率一致,长边最高为2000,超出将做等比例缩小)、768:768(1:1)、768:1024(3:4)、1024:768(4:3),不传默认使用origin,如果指定生成的长宽比与输入图长宽比差异过大可能导致图片内容被裁剪。
|
|
214
215
|
*/
|
|
215
216
|
Resolution?: string;
|
|
216
217
|
}
|