tencentcloud-sdk-aiart 3.0.788 → 3.0.790

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9bb73a3775344f21a341ddf9cd4393e6f8fa2af2
4
- data.tar.gz: a4ae225ad8d12c112b863f8784d91267bdcd726a
3
+ metadata.gz: 69ea5105dcfc4859d1aaa64208a4069d038baadc
4
+ data.tar.gz: d49c6b8d276f6722c14f2c7ddc644bc05040e6bb
5
5
  SHA512:
6
- metadata.gz: a5c54c1afeb310ab4c72aa886f476b5c21cbbb94daf239b39fa3f0c708eaf8300bb4d797d5b8db72ea426d9654f1bd827729866c50e68a34ca0f21411156cfac
7
- data.tar.gz: 464e769ee3158f80a0bf798a4de661d086331a2e907e79b19df77f1318e0a80c2258caadd5a1712690c78b1b91207c572498134ac4f6a0610d880f34379e0330
6
+ metadata.gz: 2b16752b2b95f2e55fb85a94a80ee2f03d974c6c1c8e6d2887cdb96effb1926e5452061d884b8bdae3b2d6364e97deafae9058b497299ae8e8c054244a3cf2a1
7
+ data.tar.gz: c31ac7f59333372dde713128b921dd3a5e471081dc0671c330660fc8ee921d9a917b15afe73b3762b833677dede9439a1423f765e8971abf7587444501225247
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.788
1
+ 3.0.790
@@ -58,6 +58,60 @@ module TencentCloud
58
58
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
59
59
  end
60
60
 
61
+ # 文生图(高级版)接口基于高级版文生图大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
62
+ # 提交任务:输入文本等,提交一个文生图(高级版)异步任务,获得任务 ID。
63
+ # 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
64
+ # 并发任务数(并发)说明:并发任务数指能同时处理的任务数量。文生图(高级版)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
65
+
66
+ # @param request: Request instance for QueryTextToImageProJob.
67
+ # @type request: :class:`Tencentcloud::aiart::V20221229::QueryTextToImageProJobRequest`
68
+ # @rtype: :class:`Tencentcloud::aiart::V20221229::QueryTextToImageProJobResponse`
69
+ def QueryTextToImageProJob(request)
70
+ body = send_request('QueryTextToImageProJob', request.serialize)
71
+ response = JSON.parse(body)
72
+ if response['Response'].key?('Error') == false
73
+ model = QueryTextToImageProJobResponse.new
74
+ model.deserialize(response['Response'])
75
+ model
76
+ else
77
+ code = response['Response']['Error']['Code']
78
+ message = response['Response']['Error']['Message']
79
+ reqid = response['Response']['RequestId']
80
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
81
+ end
82
+ rescue TencentCloud::Common::TencentCloudSDKException => e
83
+ raise e
84
+ rescue StandardError => e
85
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
86
+ end
87
+
88
+ # 文生图(高级版)接口基于高级版文生图大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
89
+ # 提交任务:输入文本等,提交一个文生图(高级版)异步任务,获得任务 ID。
90
+ # 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
91
+ # 并发任务数(并发)说明:并发任务数指能同时处理的任务数量。文生图(高级版)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
92
+
93
+ # @param request: Request instance for SubmitTextToImageProJob.
94
+ # @type request: :class:`Tencentcloud::aiart::V20221229::SubmitTextToImageProJobRequest`
95
+ # @rtype: :class:`Tencentcloud::aiart::V20221229::SubmitTextToImageProJobResponse`
96
+ def SubmitTextToImageProJob(request)
97
+ body = send_request('SubmitTextToImageProJob', request.serialize)
98
+ response = JSON.parse(body)
99
+ if response['Response'].key?('Error') == false
100
+ model = SubmitTextToImageProJobResponse.new
101
+ model.deserialize(response['Response'])
102
+ model
103
+ else
104
+ code = response['Response']['Error']['Code']
105
+ message = response['Response']['Error']['Message']
106
+ reqid = response['Response']['RequestId']
107
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
108
+ end
109
+ rescue TencentCloud::Common::TencentCloudSDKException => e
110
+ raise e
111
+ rescue StandardError => e
112
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
113
+ end
114
+
61
115
  # 智能文生图接口将根据输入的描述文本,智能生成与之相关的结果图。
62
116
  # 输入:256个字符以内的描述性文本,推荐使用中文。
63
117
  # 输出:对应风格及分辨率的 AI 生成图。
@@ -172,6 +172,63 @@ module TencentCloud
172
172
  end
173
173
  end
174
174
 
175
+ # QueryTextToImageProJob请求参数结构体
176
+ class QueryTextToImageProJobRequest < TencentCloud::Common::AbstractModel
177
+ # @param JobId: 任务 ID。
178
+ # @type JobId: String
179
+
180
+ attr_accessor :JobId
181
+
182
+ def initialize(jobid=nil)
183
+ @JobId = jobid
184
+ end
185
+
186
+ def deserialize(params)
187
+ @JobId = params['JobId']
188
+ end
189
+ end
190
+
191
+ # QueryTextToImageProJob返回参数结构体
192
+ class QueryTextToImageProJobResponse < TencentCloud::Common::AbstractModel
193
+ # @param JobStatusCode: 当前任务状态码:
194
+ # 1:排队中、3:处理中、5:处理失败、7:处理完成。
195
+ # @type JobStatusCode: String
196
+ # @param JobStatusMsg: 当前任务状态:排队中、处理中、处理失败或者处理完成。
197
+ # @type JobStatusMsg: String
198
+ # @param JobErrorCode: 任务处理失败错误码。
199
+ # @type JobErrorCode: String
200
+ # @param JobErrorMsg: 任务处理失败错误信息。
201
+ # @type JobErrorMsg: String
202
+ # @param ResultImage: 生成图 URL 列表,有效期1小时,请及时保存。
203
+ # @type ResultImage: Array
204
+ # @param ResultDetails: 结果 detail 数组,Success 代表成功。
205
+ # @type ResultDetails: Array
206
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
207
+ # @type RequestId: String
208
+
209
+ attr_accessor :JobStatusCode, :JobStatusMsg, :JobErrorCode, :JobErrorMsg, :ResultImage, :ResultDetails, :RequestId
210
+
211
+ def initialize(jobstatuscode=nil, jobstatusmsg=nil, joberrorcode=nil, joberrormsg=nil, resultimage=nil, resultdetails=nil, requestid=nil)
212
+ @JobStatusCode = jobstatuscode
213
+ @JobStatusMsg = jobstatusmsg
214
+ @JobErrorCode = joberrorcode
215
+ @JobErrorMsg = joberrormsg
216
+ @ResultImage = resultimage
217
+ @ResultDetails = resultdetails
218
+ @RequestId = requestid
219
+ end
220
+
221
+ def deserialize(params)
222
+ @JobStatusCode = params['JobStatusCode']
223
+ @JobStatusMsg = params['JobStatusMsg']
224
+ @JobErrorCode = params['JobErrorCode']
225
+ @JobErrorMsg = params['JobErrorMsg']
226
+ @ResultImage = params['ResultImage']
227
+ @ResultDetails = params['ResultDetails']
228
+ @RequestId = params['RequestId']
229
+ end
230
+ end
231
+
175
232
  # 返回结果配置
176
233
  class ResultConfig < TencentCloud::Common::AbstractModel
177
234
  # @param Resolution: 生成图分辨率
@@ -192,6 +249,70 @@ module TencentCloud
192
249
  end
193
250
  end
194
251
 
252
+ # SubmitTextToImageProJob请求参数结构体
253
+ class SubmitTextToImageProJobRequest < TencentCloud::Common::AbstractModel
254
+ # @param Prompt: 文本描述。
255
+ # 算法将根据输入的文本智能生成与之相关的图像。
256
+ # 不能为空,推荐使用中文。最多可传100个 utf-8 字符。
257
+ # @type Prompt: String
258
+ # @param Style: 绘画风格。
259
+ # 请在 [文生图(高级版)风格列表](https://cloud.tencent.com/document/product/1668/104567) 中选择期望的风格,传入风格编号。
260
+ # 不传默认不指定风格。
261
+ # @type Style: String
262
+ # @param Resolution: 生成图分辨率。
263
+ # 支持生成以下分辨率的图片: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。
264
+ # @type Resolution: String
265
+ # @param LogoAdd: 为生成结果图添加显式水印标识的开关,默认为1。
266
+ # 1:添加。
267
+ # 0:不添加。
268
+ # 其他数值:默认按1处理。
269
+ # 建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。
270
+ # @type LogoAdd: Integer
271
+ # @param Engine: 文生图引擎,默认使用engine1。
272
+ # 取值:
273
+ # engine1
274
+ # engine2
275
+ # @type Engine: String
276
+
277
+ attr_accessor :Prompt, :Style, :Resolution, :LogoAdd, :Engine
278
+
279
+ def initialize(prompt=nil, style=nil, resolution=nil, logoadd=nil, engine=nil)
280
+ @Prompt = prompt
281
+ @Style = style
282
+ @Resolution = resolution
283
+ @LogoAdd = logoadd
284
+ @Engine = engine
285
+ end
286
+
287
+ def deserialize(params)
288
+ @Prompt = params['Prompt']
289
+ @Style = params['Style']
290
+ @Resolution = params['Resolution']
291
+ @LogoAdd = params['LogoAdd']
292
+ @Engine = params['Engine']
293
+ end
294
+ end
295
+
296
+ # SubmitTextToImageProJob返回参数结构体
297
+ class SubmitTextToImageProJobResponse < TencentCloud::Common::AbstractModel
298
+ # @param JobId: 任务 ID。
299
+ # @type JobId: String
300
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
301
+ # @type RequestId: String
302
+
303
+ attr_accessor :JobId, :RequestId
304
+
305
+ def initialize(jobid=nil, requestid=nil)
306
+ @JobId = jobid
307
+ @RequestId = requestid
308
+ end
309
+
310
+ def deserialize(params)
311
+ @JobId = params['JobId']
312
+ @RequestId = params['RequestId']
313
+ end
314
+ end
315
+
195
316
  # TextToImage请求参数结构体
196
317
  class TextToImageRequest < TencentCloud::Common::AbstractModel
197
318
  # @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.788
4
+ version: 3.0.790
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-21 00:00:00.000000000 Z
11
+ date: 2024-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common