tencentcloud-sdk-aiart 3.0.1186 → 3.0.1188
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20221229/client.rb +48 -0
- data/lib/v20221229/models.rb +110 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e1570fb18c22d82d6bb7603a67f7f4e78176d789
|
|
4
|
+
data.tar.gz: 69902454a9b4e9de8b530ff926e3271890daf543
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d5bdbf9f85fd597793799c3bcba643cc81870465cac4f0a978a818471164a2d336f37f7cb74cd64d6983c596d3165f56ec0a7519b27ec7a293928b2fed0ed2f7
|
|
7
|
+
data.tar.gz: eadfc33bfb8a246730df71ec1b20bcf629eef02250fe30ed38891f17d6d83d5c8b219fdf8d24d187c2c021a3d23d9cf91d526c4f7a6aa6ca91a4a7d4f466010b
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1188
|
data/lib/v20221229/client.rb
CHANGED
|
@@ -55,6 +55,30 @@ module TencentCloud
|
|
|
55
55
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
+
# 查询图片特效任务
|
|
59
|
+
|
|
60
|
+
# @param request: Request instance for DescribeTemplateToImageJob.
|
|
61
|
+
# @type request: :class:`Tencentcloud::aiart::V20221229::DescribeTemplateToImageJobRequest`
|
|
62
|
+
# @rtype: :class:`Tencentcloud::aiart::V20221229::DescribeTemplateToImageJobResponse`
|
|
63
|
+
def DescribeTemplateToImageJob(request)
|
|
64
|
+
body = send_request('DescribeTemplateToImageJob', request.serialize)
|
|
65
|
+
response = JSON.parse(body)
|
|
66
|
+
if response['Response'].key?('Error') == false
|
|
67
|
+
model = DescribeTemplateToImageJobResponse.new
|
|
68
|
+
model.deserialize(response['Response'])
|
|
69
|
+
model
|
|
70
|
+
else
|
|
71
|
+
code = response['Response']['Error']['Code']
|
|
72
|
+
message = response['Response']['Error']['Message']
|
|
73
|
+
reqid = response['Response']['RequestId']
|
|
74
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
75
|
+
end
|
|
76
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
77
|
+
raise e
|
|
78
|
+
rescue StandardError => e
|
|
79
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
80
|
+
end
|
|
81
|
+
|
|
58
82
|
# 百变头像接口将根据输入的人像照片,生成风格百变的头像。
|
|
59
83
|
# 百变头像默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
60
84
|
|
|
@@ -489,6 +513,30 @@ module TencentCloud
|
|
|
489
513
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
490
514
|
end
|
|
491
515
|
|
|
516
|
+
# 提交图片特效任务
|
|
517
|
+
|
|
518
|
+
# @param request: Request instance for SubmitTemplateToImageJob.
|
|
519
|
+
# @type request: :class:`Tencentcloud::aiart::V20221229::SubmitTemplateToImageJobRequest`
|
|
520
|
+
# @rtype: :class:`Tencentcloud::aiart::V20221229::SubmitTemplateToImageJobResponse`
|
|
521
|
+
def SubmitTemplateToImageJob(request)
|
|
522
|
+
body = send_request('SubmitTemplateToImageJob', request.serialize)
|
|
523
|
+
response = JSON.parse(body)
|
|
524
|
+
if response['Response'].key?('Error') == false
|
|
525
|
+
model = SubmitTemplateToImageJobResponse.new
|
|
526
|
+
model.deserialize(response['Response'])
|
|
527
|
+
model
|
|
528
|
+
else
|
|
529
|
+
code = response['Response']['Error']['Code']
|
|
530
|
+
message = response['Response']['Error']['Message']
|
|
531
|
+
reqid = response['Response']['RequestId']
|
|
532
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
533
|
+
end
|
|
534
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
535
|
+
raise e
|
|
536
|
+
rescue StandardError => e
|
|
537
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
538
|
+
end
|
|
539
|
+
|
|
492
540
|
# 混元生图接口,基于混元大模型,根据输入的文本描述快速生成图片。
|
|
493
541
|
# 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
494
542
|
|
data/lib/v20221229/models.rb
CHANGED
|
@@ -96,6 +96,55 @@ module TencentCloud
|
|
|
96
96
|
end
|
|
97
97
|
end
|
|
98
98
|
|
|
99
|
+
# DescribeTemplateToImageJob请求参数结构体
|
|
100
|
+
class DescribeTemplateToImageJobRequest < TencentCloud::Common::AbstractModel
|
|
101
|
+
# @param JobId: 任务 ID。
|
|
102
|
+
# @type JobId: String
|
|
103
|
+
|
|
104
|
+
attr_accessor :JobId
|
|
105
|
+
|
|
106
|
+
def initialize(jobid=nil)
|
|
107
|
+
@JobId = jobid
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
def deserialize(params)
|
|
111
|
+
@JobId = params['JobId']
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# DescribeTemplateToImageJob返回参数结构体
|
|
116
|
+
class DescribeTemplateToImageJobResponse < TencentCloud::Common::AbstractModel
|
|
117
|
+
# @param Status: 当前任务状态码:
|
|
118
|
+
# 1:等待中、2:运行中、4:处理失败、5:处理完成。
|
|
119
|
+
# @type Status: String
|
|
120
|
+
# @param ErrorCode: 任务处理失败错误码。
|
|
121
|
+
# @type ErrorCode: String
|
|
122
|
+
# @param ErrorMessage: 任务处理失败错误信息。
|
|
123
|
+
# @type ErrorMessage: String
|
|
124
|
+
# @param ResultImage: 生成图 URL 列表,有效期1小时,请及时保存。
|
|
125
|
+
# @type ResultImage: Array
|
|
126
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
127
|
+
# @type RequestId: String
|
|
128
|
+
|
|
129
|
+
attr_accessor :Status, :ErrorCode, :ErrorMessage, :ResultImage, :RequestId
|
|
130
|
+
|
|
131
|
+
def initialize(status=nil, errorcode=nil, errormessage=nil, resultimage=nil, requestid=nil)
|
|
132
|
+
@Status = status
|
|
133
|
+
@ErrorCode = errorcode
|
|
134
|
+
@ErrorMessage = errormessage
|
|
135
|
+
@ResultImage = resultimage
|
|
136
|
+
@RequestId = requestid
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
def deserialize(params)
|
|
140
|
+
@Status = params['Status']
|
|
141
|
+
@ErrorCode = params['ErrorCode']
|
|
142
|
+
@ErrorMessage = params['ErrorMessage']
|
|
143
|
+
@ResultImage = params['ResultImage']
|
|
144
|
+
@RequestId = params['RequestId']
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
|
|
99
148
|
# 融合信息
|
|
100
149
|
class FaceInfo < TencentCloud::Common::AbstractModel
|
|
101
150
|
# @param ImageUrls: 用户图 URL 列表
|
|
@@ -1439,6 +1488,67 @@ module TencentCloud
|
|
|
1439
1488
|
end
|
|
1440
1489
|
end
|
|
1441
1490
|
|
|
1491
|
+
# SubmitTemplateToImageJob请求参数结构体
|
|
1492
|
+
class SubmitTemplateToImageJobRequest < TencentCloud::Common::AbstractModel
|
|
1493
|
+
# @param Image: 算法将根据输入的图片,结合文本描述智能生成与之相关的图像。
|
|
1494
|
+
# Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
|
|
1495
|
+
# 图片限制:单边分辨率小于5000且大于50,转成 Base64 字符串后小于 8MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
|
|
1496
|
+
# @type Image: :class:`Tencentcloud::Aiart.v20221229.models.Image`
|
|
1497
|
+
# @param Style: 绘画风格当前仅支持美术馆风格(gallerying)。
|
|
1498
|
+
# @type Style: String
|
|
1499
|
+
# @param LogoAdd: 为生成结果图添加显式水印标识的开关,默认为1。
|
|
1500
|
+
# 1:添加。
|
|
1501
|
+
# 0:不添加。
|
|
1502
|
+
# 其他数值:默认按1处理。
|
|
1503
|
+
# 建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。
|
|
1504
|
+
# @type LogoAdd: Integer
|
|
1505
|
+
# @param LogoParam: 标识内容设置。
|
|
1506
|
+
# 默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
|
1507
|
+
# @type LogoParam: :class:`Tencentcloud::Aiart.v20221229.models.LogoParam`
|
|
1508
|
+
|
|
1509
|
+
attr_accessor :Image, :Style, :LogoAdd, :LogoParam
|
|
1510
|
+
|
|
1511
|
+
def initialize(image=nil, style=nil, logoadd=nil, logoparam=nil)
|
|
1512
|
+
@Image = image
|
|
1513
|
+
@Style = style
|
|
1514
|
+
@LogoAdd = logoadd
|
|
1515
|
+
@LogoParam = logoparam
|
|
1516
|
+
end
|
|
1517
|
+
|
|
1518
|
+
def deserialize(params)
|
|
1519
|
+
unless params['Image'].nil?
|
|
1520
|
+
@Image = Image.new
|
|
1521
|
+
@Image.deserialize(params['Image'])
|
|
1522
|
+
end
|
|
1523
|
+
@Style = params['Style']
|
|
1524
|
+
@LogoAdd = params['LogoAdd']
|
|
1525
|
+
unless params['LogoParam'].nil?
|
|
1526
|
+
@LogoParam = LogoParam.new
|
|
1527
|
+
@LogoParam.deserialize(params['LogoParam'])
|
|
1528
|
+
end
|
|
1529
|
+
end
|
|
1530
|
+
end
|
|
1531
|
+
|
|
1532
|
+
# SubmitTemplateToImageJob返回参数结构体
|
|
1533
|
+
class SubmitTemplateToImageJobResponse < TencentCloud::Common::AbstractModel
|
|
1534
|
+
# @param JobId: 任务 ID。
|
|
1535
|
+
# @type JobId: String
|
|
1536
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1537
|
+
# @type RequestId: String
|
|
1538
|
+
|
|
1539
|
+
attr_accessor :JobId, :RequestId
|
|
1540
|
+
|
|
1541
|
+
def initialize(jobid=nil, requestid=nil)
|
|
1542
|
+
@JobId = jobid
|
|
1543
|
+
@RequestId = requestid
|
|
1544
|
+
end
|
|
1545
|
+
|
|
1546
|
+
def deserialize(params)
|
|
1547
|
+
@JobId = params['JobId']
|
|
1548
|
+
@RequestId = params['RequestId']
|
|
1549
|
+
end
|
|
1550
|
+
end
|
|
1551
|
+
|
|
1442
1552
|
# SubmitTextToImageJob请求参数结构体
|
|
1443
1553
|
class SubmitTextToImageJobRequest < TencentCloud::Common::AbstractModel
|
|
1444
1554
|
# @param Prompt: 文本描述。
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-aiart
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1188
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|