tencentcloud-sdk-nodejs-aiart 4.0.556
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/CHANGELOG.md +117389 -0
- package/LICENSE +201 -0
- package/README.md +140 -0
- package/SERVICE_CHANGELOG.md +110417 -0
- package/index.d.ts +2 -0
- package/index.js +6 -0
- package/package.json +47 -0
- package/prettier.config.js +38 -0
- package/products.md +228 -0
- package/src/index.ts +1 -0
- package/src/services/aiart/index.ts +5 -0
- package/src/services/aiart/v20221229/aiart_client.ts +67 -0
- package/src/services/aiart/v20221229/aiart_models.ts +230 -0
- package/src/services/aiart/v20221229/index.ts +6 -0
- package/src/services/index.ts +1 -0
- package/tencentcloud/index.d.ts +1 -0
- package/tencentcloud/index.js +4 -0
- package/tencentcloud/services/aiart/index.d.ts +6 -0
- package/tencentcloud/services/aiart/index.js +7 -0
- package/tencentcloud/services/aiart/v20221229/aiart_client.d.ts +27 -0
- package/tencentcloud/services/aiart/v20221229/aiart_client.js +53 -0
- package/tencentcloud/services/aiart/v20221229/aiart_models.d.ts +187 -0
- package/tencentcloud/services/aiart/v20221229/aiart_models.js +18 -0
- package/tencentcloud/services/aiart/v20221229/index.d.ts +6 -0
- package/tencentcloud/services/aiart/v20221229/index.js +9 -0
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +4 -0
- package/tsconfig.json +33 -0
- package/typings/index.d.ts +2 -0
package/index.d.ts
ADDED
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tencentcloud-sdk-nodejs-aiart",
|
|
3
|
+
"version": "4.0.556",
|
|
4
|
+
"description": "Tencent Cloud API NODEJS SDK",
|
|
5
|
+
"main": "tencentcloud/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "mocha -t 10000",
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'"
|
|
10
|
+
},
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=10"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"tencentcloudapi",
|
|
16
|
+
"tencentcloud",
|
|
17
|
+
"qcloud",
|
|
18
|
+
"sdk",
|
|
19
|
+
"js",
|
|
20
|
+
"nodejs"
|
|
21
|
+
],
|
|
22
|
+
"author": "tencentcloudapi",
|
|
23
|
+
"license": "Apache-2.0",
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"tencentcloud-sdk-nodejs-common": "^4.0.488"
|
|
26
|
+
},
|
|
27
|
+
"directories": {
|
|
28
|
+
"example": "examples",
|
|
29
|
+
"lib": "lib"
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/tencentcloud/tencentcloud-sdk-nodejs"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/form-data": "^2.5.0",
|
|
37
|
+
"@types/node": "^14.0.26",
|
|
38
|
+
"@types/node-fetch": "^2.5.7",
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
|
40
|
+
"@typescript-eslint/parser": "^2.34.0",
|
|
41
|
+
"chai": "^4.2.0",
|
|
42
|
+
"eslint": "^6.8.0",
|
|
43
|
+
"mocha": "^8.1.1",
|
|
44
|
+
"ts-node": "^8.10.2",
|
|
45
|
+
"typescript": "^3.9.7"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// prettier.config.js
|
|
2
|
+
module.exports = {
|
|
3
|
+
// 一行最多 100 字符
|
|
4
|
+
printWidth: 100,
|
|
5
|
+
// 使用 4 个空格缩进
|
|
6
|
+
tabWidth: 2,
|
|
7
|
+
// 不使用缩进符,而使用空格
|
|
8
|
+
useTabs: false,
|
|
9
|
+
// 行尾需要有分号
|
|
10
|
+
semi: false,
|
|
11
|
+
// 使用单引号
|
|
12
|
+
singleQuote: false,
|
|
13
|
+
// 对象的 key 仅在必要时用引号
|
|
14
|
+
quoteProps: "as-needed",
|
|
15
|
+
// jsx 不使用单引号,而使用双引号
|
|
16
|
+
jsxSingleQuote: false,
|
|
17
|
+
// 末尾不需要逗号
|
|
18
|
+
trailingComma: "es5",
|
|
19
|
+
// 大括号内的首尾需要空格
|
|
20
|
+
bracketSpacing: true,
|
|
21
|
+
// jsx 标签的反尖括号需要换行
|
|
22
|
+
jsxBracketSameLine: false,
|
|
23
|
+
// 箭头函数,只有一个参数的时候,也需要括号
|
|
24
|
+
arrowParens: "always",
|
|
25
|
+
// 每个文件格式化的范围是文件的全部内容
|
|
26
|
+
rangeStart: 0,
|
|
27
|
+
rangeEnd: Infinity,
|
|
28
|
+
// 不需要写文件开头的 @prettier
|
|
29
|
+
requirePragma: false,
|
|
30
|
+
// 不需要自动在文件开头插入 @prettier
|
|
31
|
+
insertPragma: false,
|
|
32
|
+
// 使用默认的折行标准
|
|
33
|
+
proseWrap: "preserve",
|
|
34
|
+
// 根据显示样式决定 html 要不要折行
|
|
35
|
+
htmlWhitespaceSensitivity: "css",
|
|
36
|
+
// 换行符使用 lf
|
|
37
|
+
endOfLine: "lf",
|
|
38
|
+
}
|
package/products.md
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
| 包名 | 产品中文名 | 更新时间 |
|
|
2
|
+
|-|-|-|
|
|
3
|
+
| aa | [活动防刷](https://cloud.tencent.com/document/product/1189) | 2022-08-08 06:02:45 |
|
|
4
|
+
| aai | [](https://cloud.tencent.com/document/product) | 2019-08-08 23:15:13 |
|
|
5
|
+
| acp | [应用合规平台](https://cloud.tencent.com/document/product/1553) | 2023-01-10 15:15:42 |
|
|
6
|
+
| advisor | [云顾问](https://cloud.tencent.com/document/product/1264) | 2023-02-01 01:01:26 |
|
|
7
|
+
| af | [借贷反欺诈](https://cloud.tencent.com/document/product/668) | 2022-05-23 06:01:54 |
|
|
8
|
+
| afc | [定制建模](https://cloud.tencent.com/document/product/1029) | 2023-02-01 01:01:37 |
|
|
9
|
+
| aiart | [AI 绘画](https://cloud.tencent.com/document/product/1668) | 2023-03-09 16:15:37 |
|
|
10
|
+
| ame | [正版曲库直通车](https://cloud.tencent.com/document/product/1155) | 2023-02-23 01:01:50 |
|
|
11
|
+
| ams | [音频内容安全](https://cloud.tencent.com/document/product/1219) | 2022-12-29 10:01:58 |
|
|
12
|
+
| anicloud | [动效素材服务](https://cloud.tencent.com/document/product/1641) | 2022-12-21 18:48:21 |
|
|
13
|
+
| antiddos | [T-Sec-DDoS防护(Anti-DDoS)](https://cloud.tencent.com/document/product/1021) | 2023-03-10 01:01:32 |
|
|
14
|
+
| apcas | [汽车精准获客服务](https://cloud.tencent.com/document/product/1244) | 2022-04-04 06:05:36 |
|
|
15
|
+
| ape | [正版图库直通车](https://cloud.tencent.com/document/product/1181) | 2022-04-04 06:05:40 |
|
|
16
|
+
| api | [云 API](https://cloud.tencent.com/document/product/1278) | 2023-01-05 01:02:52 |
|
|
17
|
+
| apigateway | [API 网关](https://cloud.tencent.com/document/product/628) | 2022-11-09 06:09:16 |
|
|
18
|
+
| apm | [应用性能观测](https://cloud.tencent.com/document/product/1463) | 2023-02-23 01:03:27 |
|
|
19
|
+
| as | [弹性伸缩](https://cloud.tencent.com/document/product/377) | 2023-03-09 01:02:47 |
|
|
20
|
+
| asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2023-03-07 01:02:58 |
|
|
21
|
+
| asw | [应用与服务编排工作流](https://cloud.tencent.com/document/product/1272) | 2022-04-04 06:08:40 |
|
|
22
|
+
| ba | [网站备案](https://cloud.tencent.com/document/product/243) | 2022-04-04 06:08:45 |
|
|
23
|
+
| batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2022-12-09 01:11:02 |
|
|
24
|
+
| bda | [人体分析](https://cloud.tencent.com/document/product/1208) | 2022-12-15 01:09:06 |
|
|
25
|
+
| bi | [商业智能分析 BI](https://cloud.tencent.com/document/product/590) | 2022-08-09 10:42:14 |
|
|
26
|
+
| billing | [费用中心](https://cloud.tencent.com/document/product/555) | 2023-03-09 01:03:49 |
|
|
27
|
+
| bizlive | [商业直播](https://cloud.tencent.com/document/product) | 2020-03-10 01:08:07 |
|
|
28
|
+
| bm | [黑石物理服务器CPM](https://cloud.tencent.com/document/product/386) | 2023-01-11 11:01:36 |
|
|
29
|
+
| bma | [品牌经营管家](https://cloud.tencent.com/document/product/1296) | 2023-03-06 01:04:17 |
|
|
30
|
+
| bmeip | [黑石弹性公网IP](https://cloud.tencent.com/document/product/1028) | 2023-02-15 01:10:21 |
|
|
31
|
+
| bmlb | [黑石负载均衡](https://cloud.tencent.com/document/product/1027) | 2022-04-04 06:09:37 |
|
|
32
|
+
| bmvpc | [黑石私有网络](https://cloud.tencent.com/document/product/1024) | 2022-04-15 06:02:36 |
|
|
33
|
+
| bpaas | [商业流程服务](https://cloud.tencent.com/document/product/1083) | 2023-03-08 01:04:59 |
|
|
34
|
+
| bri | [业务风险情报](https://cloud.tencent.com/document/product/1064) | 2021-01-07 08:02:40 |
|
|
35
|
+
| bsca | [二进制软件成分分析](https://cloud.tencent.com/document/product/1483) | 2022-09-29 06:12:03 |
|
|
36
|
+
| btoe | [区块链可信取证](https://cloud.tencent.com/document/product/1259) | 2023-01-12 01:05:12 |
|
|
37
|
+
| cam | [访问管理](https://cloud.tencent.com/document/product/598) | 2023-03-01 01:04:59 |
|
|
38
|
+
| captcha | [验证码](https://cloud.tencent.com/document/product/1110) | 2023-02-17 11:41:16 |
|
|
39
|
+
| car | [应用云渲染](https://cloud.tencent.com/document/product/1547) | 2023-03-10 01:05:35 |
|
|
40
|
+
| casb | [云访问安全代理](https://cloud.tencent.com/document/product/1303) | 2022-12-26 10:53:16 |
|
|
41
|
+
| cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2022-12-12 01:11:14 |
|
|
42
|
+
| cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2023-03-09 01:06:22 |
|
|
43
|
+
| ccc | [云呼叫中心](https://cloud.tencent.com/document/product/679) | 2023-03-08 01:06:07 |
|
|
44
|
+
| cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2023-03-10 01:06:15 |
|
|
45
|
+
| cdc | [本地专用集群](https://cloud.tencent.com/document/product/1346) | 2023-03-09 01:07:38 |
|
|
46
|
+
| cdn | [内容分发网络 CDN](https://cloud.tencent.com/document/product/228) | 2023-03-01 01:08:42 |
|
|
47
|
+
| cds | [T-Sec-数据安全审计(DSA)](https://cloud.tencent.com/document/product/856) | 2022-10-31 06:15:53 |
|
|
48
|
+
| cdwch | [云数据仓库 ClickHouse](https://cloud.tencent.com/document/product/1299) | 2023-02-08 01:18:00 |
|
|
49
|
+
| cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2023-02-01 01:09:52 |
|
|
50
|
+
| cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2023-03-09 01:08:34 |
|
|
51
|
+
| cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2023-03-08 01:08:15 |
|
|
52
|
+
| chdfs | [云 HDFS](https://cloud.tencent.com/document/product/1105) | 2023-02-24 01:08:00 |
|
|
53
|
+
| ciam | [账号风控平台](https://cloud.tencent.com/document/product/1441) | 2023-01-04 01:10:27 |
|
|
54
|
+
| cii | [智能保险助手](https://cloud.tencent.com/document/product/1368) | 2022-06-27 06:06:02 |
|
|
55
|
+
| cim | [](https://cloud.tencent.com/document/product) | 2019-05-16 17:21:18 |
|
|
56
|
+
| cis | [](https://cloud.tencent.com/document/product) | 2018-06-07 15:01:42 |
|
|
57
|
+
| ckafka | [消息队列 CKafka](https://cloud.tencent.com/document/product/597) | 2023-03-09 01:10:31 |
|
|
58
|
+
| clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2023-03-09 01:13:55 |
|
|
59
|
+
| cloudaudit | [云审计](https://cloud.tencent.com/document/product/629) | 2023-02-07 01:15:35 |
|
|
60
|
+
| cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2023-03-10 01:16:51 |
|
|
61
|
+
| cloudstudio | [Cloud Studio(云端 IDE)](https://cloud.tencent.com/document/product/1039) | 2023-03-09 01:14:35 |
|
|
62
|
+
| cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2023-03-10 01:17:25 |
|
|
63
|
+
| cme | [多媒体创作引擎](https://cloud.tencent.com/document/product/1156) | 2023-02-27 01:14:21 |
|
|
64
|
+
| cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2022-11-16 06:15:44 |
|
|
65
|
+
| cms | [内容安全](https://cloud.tencent.com/document/product) | 2020-10-29 08:03:08 |
|
|
66
|
+
| cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2023-02-01 01:13:56 |
|
|
67
|
+
| cr | [金融联络机器人](https://cloud.tencent.com/document/product/656) | 2021-02-24 08:03:24 |
|
|
68
|
+
| cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2023-03-10 01:19:38 |
|
|
69
|
+
| cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2023-03-10 01:25:38 |
|
|
70
|
+
| cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 |
|
|
71
|
+
| cynosdb | [TDSQL-C MySQL 版](https://cloud.tencent.com/document/product/1003) | 2023-03-03 01:13:15 |
|
|
72
|
+
| dasb | [T-Sec-堡垒机(BH)](https://cloud.tencent.com/document/product/1025) | 2023-03-09 01:19:39 |
|
|
73
|
+
| dataintegration | [数据接入平台](https://cloud.tencent.com/document/product/1591) | 2022-07-26 15:32:15 |
|
|
74
|
+
| dayu | [DDoS 高防包](https://cloud.tencent.com/document/product/1021) | 2023-01-13 01:19:41 |
|
|
75
|
+
| dbbrain | [数据库智能管家 DBbrain](https://cloud.tencent.com/document/product/1130) | 2023-03-09 01:20:41 |
|
|
76
|
+
| dbdc | [云数据库独享集群](https://cloud.tencent.com/document/product/1322) | 2022-11-23 06:23:05 |
|
|
77
|
+
| dc | [专线接入](https://cloud.tencent.com/document/product/216) | 2022-10-26 06:29:47 |
|
|
78
|
+
| dcdb | [TDSQL MySQL 版](https://cloud.tencent.com/document/product/557) | 2023-03-09 01:21:10 |
|
|
79
|
+
| dlc | [数据湖计算 DLC](https://cloud.tencent.com/document/product/1342) | 2023-03-10 01:29:04 |
|
|
80
|
+
| dnspod | [DNSPod](https://cloud.tencent.com/document/product/1427) | 2023-02-27 01:20:45 |
|
|
81
|
+
| domain | [域名注册](https://cloud.tencent.com/document/product/242) | 2023-03-07 01:21:01 |
|
|
82
|
+
| drm | [数字版权管理](https://cloud.tencent.com/document/product/1000) | 2022-04-04 06:38:48 |
|
|
83
|
+
| ds | [文档服务](https://cloud.tencent.com/document/product/869) | 2023-02-01 01:21:28 |
|
|
84
|
+
| dtf | [分布式事务](https://cloud.tencent.com/document/product/1224) | 2022-04-04 06:38:57 |
|
|
85
|
+
| dts | [数据传输服务](https://cloud.tencent.com/document/product/571) | 2023-03-09 01:22:47 |
|
|
86
|
+
| eb | [事件总线](https://cloud.tencent.com/document/product/1359) | 2023-03-09 01:23:03 |
|
|
87
|
+
| ecc | [英文作文批改](https://cloud.tencent.com/document/product/1076) | 2022-04-04 06:39:27 |
|
|
88
|
+
| ecdn | [全站加速网络](https://cloud.tencent.com/document/product/570) | 2022-04-08 06:06:57 |
|
|
89
|
+
| ecm | [边缘计算机器](https://cloud.tencent.com/document/product/1108) | 2023-03-10 01:30:58 |
|
|
90
|
+
| eiam | [数字身份管控平台(员工版)](https://cloud.tencent.com/document/product/1442) | 2022-05-13 06:11:29 |
|
|
91
|
+
| eis | [数据连接器](https://cloud.tencent.com/document/product/1270) | 2022-11-16 06:22:42 |
|
|
92
|
+
| emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2023-03-09 01:24:21 |
|
|
93
|
+
| es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2023-03-09 01:25:15 |
|
|
94
|
+
| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2023-03-10 01:32:25 |
|
|
95
|
+
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2023-03-10 01:32:46 |
|
|
96
|
+
| facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2023-02-27 01:25:30 |
|
|
97
|
+
| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2023-03-09 01:26:07 |
|
|
98
|
+
| fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2023-02-02 01:28:41 |
|
|
99
|
+
| ft | [人像变换](https://cloud.tencent.com/document/product/1202) | 2022-04-04 06:43:12 |
|
|
100
|
+
| gaap | [全球应用加速](https://cloud.tencent.com/document/product/608) | 2023-03-09 01:26:29 |
|
|
101
|
+
| gme | [游戏多媒体引擎](https://cloud.tencent.com/document/product/607) | 2023-03-06 01:22:24 |
|
|
102
|
+
| goosefs | [数据加速器 GooseFS](https://cloud.tencent.com/document/product/1424) | 2023-02-02 16:45:50 |
|
|
103
|
+
| gpm | [游戏玩家匹配](https://cloud.tencent.com/document/product/1294) | 2022-07-11 06:12:36 |
|
|
104
|
+
| gs | [云游戏](https://cloud.tencent.com/document/product/1162) | 2023-03-10 01:34:12 |
|
|
105
|
+
| gse | [游戏服务器伸缩](https://cloud.tencent.com/document/product/1165) | 2022-07-11 06:12:44 |
|
|
106
|
+
| habo | [](https://cloud.tencent.com/document/product) | 2019-05-09 19:37:22 |
|
|
107
|
+
| hasim | [高可用物联网卡](https://cloud.tencent.com/document/product/1482) | 2023-03-03 01:21:56 |
|
|
108
|
+
| hcm | [数学作业批改](https://cloud.tencent.com/document/product/1004) | 2023-01-12 01:21:36 |
|
|
109
|
+
| iai | [人脸识别](https://cloud.tencent.com/document/product/867) | 2023-02-10 01:38:04 |
|
|
110
|
+
| ic | [图片瘦身](https://cloud.tencent.com/document/product/636) | 2023-03-02 01:23:21 |
|
|
111
|
+
| icr | [对话机器人](https://cloud.tencent.com/document/product/1268) | 2022-04-13 06:46:31 |
|
|
112
|
+
| ie | [智能编辑](https://cloud.tencent.com/document/product/1186) | 2022-10-25 06:37:05 |
|
|
113
|
+
| iecp | [物联网边缘计算平台](https://cloud.tencent.com/document/product/1118) | 2022-04-12 06:15:04 |
|
|
114
|
+
| iir | [智能识图](https://cloud.tencent.com/document/product/1217) | 2022-04-04 06:48:05 |
|
|
115
|
+
| ims | [图片内容安全](https://cloud.tencent.com/document/product/1125) | 2023-03-01 01:30:09 |
|
|
116
|
+
| iot | [加速物联网套件](https://cloud.tencent.com/document/product/568) | 2022-04-04 06:48:08 |
|
|
117
|
+
| iotcloud | [物联网通信](https://cloud.tencent.com/document/product/634) | 2023-03-10 01:36:02 |
|
|
118
|
+
| iotexplorer | [物联网开发平台](https://cloud.tencent.com/document/product/1081) | 2022-12-12 01:29:57 |
|
|
119
|
+
| iottid | [物联网设备身份认证](https://cloud.tencent.com/document/product/1086) | 2022-04-04 06:49:46 |
|
|
120
|
+
| iotvideo | [物联网智能视频服务](https://cloud.tencent.com/document/product/1131) | 2023-03-08 01:28:05 |
|
|
121
|
+
| iotvideoindustry | [物联网智能视频服务(行业版)](https://cloud.tencent.com/document/product/1361) | 2022-11-17 06:31:48 |
|
|
122
|
+
| irp | [智能推荐平台](https://cloud.tencent.com/document/product/1541) | 2023-03-10 01:38:31 |
|
|
123
|
+
| ivld | [媒体智能标签](https://cloud.tencent.com/document/product/1509) | 2022-10-28 11:32:11 |
|
|
124
|
+
| keewidb | [云数据库 KeeWiDB](https://cloud.tencent.com/document/product/1520) | 2023-03-01 01:32:51 |
|
|
125
|
+
| kms | [密钥管理系统](https://cloud.tencent.com/document/product/573) | 2023-03-03 01:26:52 |
|
|
126
|
+
| lcic | [低代码互动课堂](https://cloud.tencent.com/document/product/1639) | 2023-03-10 01:39:16 |
|
|
127
|
+
| lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2023-03-09 01:32:16 |
|
|
128
|
+
| live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2023-03-08 01:36:32 |
|
|
129
|
+
| lowcode | [云开发低码](https://cloud.tencent.com/document/product/1301) | 2022-04-04 06:56:51 |
|
|
130
|
+
| lp | [登录保护](https://cloud.tencent.com/document/product/1190) | 2022-04-04 06:56:52 |
|
|
131
|
+
| mariadb | [云数据库 MariaDB](https://cloud.tencent.com/document/product/237) | 2023-03-09 01:33:22 |
|
|
132
|
+
| market | [云市场](https://cloud.tencent.com/document/product/306) | 2022-04-04 06:57:43 |
|
|
133
|
+
| memcached | [云数据库Memcached](https://cloud.tencent.com/document/product/241) | 2022-10-31 06:39:12 |
|
|
134
|
+
| mgobe | [游戏联机对战引擎](https://cloud.tencent.com/document/product/1038) | 2022-07-08 06:11:32 |
|
|
135
|
+
| mmps | [小程序安全](https://cloud.tencent.com/document/product/1223) | 2023-01-10 01:33:47 |
|
|
136
|
+
| mna | [移动网络加速](https://cloud.tencent.com/document/product/1385) | 2023-02-24 01:20:12 |
|
|
137
|
+
| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2023-03-09 01:34:01 |
|
|
138
|
+
| monitor | [腾讯云可观测平台](https://cloud.tencent.com/document/product/248) | 2023-03-10 01:41:28 |
|
|
139
|
+
| mps | [媒体处理](https://cloud.tencent.com/document/product/862) | 2023-03-09 14:45:43 |
|
|
140
|
+
| mrs | [医疗报告结构化](https://cloud.tencent.com/document/product/1314) | 2023-03-02 01:30:06 |
|
|
141
|
+
| ms | [移动应用安全](https://cloud.tencent.com/document/product/283) | 2023-01-11 01:32:47 |
|
|
142
|
+
| msp | [迁移服务平台](https://cloud.tencent.com/document/product/659) | 2022-04-04 07:00:13 |
|
|
143
|
+
| mvj | [营销价值判断](https://cloud.tencent.com/document/product) | 2020-03-19 08:11:44 |
|
|
144
|
+
| nlp | [自然语言处理](https://cloud.tencent.com/document/product/271) | 2023-02-15 01:45:01 |
|
|
145
|
+
| npp | [号码保护](https://cloud.tencent.com/document/product) | 2020-04-22 08:00:22 |
|
|
146
|
+
| oceanus | [流计算 Oceanus](https://cloud.tencent.com/document/product/849) | 2023-03-09 01:40:49 |
|
|
147
|
+
| ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2023-03-03 01:34:33 |
|
|
148
|
+
| organization | [集团账号管理](https://cloud.tencent.com/document/product/850) | 2023-02-17 04:46:25 |
|
|
149
|
+
| partners | [渠道合作伙伴](https://cloud.tencent.com/document/product/563) | 2023-02-20 01:44:36 |
|
|
150
|
+
| pds | [私域安全](https://cloud.tencent.com/document/product/1473) | 2022-04-04 07:02:02 |
|
|
151
|
+
| postgres | [云数据库 PostgreSQL](https://cloud.tencent.com/document/product/409) | 2023-03-09 01:41:55 |
|
|
152
|
+
| privatedns | [私有域解析 Private DNS](https://cloud.tencent.com/document/product/1338) | 2022-12-09 01:52:05 |
|
|
153
|
+
| pts | [云压测](https://cloud.tencent.com/document/product/1484) | 2023-03-09 01:42:26 |
|
|
154
|
+
| rce | [全栈式风控引擎](https://cloud.tencent.com/document/product/1343) | 2022-09-23 06:43:17 |
|
|
155
|
+
| redis | [云数据库Redis](https://cloud.tencent.com/document/product/239) | 2023-03-09 01:43:14 |
|
|
156
|
+
| region | [地域管理系统](https://cloud.tencent.com/document/product/1596) | 2023-03-09 01:43:43 |
|
|
157
|
+
| rkp | [风险探针](https://cloud.tencent.com/document/product/1169) | 2022-04-04 07:04:04 |
|
|
158
|
+
| rp | [注册保护](https://cloud.tencent.com/document/product/1191) | 2022-04-04 07:04:06 |
|
|
159
|
+
| rum | [前端性能监控](https://cloud.tencent.com/document/product/1464) | 2023-03-09 01:43:49 |
|
|
160
|
+
| scf | [云函数](https://cloud.tencent.com/document/product/583) | 2023-03-09 01:45:58 |
|
|
161
|
+
| ses | [邮件推送](https://cloud.tencent.com/document/product/1288) | 2023-03-06 01:34:35 |
|
|
162
|
+
| smh | [智能媒资托管](https://cloud.tencent.com/document/product/1339) | 2022-11-23 06:47:21 |
|
|
163
|
+
| smpn | [营销号码安全](https://cloud.tencent.com/document/product/1127) | 2022-04-04 07:05:41 |
|
|
164
|
+
| sms | [短信](https://cloud.tencent.com/document/product/382) | 2022-12-28 01:09:31 |
|
|
165
|
+
| soe | [智聆口语评测](https://cloud.tencent.com/document/product/884) | 2022-11-07 06:33:46 |
|
|
166
|
+
| solar | [智汇零售](https://cloud.tencent.com/document/product) | 2020-03-19 08:01:59 |
|
|
167
|
+
| sqlserver | [云数据库 SQL Server](https://cloud.tencent.com/document/product/238) | 2023-03-09 01:46:51 |
|
|
168
|
+
| ssa | [安全运营中心](https://cloud.tencent.com/document/product/664) | 2023-02-21 02:01:02 |
|
|
169
|
+
| ssl | [SSL 证书](https://cloud.tencent.com/document/product/400) | 2023-03-08 01:52:09 |
|
|
170
|
+
| sslpod | [证书监控 SSLPod](https://cloud.tencent.com/document/product/1084) | 2023-03-02 01:35:41 |
|
|
171
|
+
| ssm | [凭据管理系统](https://cloud.tencent.com/document/product/1140) | 2022-10-20 06:38:33 |
|
|
172
|
+
| sts | [安全凭证服务](https://cloud.tencent.com/document/product/1312) | 2023-03-09 01:47:55 |
|
|
173
|
+
| taf | [流量反欺诈](https://cloud.tencent.com/document/product/1031) | 2022-09-12 06:39:19 |
|
|
174
|
+
| tag | [标签](https://cloud.tencent.com/document/product/651) | 2023-03-08 01:52:44 |
|
|
175
|
+
| tan | [碳引擎](https://cloud.tencent.com/document/product/1498) | 2022-07-19 06:17:34 |
|
|
176
|
+
| tat | [自动化助手](https://cloud.tencent.com/document/product/1340) | 2023-03-09 01:48:15 |
|
|
177
|
+
| tav | [文件检测](https://cloud.tencent.com/document/product) | 2019-11-28 22:10:04 |
|
|
178
|
+
| tbaas | [腾讯云区块链服务平台 TBaaS](https://cloud.tencent.com/document/product/663) | 2023-02-02 01:47:33 |
|
|
179
|
+
| tbm | [](https://cloud.tencent.com/document/product) | 2019-03-29 14:49:11 |
|
|
180
|
+
| tbp | [腾讯智能对话平台](https://cloud.tencent.com/document/product/1060) | 2022-04-04 07:09:07 |
|
|
181
|
+
| tcaplusdb | [游戏数据库 TcaplusDB](https://cloud.tencent.com/document/product/596) | 2023-03-10 01:48:39 |
|
|
182
|
+
| tcb | [云开发 CloudBase](https://cloud.tencent.com/document/product/876) | 2023-03-07 01:44:06 |
|
|
183
|
+
| tcbr | [云托管 CloudBase Run](https://cloud.tencent.com/document/product/1243) | 2023-03-08 01:54:20 |
|
|
184
|
+
| tcex | [腾讯云释义](https://cloud.tencent.com/document/product/1266) | 2022-07-21 06:17:29 |
|
|
185
|
+
| tci | [腾讯智学课堂分析](https://cloud.tencent.com/document/product) | 2020-08-24 08:06:03 |
|
|
186
|
+
| tcm | [服务网格](https://cloud.tencent.com/document/product/1261) | 2023-03-09 01:49:28 |
|
|
187
|
+
| tcr | [容器镜像服务](https://cloud.tencent.com/document/product/1141) | 2023-03-09 01:49:37 |
|
|
188
|
+
| tcss | [容器安全服务](https://cloud.tencent.com/document/product/1285) | 2023-03-10 01:50:09 |
|
|
189
|
+
| tdcpg | [TDSQL-C PostgreSQL 版](https://cloud.tencent.com/document/product/1556) | 2022-10-21 06:47:14 |
|
|
190
|
+
| tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2023-01-31 01:58:44 |
|
|
191
|
+
| tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2023-03-09 02:20:30 |
|
|
192
|
+
| tds | [设备安全](https://cloud.tencent.com/document/product/1628) | 2022-12-06 07:10:10 |
|
|
193
|
+
| tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2023-03-02 01:40:29 |
|
|
194
|
+
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2023-03-03 01:53:02 |
|
|
195
|
+
| thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2023-02-28 02:19:52 |
|
|
196
|
+
| tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
|
|
197
|
+
| tic | [资源编排 TIC](https://cloud.tencent.com/document/product/1213) | 2022-10-31 06:55:14 |
|
|
198
|
+
| ticm | [智能鉴黄](https://cloud.tencent.com/document/product/864) | 2021-01-07 08:08:15 |
|
|
199
|
+
| tics | [威胁情报云查服务](https://cloud.tencent.com/document/product/1013) | 2022-04-04 07:16:59 |
|
|
200
|
+
| tiems | [腾讯云 TI 平台 TI-EMS ](https://cloud.tencent.com/document/product/1120) | 2022-07-19 06:19:39 |
|
|
201
|
+
| tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2023-02-08 02:09:17 |
|
|
202
|
+
| tione | [TI-ONE 训练平台](https://cloud.tencent.com/document/product/851) | 2023-03-03 01:55:44 |
|
|
203
|
+
| tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2023-01-16 02:13:33 |
|
|
204
|
+
| tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2023-03-10 02:16:26 |
|
|
205
|
+
| tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 |
|
|
206
|
+
| tms | [文本内容安全](https://cloud.tencent.com/document/product/1124) | 2022-11-18 06:55:59 |
|
|
207
|
+
| tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2023-01-09 01:52:45 |
|
|
208
|
+
| trdp | [流量风险决策平台](https://cloud.tencent.com/document/product/1604) | 2022-12-07 07:14:03 |
|
|
209
|
+
| trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2023-01-31 02:06:12 |
|
|
210
|
+
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2023-03-08 02:20:49 |
|
|
211
|
+
| tse | [微服务引擎 TSE](https://cloud.tencent.com/document/product/1364) | 2023-03-10 02:30:31 |
|
|
212
|
+
| tsf | [微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2023-02-23 02:05:41 |
|
|
213
|
+
| tsw | [微服务观测平台 TSW](https://cloud.tencent.com/document/product/1311) | 2022-10-31 06:59:44 |
|
|
214
|
+
| tts | [语音合成](https://cloud.tencent.com/document/product/1073) | 2023-02-15 02:10:16 |
|
|
215
|
+
| ump | [客流数字化平台](https://cloud.tencent.com/document/product/1320) | 2022-04-04 07:22:44 |
|
|
216
|
+
| vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2022-11-16 06:46:30 |
|
|
217
|
+
| vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2022-04-04 07:22:54 |
|
|
218
|
+
| vod | [云点播](https://cloud.tencent.com/document/product/266) | 2023-03-10 02:32:17 |
|
|
219
|
+
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2023-03-09 02:29:43 |
|
|
220
|
+
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2023-03-10 02:38:39 |
|
|
221
|
+
| wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2022-10-12 07:10:28 |
|
|
222
|
+
| wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2023-03-08 02:25:19 |
|
|
223
|
+
| wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
|
|
224
|
+
| yinsuda | [音速达直播音乐版权引擎](https://cloud.tencent.com/document/product/1592) | 2023-02-24 01:40:46 |
|
|
225
|
+
| youmall | [](https://cloud.tencent.com/document/product) | 2019-01-11 11:24:15 |
|
|
226
|
+
| yunjing | [主机安全](https://cloud.tencent.com/document/product) | 2020-09-15 08:08:47 |
|
|
227
|
+
| yunsou | [腾讯云搜TCS](https://cloud.tencent.com/document/product/270) | 2022-10-31 07:04:25 |
|
|
228
|
+
| zj | [珠玑](https://cloud.tencent.com/document/product) | 2020-11-17 08:10:59 |
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./services"
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
|
|
19
|
+
import {
|
|
20
|
+
ImageToImageResponse,
|
|
21
|
+
LogoParam,
|
|
22
|
+
ImageToImageRequest,
|
|
23
|
+
LogoRect,
|
|
24
|
+
ResultConfig,
|
|
25
|
+
TextToImageRequest,
|
|
26
|
+
TextToImageResponse,
|
|
27
|
+
} from "./aiart_models"
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* aiart client
|
|
31
|
+
* @class
|
|
32
|
+
*/
|
|
33
|
+
export class Client extends TencentCloudCommon.AbstractClient {
|
|
34
|
+
constructor(clientConfig: TencentCloudCommon.ClientConfig) {
|
|
35
|
+
super("aiart.tencentcloudapi.com", "2022-12-29", clientConfig)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 智能文生图接口将根据输入的描述文本,智能生成与之相关的结果图。
|
|
40
|
+
输入:512个字符以内的描述性文本,推荐使用中文。
|
|
41
|
+
输出:对应风格及分辨率的 AI 生成图。
|
|
42
|
+
可支持的风格详见 [智能文生图风格列表](https://cloud.tencent.com/document/product/1668/86249),请将列表中的“风格编号”传入 Styles 数组,建议选择一种风格。
|
|
43
|
+
|
|
44
|
+
请求频率限制为1次/秒。
|
|
45
|
+
*/
|
|
46
|
+
async TextToImage(
|
|
47
|
+
req: TextToImageRequest,
|
|
48
|
+
cb?: (error: string, rep: TextToImageResponse) => void
|
|
49
|
+
): Promise<TextToImageResponse> {
|
|
50
|
+
return this.request("TextToImage", req, cb)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* 智能图生图接口将根据输入的图片及辅助描述文本,智能生成与之相关的结果图。
|
|
55
|
+
输入:单边分辨率小于2000、转成 Base64 字符串后小于 5MB 的图片,建议同时输入描述文本。
|
|
56
|
+
输出:对应风格及分辨率的 AI 生成图。
|
|
57
|
+
可支持的风格详见 [智能图生图风格列表](https://cloud.tencent.com/document/product/1668/86250),请将列表中的“风格编号”传入 Styles 数组,建议选择一种风格。
|
|
58
|
+
|
|
59
|
+
请求频率限制为1次/秒。
|
|
60
|
+
*/
|
|
61
|
+
async ImageToImage(
|
|
62
|
+
req: ImageToImageRequest,
|
|
63
|
+
cb?: (error: string, rep: ImageToImageResponse) => void
|
|
64
|
+
): Promise<ImageToImageResponse> {
|
|
65
|
+
return this.request("ImageToImage", req, cb)
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
|
11
|
+
* software distributed under the License is distributed on an
|
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
* KIND, either express or implied. See the License for the
|
|
14
|
+
* specific language governing permissions and limitations
|
|
15
|
+
* under the License.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* ImageToImage返回参数结构体
|
|
20
|
+
*/
|
|
21
|
+
export interface ImageToImageResponse {
|
|
22
|
+
/**
|
|
23
|
+
* 返回的生成图 Base64 编码。
|
|
24
|
+
*/
|
|
25
|
+
ResultImage?: string
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
29
|
+
*/
|
|
30
|
+
RequestId?: string
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* logo参数
|
|
35
|
+
*/
|
|
36
|
+
export interface LogoParam {
|
|
37
|
+
/**
|
|
38
|
+
* 水印url
|
|
39
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
40
|
+
*/
|
|
41
|
+
LogoUrl?: string
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* 水印base64,url和base64二选一传入
|
|
45
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
46
|
+
*/
|
|
47
|
+
LogoImage?: string
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* 水印图片位于融合结果图中的坐标,将按照坐标对标识图片进行位置和大小的拉伸匹配
|
|
51
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
52
|
+
*/
|
|
53
|
+
LogoRect?: LogoRect
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* ImageToImage请求参数结构体
|
|
58
|
+
*/
|
|
59
|
+
export interface ImageToImageRequest {
|
|
60
|
+
/**
|
|
61
|
+
* 输入图 Base64 数据。
|
|
62
|
+
算法将根据输入的图片,结合文本描述智能生成与之相关的图像。
|
|
63
|
+
Base64 和 Url 必须提供一个,如果都提供以 Base64 为准。
|
|
64
|
+
图片限制:单边分辨率小于2000,转成 Base64 字符串后小于 5MB。
|
|
65
|
+
*/
|
|
66
|
+
InputImage?: string
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* 输入图 Url。
|
|
70
|
+
算法将根据输入的图片,结合文本描述智能生成与之相关的图像。
|
|
71
|
+
Base64 和 Url 必须提供一个,如果都提供以 Base64 为准。
|
|
72
|
+
图片限制:单边分辨率小于2000,转成 Base64 字符串后小于 5MB。
|
|
73
|
+
*/
|
|
74
|
+
InputUrl?: string
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* 文本描述。
|
|
78
|
+
用于在输入图的基础上引导生成图效果,建议详细描述画面主体、细节、场景等,文本描述越丰富,生成效果越精美。推荐使用中文。最多支持512个 utf-8 字符。
|
|
79
|
+
注意:如果不输入任何文本描述,可能导致较差的效果,建议根据期望的效果输入相应的文本描述。
|
|
80
|
+
*/
|
|
81
|
+
Prompt?: string
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* 反向文本描述。
|
|
85
|
+
用于一定程度上从反面引导模型生成的走向,减少生成结果中出现描述内容的可能,但不能完全杜绝。
|
|
86
|
+
推荐使用中文。最多可传512个 utf-8 字符。
|
|
87
|
+
*/
|
|
88
|
+
NegativePrompt?: string
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* 绘画风格。
|
|
92
|
+
请在 [智能图生图风格列表](https://cloud.tencent.com/document/product/1668/86250) 中选择期望的风格,传入风格编号。
|
|
93
|
+
推荐使用且只使用一种风格。不传默认使用201(日系动漫风格)。
|
|
94
|
+
如果想要探索风格列表之外的风格,也可以尝试在 Prompt 中输入其他的风格描述。
|
|
95
|
+
*/
|
|
96
|
+
Styles?: Array<string>
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* 生成图结果的配置,包括输出图片分辨率和尺寸等。
|
|
100
|
+
*/
|
|
101
|
+
ResultConfig?: ResultConfig
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* 为生成结果图添加标识的开关,默认为1。
|
|
105
|
+
1:添加标识。
|
|
106
|
+
0:不添加标识。
|
|
107
|
+
其他数值:默认按1处理。
|
|
108
|
+
建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。
|
|
109
|
+
*/
|
|
110
|
+
LogoAdd?: number
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* 标识内容设置。
|
|
114
|
+
默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
|
115
|
+
*/
|
|
116
|
+
LogoParam?: LogoParam
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* 生成自由度。
|
|
120
|
+
Strength 值越小,生成图和原图越接近。取值范围0~1,不传默认为0.6。
|
|
121
|
+
*/
|
|
122
|
+
Strength?: number
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* 输入框
|
|
127
|
+
*/
|
|
128
|
+
export interface LogoRect {
|
|
129
|
+
/**
|
|
130
|
+
* 左上角X坐标
|
|
131
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
132
|
+
*/
|
|
133
|
+
X?: number
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* 左上角Y坐标
|
|
137
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
138
|
+
*/
|
|
139
|
+
Y?: number
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* 方框宽度
|
|
143
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
144
|
+
*/
|
|
145
|
+
Width?: number
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* 方框高度
|
|
149
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
150
|
+
*/
|
|
151
|
+
Height?: number
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* 返回结果配置
|
|
156
|
+
*/
|
|
157
|
+
export interface ResultConfig {
|
|
158
|
+
/**
|
|
159
|
+
* 生成图分辨率
|
|
160
|
+
支持生成以下不同分辨率的图片,对应1:1方图、3:4竖图、4:3横图三种尺寸规格,不传默认为"768:768"
|
|
161
|
+
取值:
|
|
162
|
+
● 768:768
|
|
163
|
+
● 768:1024
|
|
164
|
+
● 1024:768
|
|
165
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
166
|
+
*/
|
|
167
|
+
Resolution?: string
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* TextToImage请求参数结构体
|
|
172
|
+
*/
|
|
173
|
+
export interface TextToImageRequest {
|
|
174
|
+
/**
|
|
175
|
+
* 文本描述。
|
|
176
|
+
算法将根据输入的文本智能生成与之相关的图像。建议详细描述画面主体、细节、场景等,文本描述越丰富,生成效果越精美。
|
|
177
|
+
不能为空,推荐使用中文。最多可传512个 utf-8 字符。
|
|
178
|
+
*/
|
|
179
|
+
Prompt: string
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* 反向文本描述。
|
|
183
|
+
用于一定程度上从反面引导模型生成的走向,减少生成结果中出现描述内容的可能,但不能完全杜绝。
|
|
184
|
+
推荐使用中文。最多可传512个 utf-8 字符。
|
|
185
|
+
*/
|
|
186
|
+
NegativePrompt?: string
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* 绘画风格。
|
|
190
|
+
请在 [智能文生图风格列表](https://cloud.tencent.com/document/product/1668/86249) 中选择期望的风格,传入风格编号。
|
|
191
|
+
推荐使用且只使用一种风格。不传默认使用201(日系动漫风格)。
|
|
192
|
+
如果想要探索风格列表之外的风格,也可以尝试在 Prompt 中输入其他的风格描述。
|
|
193
|
+
*/
|
|
194
|
+
Styles?: Array<string>
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* 生成图结果的配置,包括输出图片分辨率和尺寸等。
|
|
198
|
+
*/
|
|
199
|
+
ResultConfig?: ResultConfig
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* 为生成结果图添加标识的开关,默认为1。
|
|
203
|
+
1:添加标识。
|
|
204
|
+
0:不添加标识。
|
|
205
|
+
其他数值:默认按1处理。
|
|
206
|
+
建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。
|
|
207
|
+
*/
|
|
208
|
+
LogoAdd?: number
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* 标识内容设置。
|
|
212
|
+
默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
|
213
|
+
*/
|
|
214
|
+
LogoParam?: LogoParam
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* TextToImage返回参数结构体
|
|
219
|
+
*/
|
|
220
|
+
export interface TextToImageResponse {
|
|
221
|
+
/**
|
|
222
|
+
* 返回的生成图 Base64 编码。
|
|
223
|
+
*/
|
|
224
|
+
ResultImage?: string
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
228
|
+
*/
|
|
229
|
+
RequestId?: string
|
|
230
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { aiart } from "./aiart"
|