tencentcloud-sdk-vclm 3.0.1177 → 3.0.1187
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/v20240523/client.rb +146 -0
- data/lib/v20240523/models.rb +329 -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: d1adc1c5acaf2805e000a039c263e8a9802fd77b
|
|
4
|
+
data.tar.gz: 41d570b38d49fb43575ad06073c0fb37d90d293d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 87696e386ec5ca56c0642b291e9d2d939947e72dffeace18ad20ebd1738fa66334e1e439f6553dbabd8556c1cbaedc6186851af2979f00bf117031d232012c67
|
|
7
|
+
data.tar.gz: 0c52f4c26dd903b9c733c45de55b4421103c3567f20577819bc1ba939cb5015d7e000c11ccf04cf2e0add26c854b11f1c35f2ba86c4a2d4d4cab1b94a1038ae4
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1187
|
data/lib/v20240523/client.rb
CHANGED
|
@@ -77,6 +77,30 @@ module TencentCloud
|
|
|
77
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
78
78
|
end
|
|
79
79
|
|
|
80
|
+
# 查询混元生视频任务
|
|
81
|
+
|
|
82
|
+
# @param request: Request instance for DescribeHunyuanToVideoJob.
|
|
83
|
+
# @type request: :class:`Tencentcloud::vclm::V20240523::DescribeHunyuanToVideoJobRequest`
|
|
84
|
+
# @rtype: :class:`Tencentcloud::vclm::V20240523::DescribeHunyuanToVideoJobResponse`
|
|
85
|
+
def DescribeHunyuanToVideoJob(request)
|
|
86
|
+
body = send_request('DescribeHunyuanToVideoJob', request.serialize)
|
|
87
|
+
response = JSON.parse(body)
|
|
88
|
+
if response['Response'].key?('Error') == false
|
|
89
|
+
model = DescribeHunyuanToVideoJobResponse.new
|
|
90
|
+
model.deserialize(response['Response'])
|
|
91
|
+
model
|
|
92
|
+
else
|
|
93
|
+
code = response['Response']['Error']['Code']
|
|
94
|
+
message = response['Response']['Error']['Message']
|
|
95
|
+
reqid = response['Response']['RequestId']
|
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
97
|
+
end
|
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
99
|
+
raise e
|
|
100
|
+
rescue StandardError => e
|
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
102
|
+
end
|
|
103
|
+
|
|
80
104
|
# 用于查询图片跳舞任务。图片跳舞能力支持舞蹈动作结合图片生成跳舞视频,满足社交娱乐、互动营销等场景的需求。
|
|
81
105
|
|
|
82
106
|
# @param request: Request instance for DescribeImageAnimateJob.
|
|
@@ -174,6 +198,30 @@ module TencentCloud
|
|
|
174
198
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
175
199
|
end
|
|
176
200
|
|
|
201
|
+
# 用于提交视频编辑任务,支持上传视频、文本及图片素材开展编辑操作,涵盖风格迁移、元素替换、内容增减等核心能力。
|
|
202
|
+
|
|
203
|
+
# @param request: Request instance for DescribeVideoEditJob.
|
|
204
|
+
# @type request: :class:`Tencentcloud::vclm::V20240523::DescribeVideoEditJobRequest`
|
|
205
|
+
# @rtype: :class:`Tencentcloud::vclm::V20240523::DescribeVideoEditJobResponse`
|
|
206
|
+
def DescribeVideoEditJob(request)
|
|
207
|
+
body = send_request('DescribeVideoEditJob', request.serialize)
|
|
208
|
+
response = JSON.parse(body)
|
|
209
|
+
if response['Response'].key?('Error') == false
|
|
210
|
+
model = DescribeVideoEditJobResponse.new
|
|
211
|
+
model.deserialize(response['Response'])
|
|
212
|
+
model
|
|
213
|
+
else
|
|
214
|
+
code = response['Response']['Error']['Code']
|
|
215
|
+
message = response['Response']['Error']['Message']
|
|
216
|
+
reqid = response['Response']['RequestId']
|
|
217
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
218
|
+
end
|
|
219
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
220
|
+
raise e
|
|
221
|
+
rescue StandardError => e
|
|
222
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
223
|
+
end
|
|
224
|
+
|
|
177
225
|
# 查询视频人脸融合任务
|
|
178
226
|
|
|
179
227
|
# @param request: Request instance for DescribeVideoFaceFusionJob.
|
|
@@ -222,6 +270,30 @@ module TencentCloud
|
|
|
222
270
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
223
271
|
end
|
|
224
272
|
|
|
273
|
+
# 通过JobId提交请求,获取视频配音频任务的结果信息。
|
|
274
|
+
|
|
275
|
+
# @param request: Request instance for DescribeVideoVoiceJob.
|
|
276
|
+
# @type request: :class:`Tencentcloud::vclm::V20240523::DescribeVideoVoiceJobRequest`
|
|
277
|
+
# @rtype: :class:`Tencentcloud::vclm::V20240523::DescribeVideoVoiceJobResponse`
|
|
278
|
+
def DescribeVideoVoiceJob(request)
|
|
279
|
+
body = send_request('DescribeVideoVoiceJob', request.serialize)
|
|
280
|
+
response = JSON.parse(body)
|
|
281
|
+
if response['Response'].key?('Error') == false
|
|
282
|
+
model = DescribeVideoVoiceJobResponse.new
|
|
283
|
+
model.deserialize(response['Response'])
|
|
284
|
+
model
|
|
285
|
+
else
|
|
286
|
+
code = response['Response']['Error']['Code']
|
|
287
|
+
message = response['Response']['Error']['Message']
|
|
288
|
+
reqid = response['Response']['RequestId']
|
|
289
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
290
|
+
end
|
|
291
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
292
|
+
raise e
|
|
293
|
+
rescue StandardError => e
|
|
294
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
295
|
+
end
|
|
296
|
+
|
|
225
297
|
# 用于提交人像驱动任务
|
|
226
298
|
# 支持提交音频和图文来生成对应视频,满足动态交互、内容生产等场景需求。
|
|
227
299
|
|
|
@@ -247,6 +319,32 @@ module TencentCloud
|
|
|
247
319
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
248
320
|
end
|
|
249
321
|
|
|
322
|
+
# ●混元生视频接口,基于混元大模型,根据输入的文本或图片智能生成视频。
|
|
323
|
+
|
|
324
|
+
# ●默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
325
|
+
|
|
326
|
+
# @param request: Request instance for SubmitHunyuanToVideoJob.
|
|
327
|
+
# @type request: :class:`Tencentcloud::vclm::V20240523::SubmitHunyuanToVideoJobRequest`
|
|
328
|
+
# @rtype: :class:`Tencentcloud::vclm::V20240523::SubmitHunyuanToVideoJobResponse`
|
|
329
|
+
def SubmitHunyuanToVideoJob(request)
|
|
330
|
+
body = send_request('SubmitHunyuanToVideoJob', request.serialize)
|
|
331
|
+
response = JSON.parse(body)
|
|
332
|
+
if response['Response'].key?('Error') == false
|
|
333
|
+
model = SubmitHunyuanToVideoJobResponse.new
|
|
334
|
+
model.deserialize(response['Response'])
|
|
335
|
+
model
|
|
336
|
+
else
|
|
337
|
+
code = response['Response']['Error']['Code']
|
|
338
|
+
message = response['Response']['Error']['Message']
|
|
339
|
+
reqid = response['Response']['RequestId']
|
|
340
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
341
|
+
end
|
|
342
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
343
|
+
raise e
|
|
344
|
+
rescue StandardError => e
|
|
345
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
346
|
+
end
|
|
347
|
+
|
|
250
348
|
# 用于提交图片跳舞任务。图片跳舞能力支持舞蹈动作结合图片生成跳舞视频,满足社交娱乐、互动营销等场景的需求。
|
|
251
349
|
|
|
252
350
|
# @param request: Request instance for SubmitImageAnimateJob.
|
|
@@ -344,6 +442,30 @@ module TencentCloud
|
|
|
344
442
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
345
443
|
end
|
|
346
444
|
|
|
445
|
+
# 用于提交视频编辑任务,支持上传视频、文本及图片素材开展编辑操作,涵盖风格迁移、元素替换、内容增减等核心能力。
|
|
446
|
+
|
|
447
|
+
# @param request: Request instance for SubmitVideoEditJob.
|
|
448
|
+
# @type request: :class:`Tencentcloud::vclm::V20240523::SubmitVideoEditJobRequest`
|
|
449
|
+
# @rtype: :class:`Tencentcloud::vclm::V20240523::SubmitVideoEditJobResponse`
|
|
450
|
+
def SubmitVideoEditJob(request)
|
|
451
|
+
body = send_request('SubmitVideoEditJob', request.serialize)
|
|
452
|
+
response = JSON.parse(body)
|
|
453
|
+
if response['Response'].key?('Error') == false
|
|
454
|
+
model = SubmitVideoEditJobResponse.new
|
|
455
|
+
model.deserialize(response['Response'])
|
|
456
|
+
model
|
|
457
|
+
else
|
|
458
|
+
code = response['Response']['Error']['Code']
|
|
459
|
+
message = response['Response']['Error']['Message']
|
|
460
|
+
reqid = response['Response']['RequestId']
|
|
461
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
462
|
+
end
|
|
463
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
464
|
+
raise e
|
|
465
|
+
rescue StandardError => e
|
|
466
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
467
|
+
end
|
|
468
|
+
|
|
347
469
|
# 提交视频人脸融合任务
|
|
348
470
|
|
|
349
471
|
# @param request: Request instance for SubmitVideoFaceFusionJob.
|
|
@@ -392,6 +514,30 @@ module TencentCloud
|
|
|
392
514
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
393
515
|
end
|
|
394
516
|
|
|
517
|
+
# 提交视频配音效任务,输入视频后提交请求,会返回一个JobId,用于查询视频配音效的处理进度。
|
|
518
|
+
|
|
519
|
+
# @param request: Request instance for SubmitVideoVoiceJob.
|
|
520
|
+
# @type request: :class:`Tencentcloud::vclm::V20240523::SubmitVideoVoiceJobRequest`
|
|
521
|
+
# @rtype: :class:`Tencentcloud::vclm::V20240523::SubmitVideoVoiceJobResponse`
|
|
522
|
+
def SubmitVideoVoiceJob(request)
|
|
523
|
+
body = send_request('SubmitVideoVoiceJob', request.serialize)
|
|
524
|
+
response = JSON.parse(body)
|
|
525
|
+
if response['Response'].key?('Error') == false
|
|
526
|
+
model = SubmitVideoVoiceJobResponse.new
|
|
527
|
+
model.deserialize(response['Response'])
|
|
528
|
+
model
|
|
529
|
+
else
|
|
530
|
+
code = response['Response']['Error']['Code']
|
|
531
|
+
message = response['Response']['Error']['Message']
|
|
532
|
+
reqid = response['Response']['RequestId']
|
|
533
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
534
|
+
end
|
|
535
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
536
|
+
raise e
|
|
537
|
+
rescue StandardError => e
|
|
538
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
539
|
+
end
|
|
540
|
+
|
|
395
541
|
|
|
396
542
|
end
|
|
397
543
|
end
|
data/lib/v20240523/models.rb
CHANGED
|
@@ -130,6 +130,54 @@ module TencentCloud
|
|
|
130
130
|
end
|
|
131
131
|
end
|
|
132
132
|
|
|
133
|
+
# DescribeHunyuanToVideoJob请求参数结构体
|
|
134
|
+
class DescribeHunyuanToVideoJobRequest < TencentCloud::Common::AbstractModel
|
|
135
|
+
# @param JobId: 任务ID
|
|
136
|
+
# @type JobId: String
|
|
137
|
+
|
|
138
|
+
attr_accessor :JobId
|
|
139
|
+
|
|
140
|
+
def initialize(jobid=nil)
|
|
141
|
+
@JobId = jobid
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
def deserialize(params)
|
|
145
|
+
@JobId = params['JobId']
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# DescribeHunyuanToVideoJob返回参数结构体
|
|
150
|
+
class DescribeHunyuanToVideoJobResponse < TencentCloud::Common::AbstractModel
|
|
151
|
+
# @param Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
|
|
152
|
+
# @type Status: String
|
|
153
|
+
# @param ErrorCode: 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
|
|
154
|
+
# @type ErrorCode: String
|
|
155
|
+
# @param ErrorMessage: 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
|
|
156
|
+
# @type ErrorMessage: String
|
|
157
|
+
# @param ResultVideoUrl: 结果视频 URL。有效期 24 小时。
|
|
158
|
+
# @type ResultVideoUrl: String
|
|
159
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
160
|
+
# @type RequestId: String
|
|
161
|
+
|
|
162
|
+
attr_accessor :Status, :ErrorCode, :ErrorMessage, :ResultVideoUrl, :RequestId
|
|
163
|
+
|
|
164
|
+
def initialize(status=nil, errorcode=nil, errormessage=nil, resultvideourl=nil, requestid=nil)
|
|
165
|
+
@Status = status
|
|
166
|
+
@ErrorCode = errorcode
|
|
167
|
+
@ErrorMessage = errormessage
|
|
168
|
+
@ResultVideoUrl = resultvideourl
|
|
169
|
+
@RequestId = requestid
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
def deserialize(params)
|
|
173
|
+
@Status = params['Status']
|
|
174
|
+
@ErrorCode = params['ErrorCode']
|
|
175
|
+
@ErrorMessage = params['ErrorMessage']
|
|
176
|
+
@ResultVideoUrl = params['ResultVideoUrl']
|
|
177
|
+
@RequestId = params['RequestId']
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
|
|
133
181
|
# DescribeImageAnimateJob请求参数结构体
|
|
134
182
|
class DescribeImageAnimateJobRequest < TencentCloud::Common::AbstractModel
|
|
135
183
|
# @param JobId: 任务ID。
|
|
@@ -338,6 +386,54 @@ module TencentCloud
|
|
|
338
386
|
end
|
|
339
387
|
end
|
|
340
388
|
|
|
389
|
+
# DescribeVideoEditJob请求参数结构体
|
|
390
|
+
class DescribeVideoEditJobRequest < TencentCloud::Common::AbstractModel
|
|
391
|
+
# @param JobId: 任务ID。
|
|
392
|
+
# @type JobId: String
|
|
393
|
+
|
|
394
|
+
attr_accessor :JobId
|
|
395
|
+
|
|
396
|
+
def initialize(jobid=nil)
|
|
397
|
+
@JobId = jobid
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
def deserialize(params)
|
|
401
|
+
@JobId = params['JobId']
|
|
402
|
+
end
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# DescribeVideoEditJob返回参数结构体
|
|
406
|
+
class DescribeVideoEditJobResponse < TencentCloud::Common::AbstractModel
|
|
407
|
+
# @param Status: 任务状态。 WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
|
|
408
|
+
# @type Status: String
|
|
409
|
+
# @param ResultVideoUrl: 结果视频URL。有效期 24 小时。
|
|
410
|
+
# @type ResultVideoUrl: String
|
|
411
|
+
# @param ErrorCode: 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
|
|
412
|
+
# @type ErrorCode: String
|
|
413
|
+
# @param ErrorMessage: 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
|
|
414
|
+
# @type ErrorMessage: String
|
|
415
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
416
|
+
# @type RequestId: String
|
|
417
|
+
|
|
418
|
+
attr_accessor :Status, :ResultVideoUrl, :ErrorCode, :ErrorMessage, :RequestId
|
|
419
|
+
|
|
420
|
+
def initialize(status=nil, resultvideourl=nil, errorcode=nil, errormessage=nil, requestid=nil)
|
|
421
|
+
@Status = status
|
|
422
|
+
@ResultVideoUrl = resultvideourl
|
|
423
|
+
@ErrorCode = errorcode
|
|
424
|
+
@ErrorMessage = errormessage
|
|
425
|
+
@RequestId = requestid
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
def deserialize(params)
|
|
429
|
+
@Status = params['Status']
|
|
430
|
+
@ResultVideoUrl = params['ResultVideoUrl']
|
|
431
|
+
@ErrorCode = params['ErrorCode']
|
|
432
|
+
@ErrorMessage = params['ErrorMessage']
|
|
433
|
+
@RequestId = params['RequestId']
|
|
434
|
+
end
|
|
435
|
+
end
|
|
436
|
+
|
|
341
437
|
# DescribeVideoFaceFusionJob请求参数结构体
|
|
342
438
|
class DescribeVideoFaceFusionJobRequest < TencentCloud::Common::AbstractModel
|
|
343
439
|
# @param JobId: 任务ID
|
|
@@ -444,6 +540,54 @@ module TencentCloud
|
|
|
444
540
|
end
|
|
445
541
|
end
|
|
446
542
|
|
|
543
|
+
# DescribeVideoVoiceJob请求参数结构体
|
|
544
|
+
class DescribeVideoVoiceJobRequest < TencentCloud::Common::AbstractModel
|
|
545
|
+
# @param JobId: 任务ID。
|
|
546
|
+
# @type JobId: String
|
|
547
|
+
|
|
548
|
+
attr_accessor :JobId
|
|
549
|
+
|
|
550
|
+
def initialize(jobid=nil)
|
|
551
|
+
@JobId = jobid
|
|
552
|
+
end
|
|
553
|
+
|
|
554
|
+
def deserialize(params)
|
|
555
|
+
@JobId = params['JobId']
|
|
556
|
+
end
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
# DescribeVideoVoiceJob返回参数结构体
|
|
560
|
+
class DescribeVideoVoiceJobResponse < TencentCloud::Common::AbstractModel
|
|
561
|
+
# @param Status: 任务状态。 WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
|
|
562
|
+
# @type Status: String
|
|
563
|
+
# @param ResultVideoUrl: 结果视频URL。有效期 24 小时。
|
|
564
|
+
# @type ResultVideoUrl: String
|
|
565
|
+
# @param ErrorCode: 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
|
|
566
|
+
# @type ErrorCode: String
|
|
567
|
+
# @param ErrorMessage: 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
|
|
568
|
+
# @type ErrorMessage: String
|
|
569
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
570
|
+
# @type RequestId: String
|
|
571
|
+
|
|
572
|
+
attr_accessor :Status, :ResultVideoUrl, :ErrorCode, :ErrorMessage, :RequestId
|
|
573
|
+
|
|
574
|
+
def initialize(status=nil, resultvideourl=nil, errorcode=nil, errormessage=nil, requestid=nil)
|
|
575
|
+
@Status = status
|
|
576
|
+
@ResultVideoUrl = resultvideourl
|
|
577
|
+
@ErrorCode = errorcode
|
|
578
|
+
@ErrorMessage = errormessage
|
|
579
|
+
@RequestId = requestid
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
def deserialize(params)
|
|
583
|
+
@Status = params['Status']
|
|
584
|
+
@ResultVideoUrl = params['ResultVideoUrl']
|
|
585
|
+
@ErrorCode = params['ErrorCode']
|
|
586
|
+
@ErrorMessage = params['ErrorMessage']
|
|
587
|
+
@RequestId = params['RequestId']
|
|
588
|
+
end
|
|
589
|
+
end
|
|
590
|
+
|
|
447
591
|
# 扩展字段。
|
|
448
592
|
class ExtraParam < TencentCloud::Common::AbstractModel
|
|
449
593
|
# @param UserDesignatedUrl: 预签名的上传url,支持把视频直接传到客户指定的地址。
|
|
@@ -709,6 +853,68 @@ module TencentCloud
|
|
|
709
853
|
end
|
|
710
854
|
end
|
|
711
855
|
|
|
856
|
+
# SubmitHunyuanToVideoJob请求参数结构体
|
|
857
|
+
class SubmitHunyuanToVideoJobRequest < TencentCloud::Common::AbstractModel
|
|
858
|
+
# @param Prompt: 视频内容的描述,中文正向提示词。最多支持200个 utf-8 字符(首尾空格不计入字符数)。 示例值:一只猫在草原上奔跑,写实风格
|
|
859
|
+
# @type Prompt: String
|
|
860
|
+
# @param Image: 输入图片
|
|
861
|
+
# 上传图url大小不超过 10M,base64不超过8M。
|
|
862
|
+
# 支持jpg,png,jpeg,webp,bmp,tiff 格式
|
|
863
|
+
# 单边分辨率不超过5000,不小于50,长宽限制1:4 ~ 4:1
|
|
864
|
+
# @type Image: :class:`Tencentcloud::Vclm.v20240523.models.Image`
|
|
865
|
+
# @param Resolution: 目前仅支持720p视频分辨率,默认720p。
|
|
866
|
+
# @type Resolution: String
|
|
867
|
+
# @param LogoAdd: 为生成视频添加标识的开关,默认为1,0 需前往 控制台 申请开启显示标识自主完成方可生效。
|
|
868
|
+
# 1:添加标识; 0:不添加标识; 其他数值:默认按1处理。
|
|
869
|
+
# @type LogoAdd: Integer
|
|
870
|
+
# @param LogoParam: 默认在生成视频的右下角添加“ AI 生成”字样,如需替换为其他的标识图片,需前往 控制台 申请开启显示标识自主完成。
|
|
871
|
+
# @type LogoParam: :class:`Tencentcloud::Vclm.v20240523.models.LogoParam`
|
|
872
|
+
|
|
873
|
+
attr_accessor :Prompt, :Image, :Resolution, :LogoAdd, :LogoParam
|
|
874
|
+
|
|
875
|
+
def initialize(prompt=nil, image=nil, resolution=nil, logoadd=nil, logoparam=nil)
|
|
876
|
+
@Prompt = prompt
|
|
877
|
+
@Image = image
|
|
878
|
+
@Resolution = resolution
|
|
879
|
+
@LogoAdd = logoadd
|
|
880
|
+
@LogoParam = logoparam
|
|
881
|
+
end
|
|
882
|
+
|
|
883
|
+
def deserialize(params)
|
|
884
|
+
@Prompt = params['Prompt']
|
|
885
|
+
unless params['Image'].nil?
|
|
886
|
+
@Image = Image.new
|
|
887
|
+
@Image.deserialize(params['Image'])
|
|
888
|
+
end
|
|
889
|
+
@Resolution = params['Resolution']
|
|
890
|
+
@LogoAdd = params['LogoAdd']
|
|
891
|
+
unless params['LogoParam'].nil?
|
|
892
|
+
@LogoParam = LogoParam.new
|
|
893
|
+
@LogoParam.deserialize(params['LogoParam'])
|
|
894
|
+
end
|
|
895
|
+
end
|
|
896
|
+
end
|
|
897
|
+
|
|
898
|
+
# SubmitHunyuanToVideoJob返回参数结构体
|
|
899
|
+
class SubmitHunyuanToVideoJobResponse < TencentCloud::Common::AbstractModel
|
|
900
|
+
# @param JobId: 任务ID
|
|
901
|
+
# @type JobId: String
|
|
902
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
903
|
+
# @type RequestId: String
|
|
904
|
+
|
|
905
|
+
attr_accessor :JobId, :RequestId
|
|
906
|
+
|
|
907
|
+
def initialize(jobid=nil, requestid=nil)
|
|
908
|
+
@JobId = jobid
|
|
909
|
+
@RequestId = requestid
|
|
910
|
+
end
|
|
911
|
+
|
|
912
|
+
def deserialize(params)
|
|
913
|
+
@JobId = params['JobId']
|
|
914
|
+
@RequestId = params['RequestId']
|
|
915
|
+
end
|
|
916
|
+
end
|
|
917
|
+
|
|
712
918
|
# SubmitImageAnimateJob请求参数结构体
|
|
713
919
|
class SubmitImageAnimateJobRequest < TencentCloud::Common::AbstractModel
|
|
714
920
|
# @param ImageUrl: 图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;
|
|
@@ -1020,6 +1226,74 @@ module TencentCloud
|
|
|
1020
1226
|
end
|
|
1021
1227
|
end
|
|
1022
1228
|
|
|
1229
|
+
# SubmitVideoEditJob请求参数结构体
|
|
1230
|
+
class SubmitVideoEditJobRequest < TencentCloud::Common::AbstractModel
|
|
1231
|
+
# @param VideoUrl: 输入视频
|
|
1232
|
+
|
|
1233
|
+
# - 视频格式:MP4
|
|
1234
|
+
# - 视频时长:5s以内
|
|
1235
|
+
# - 视频分辨率:无限制(待验证是否可以无损输出)
|
|
1236
|
+
# @type VideoUrl: String
|
|
1237
|
+
# @param Prompt: 视频内容的描述,中文正向提示词。最多支持200个 utf-8 字符(首尾空格不计入字符数)。
|
|
1238
|
+
# 支持风格迁移、替换、元素增加、删除控制
|
|
1239
|
+
# @type Prompt: String
|
|
1240
|
+
# @param Image: 图片base64或者图片url
|
|
1241
|
+
|
|
1242
|
+
# - Base64 和 Url 必须提供一个,如果都提供以Url为准。
|
|
1243
|
+
# - 上传图url大小不超过 8M
|
|
1244
|
+
# - 支持jpg,png,jpeg,webp,bmp,tiff 格式
|
|
1245
|
+
# - 单边分辨率不超过5000,不小于50,长宽限制1:4 ~ 4:1
|
|
1246
|
+
# @type Image: :class:`Tencentcloud::Vclm.v20240523.models.Image`
|
|
1247
|
+
# @param LogoAdd: 为生成视频添加标识的开关,默认为1。 1:添加标识。 0:不添加标识。 其他数值:默认按1处理。 建议您使用显著标识来提示,该视频是 AI 生成的视频。
|
|
1248
|
+
# @type LogoAdd: Integer
|
|
1249
|
+
# @param LogoParam: 标识内容设置。 默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
|
1250
|
+
# @type LogoParam: :class:`Tencentcloud::Vclm.v20240523.models.LogoParam`
|
|
1251
|
+
|
|
1252
|
+
attr_accessor :VideoUrl, :Prompt, :Image, :LogoAdd, :LogoParam
|
|
1253
|
+
|
|
1254
|
+
def initialize(videourl=nil, prompt=nil, image=nil, logoadd=nil, logoparam=nil)
|
|
1255
|
+
@VideoUrl = videourl
|
|
1256
|
+
@Prompt = prompt
|
|
1257
|
+
@Image = image
|
|
1258
|
+
@LogoAdd = logoadd
|
|
1259
|
+
@LogoParam = logoparam
|
|
1260
|
+
end
|
|
1261
|
+
|
|
1262
|
+
def deserialize(params)
|
|
1263
|
+
@VideoUrl = params['VideoUrl']
|
|
1264
|
+
@Prompt = params['Prompt']
|
|
1265
|
+
unless params['Image'].nil?
|
|
1266
|
+
@Image = Image.new
|
|
1267
|
+
@Image.deserialize(params['Image'])
|
|
1268
|
+
end
|
|
1269
|
+
@LogoAdd = params['LogoAdd']
|
|
1270
|
+
unless params['LogoParam'].nil?
|
|
1271
|
+
@LogoParam = LogoParam.new
|
|
1272
|
+
@LogoParam.deserialize(params['LogoParam'])
|
|
1273
|
+
end
|
|
1274
|
+
end
|
|
1275
|
+
end
|
|
1276
|
+
|
|
1277
|
+
# SubmitVideoEditJob返回参数结构体
|
|
1278
|
+
class SubmitVideoEditJobResponse < TencentCloud::Common::AbstractModel
|
|
1279
|
+
# @param JobId: 任务ID。
|
|
1280
|
+
# @type JobId: String
|
|
1281
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1282
|
+
# @type RequestId: String
|
|
1283
|
+
|
|
1284
|
+
attr_accessor :JobId, :RequestId
|
|
1285
|
+
|
|
1286
|
+
def initialize(jobid=nil, requestid=nil)
|
|
1287
|
+
@JobId = jobid
|
|
1288
|
+
@RequestId = requestid
|
|
1289
|
+
end
|
|
1290
|
+
|
|
1291
|
+
def deserialize(params)
|
|
1292
|
+
@JobId = params['JobId']
|
|
1293
|
+
@RequestId = params['RequestId']
|
|
1294
|
+
end
|
|
1295
|
+
end
|
|
1296
|
+
|
|
1023
1297
|
# SubmitVideoFaceFusionJob请求参数结构体
|
|
1024
1298
|
class SubmitVideoFaceFusionJobRequest < TencentCloud::Common::AbstractModel
|
|
1025
1299
|
# @param VideoUrl: 视频素材下载地址。用户自定义模版视频下载地址,使用前需要先调用视频审核接口进行内容审核。视频限制:分辨率≤4k,fps≤25,视频大小≤1G,时长≤20 秒,支持格式mp4。
|
|
@@ -1168,6 +1442,61 @@ module TencentCloud
|
|
|
1168
1442
|
end
|
|
1169
1443
|
end
|
|
1170
1444
|
|
|
1445
|
+
# SubmitVideoVoiceJob请求参数结构体
|
|
1446
|
+
class SubmitVideoVoiceJobRequest < TencentCloud::Common::AbstractModel
|
|
1447
|
+
# @param VideoUrl: 输入视频的Url 上传视频时长限制:1-15s 视频格式:MP4,MOV 视频大小:不超过1 GB URL地址中不能包含中文字符。
|
|
1448
|
+
# @type VideoUrl: String
|
|
1449
|
+
# @param Prompt: 描述音效内容的正向提示词。输入上限50个字符。
|
|
1450
|
+
# @type Prompt: String
|
|
1451
|
+
# @param NegativePrompt: 音效内容的原始负向提示词。输入上限50个字符。
|
|
1452
|
+
# @type NegativePrompt: String
|
|
1453
|
+
# @param LogoAdd: 为生成视频添加标识的开关,默认为1。 1:添加标识。 0:不添加标识。 其他数值:默认按1处理。 建议您使用显著标识来提示,该视频是 AI 生成的视频。
|
|
1454
|
+
# @type LogoAdd: Integer
|
|
1455
|
+
# @param LogoParam: 标识内容设置。 默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
|
1456
|
+
# @type LogoParam: :class:`Tencentcloud::Vclm.v20240523.models.LogoParam`
|
|
1457
|
+
|
|
1458
|
+
attr_accessor :VideoUrl, :Prompt, :NegativePrompt, :LogoAdd, :LogoParam
|
|
1459
|
+
|
|
1460
|
+
def initialize(videourl=nil, prompt=nil, negativeprompt=nil, logoadd=nil, logoparam=nil)
|
|
1461
|
+
@VideoUrl = videourl
|
|
1462
|
+
@Prompt = prompt
|
|
1463
|
+
@NegativePrompt = negativeprompt
|
|
1464
|
+
@LogoAdd = logoadd
|
|
1465
|
+
@LogoParam = logoparam
|
|
1466
|
+
end
|
|
1467
|
+
|
|
1468
|
+
def deserialize(params)
|
|
1469
|
+
@VideoUrl = params['VideoUrl']
|
|
1470
|
+
@Prompt = params['Prompt']
|
|
1471
|
+
@NegativePrompt = params['NegativePrompt']
|
|
1472
|
+
@LogoAdd = params['LogoAdd']
|
|
1473
|
+
unless params['LogoParam'].nil?
|
|
1474
|
+
@LogoParam = LogoParam.new
|
|
1475
|
+
@LogoParam.deserialize(params['LogoParam'])
|
|
1476
|
+
end
|
|
1477
|
+
end
|
|
1478
|
+
end
|
|
1479
|
+
|
|
1480
|
+
# SubmitVideoVoiceJob返回参数结构体
|
|
1481
|
+
class SubmitVideoVoiceJobResponse < TencentCloud::Common::AbstractModel
|
|
1482
|
+
# @param JobId: 任务ID。
|
|
1483
|
+
# @type JobId: String
|
|
1484
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1485
|
+
# @type RequestId: String
|
|
1486
|
+
|
|
1487
|
+
attr_accessor :JobId, :RequestId
|
|
1488
|
+
|
|
1489
|
+
def initialize(jobid=nil, requestid=nil)
|
|
1490
|
+
@JobId = jobid
|
|
1491
|
+
@RequestId = requestid
|
|
1492
|
+
end
|
|
1493
|
+
|
|
1494
|
+
def deserialize(params)
|
|
1495
|
+
@JobId = params['JobId']
|
|
1496
|
+
@RequestId = params['RequestId']
|
|
1497
|
+
end
|
|
1498
|
+
end
|
|
1499
|
+
|
|
1171
1500
|
end
|
|
1172
1501
|
end
|
|
1173
1502
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-vclm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1187
|
|
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-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|