tencentcloud-sdk-mps 3.0.1191 → 3.0.1192

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44b95e0c51b2169607aae42e28b37e0ee0877334
4
- data.tar.gz: ade349b660b5592feea7a8f634bc438cf8bd3557
3
+ metadata.gz: 59e6b179acec4729947dbead584367c32986df1d
4
+ data.tar.gz: 8c9d8178becc0df0e03764658f115c5ef84c21f3
5
5
  SHA512:
6
- metadata.gz: f3aeccb213e326b06ada3fd2f9b33bc26a237e981d6dd0d6f4457bfb2563515d551c409ff1dd45aabfbb20461a50161cc577b2df7d2408d9e95068f146a758e0
7
- data.tar.gz: 96ed3ee8a9a01b403340b879a298d3966d281663392ccec14bc2793fad9e3475085633d50c4a73478a90fad99727ae23e2da631a546a7fe69cee22cda7201c44
6
+ metadata.gz: 5d8dd6e23b919ab118564db1ced5f6ae31fd61f42e7de05dead5af48202f86fb0bf96618f01f0450147ce9058f7c33f57153de9a2774688cee5bf95ce4cf20a5
7
+ data.tar.gz: 83d96fbab865b0312fbb08ab8249dd2ecf6d8479920b6535abf353f1b09e43046316b87fe6e8b7dfb0eb31e36feab71a45d6bc679221f3d4f10f8422044f84cb
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1191
1
+ 3.0.1192
@@ -198,6 +198,54 @@ module TencentCloud
198
198
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
199
199
  end
200
200
 
201
+ # 调用该接口用于创建AIGC生图片任务。
202
+
203
+ # @param request: Request instance for CreateAigcImageTask.
204
+ # @type request: :class:`Tencentcloud::mps::V20190612::CreateAigcImageTaskRequest`
205
+ # @rtype: :class:`Tencentcloud::mps::V20190612::CreateAigcImageTaskResponse`
206
+ def CreateAigcImageTask(request)
207
+ body = send_request('CreateAigcImageTask', request.serialize)
208
+ response = JSON.parse(body)
209
+ if response['Response'].key?('Error') == false
210
+ model = CreateAigcImageTaskResponse.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
+
225
+ # 调用该接口,用于创建AI生视频任务。
226
+
227
+ # @param request: Request instance for CreateAigcVideoTask.
228
+ # @type request: :class:`Tencentcloud::mps::V20190612::CreateAigcVideoTaskRequest`
229
+ # @rtype: :class:`Tencentcloud::mps::V20190612::CreateAigcVideoTaskResponse`
230
+ def CreateAigcVideoTask(request)
231
+ body = send_request('CreateAigcVideoTask', request.serialize)
232
+ response = JSON.parse(body)
233
+ if response['Response'].key?('Error') == false
234
+ model = CreateAigcVideoTaskResponse.new
235
+ model.deserialize(response['Response'])
236
+ model
237
+ else
238
+ code = response['Response']['Error']['Code']
239
+ message = response['Response']['Error']['Message']
240
+ reqid = response['Response']['RequestId']
241
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
242
+ end
243
+ rescue TencentCloud::Common::TencentCloudSDKException => e
244
+ raise e
245
+ rescue StandardError => e
246
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
247
+ end
248
+
201
249
  # 创建用户自定义转动图模板,数量上限:16。
202
250
 
203
251
  # @param request: Request instance for CreateAnimatedGraphicsTemplate.
@@ -1525,6 +1573,54 @@ module TencentCloud
1525
1573
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1526
1574
  end
1527
1575
 
1576
+ # 调用该接口,查询AIGC生图片任务进度以及获取生成结果。
1577
+
1578
+ # @param request: Request instance for DescribeAigcImageTask.
1579
+ # @type request: :class:`Tencentcloud::mps::V20190612::DescribeAigcImageTaskRequest`
1580
+ # @rtype: :class:`Tencentcloud::mps::V20190612::DescribeAigcImageTaskResponse`
1581
+ def DescribeAigcImageTask(request)
1582
+ body = send_request('DescribeAigcImageTask', request.serialize)
1583
+ response = JSON.parse(body)
1584
+ if response['Response'].key?('Error') == false
1585
+ model = DescribeAigcImageTaskResponse.new
1586
+ model.deserialize(response['Response'])
1587
+ model
1588
+ else
1589
+ code = response['Response']['Error']['Code']
1590
+ message = response['Response']['Error']['Message']
1591
+ reqid = response['Response']['RequestId']
1592
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1593
+ end
1594
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1595
+ raise e
1596
+ rescue StandardError => e
1597
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1598
+ end
1599
+
1600
+ # 调用该接口,用于查询AIGC生视频任务的进度以及获取生成结果。
1601
+
1602
+ # @param request: Request instance for DescribeAigcVideoTask.
1603
+ # @type request: :class:`Tencentcloud::mps::V20190612::DescribeAigcVideoTaskRequest`
1604
+ # @rtype: :class:`Tencentcloud::mps::V20190612::DescribeAigcVideoTaskResponse`
1605
+ def DescribeAigcVideoTask(request)
1606
+ body = send_request('DescribeAigcVideoTask', request.serialize)
1607
+ response = JSON.parse(body)
1608
+ if response['Response'].key?('Error') == false
1609
+ model = DescribeAigcVideoTaskResponse.new
1610
+ model.deserialize(response['Response'])
1611
+ model
1612
+ else
1613
+ code = response['Response']['Error']['Code']
1614
+ message = response['Response']['Error']['Message']
1615
+ reqid = response['Response']['RequestId']
1616
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1617
+ end
1618
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1619
+ raise e
1620
+ rescue StandardError => e
1621
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1622
+ end
1623
+
1528
1624
  # 查询转动图模板列表,支持根据条件,分页查询。
1529
1625
 
1530
1626
  # @param request: Request instance for DescribeAnimatedGraphicsTemplates.
@@ -4870,6 +4870,160 @@ module TencentCloud
4870
4870
  end
4871
4871
  end
4872
4872
 
4873
+ # 用于AIGC创作图片时用到的扩展参数信息。
4874
+ class AigcImageExtraParam < TencentCloud::Common::AbstractModel
4875
+ # @param AspectRatio: 指定所生成视频的宽高比。
4876
+
4877
+ # 不同模型支持的宽高比:
4878
+ # 1. GEM支持:1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9 和 21:9。
4879
+ # 2. Jimeng:合用户prompt意图、参考图尺寸,由模型智能判断生图宽高比。
4880
+
4881
+ # 注:具体模型的宽高比参数,可查看相应模型官网获取更完整描述。
4882
+ # @type AspectRatio: String
4883
+ # @param Resolution: 指定图片输出分辨率。
4884
+
4885
+ # 支持该参数的模型:
4886
+ # 支持选择: 720P, 1080P, 2K, 4K。
4887
+
4888
+ # 1. Jimeng推荐通过prompt指定图片分辨率和宽高比。
4889
+ # 2K
4890
+ # 2048x2048 (1:1)
4891
+ # 2304x1728(4:3)
4892
+ # 2496x1664 (3:2)
4893
+ # 2560x1440 (16:9)
4894
+ # 3024x1296 (21:9)
4895
+ # 4K
4896
+ # 4096x4096 (1:1)
4897
+ # 4694x3520(4:3)
4898
+ # 4992x3328 (3:2)
4899
+ # 5404x3040 (16:9)
4900
+ # 6198x2656 (21:9)
4901
+ # @type Resolution: String
4902
+
4903
+ attr_accessor :AspectRatio, :Resolution
4904
+
4905
+ def initialize(aspectratio=nil, resolution=nil)
4906
+ @AspectRatio = aspectratio
4907
+ @Resolution = resolution
4908
+ end
4909
+
4910
+ def deserialize(params)
4911
+ @AspectRatio = params['AspectRatio']
4912
+ @Resolution = params['Resolution']
4913
+ end
4914
+ end
4915
+
4916
+ # 用于AIGC创作的图片信息。
4917
+ class AigcImageInfo < TencentCloud::Common::AbstractModel
4918
+ # @param ImageUrl: 用于指导视频生成的图片 URL。该URL需外网可访问。同时允许爬虫拉取。
4919
+ # @type ImageUrl: String
4920
+ # @param ReferenceType: 参考类型。
4921
+ # 注意:
4922
+ # 1. 当模型使用Vidu的q2多参考生图时,也可用于指定主体id。
4923
+ # 2. 当使用GV模型时,可作为参考方式,可选asset(素材)、style(风格)。
4924
+ # @type ReferenceType: String
4925
+
4926
+ attr_accessor :ImageUrl, :ReferenceType
4927
+
4928
+ def initialize(imageurl=nil, referencetype=nil)
4929
+ @ImageUrl = imageurl
4930
+ @ReferenceType = referencetype
4931
+ end
4932
+
4933
+ def deserialize(params)
4934
+ @ImageUrl = params['ImageUrl']
4935
+ @ReferenceType = params['ReferenceType']
4936
+ end
4937
+ end
4938
+
4939
+ # Aigc结果文件上传COS时,需传入的信息。 需创建并授权LVB_QCSRole角色。
4940
+ class AigcStoreCosParam < TencentCloud::Common::AbstractModel
4941
+ # @param CosBucketName: 存储至 cos 的 bucket 桶名称。需要cos存储时,该值必填。 示例值:bucket。
4942
+ # @type CosBucketName: String
4943
+ # @param CosBucketRegion: 存储至 cos 的 bucket 区域。与bucket所属区域相同,上传cos时必填。 示例值:ap-guangzhou
4944
+ # @type CosBucketRegion: String
4945
+ # @param CosBucketPath: 存储至 cos 的 bucket 路径。
4946
+ # 可选。
4947
+ # 示例值:my_file
4948
+ # @type CosBucketPath: String
4949
+
4950
+ attr_accessor :CosBucketName, :CosBucketRegion, :CosBucketPath
4951
+
4952
+ def initialize(cosbucketname=nil, cosbucketregion=nil, cosbucketpath=nil)
4953
+ @CosBucketName = cosbucketname
4954
+ @CosBucketRegion = cosbucketregion
4955
+ @CosBucketPath = cosbucketpath
4956
+ end
4957
+
4958
+ def deserialize(params)
4959
+ @CosBucketName = params['CosBucketName']
4960
+ @CosBucketRegion = params['CosBucketRegion']
4961
+ @CosBucketPath = params['CosBucketPath']
4962
+ end
4963
+ end
4964
+
4965
+ # 用于AIGC创作视频时用到的扩展参数信息。
4966
+ class AigcVideoExtraParam < TencentCloud::Common::AbstractModel
4967
+ # @param Resolution: 生成视频的分辨率,分辨率与选择模型及设置的视频时长相关。
4968
+
4969
+ # 不同模型支持的分辨率选项:
4970
+ # 1. Kling 720P(默认), 1080P。
4971
+ # 2. Hailuo 768P(默认), 1080P。
4972
+ # 3. Jimeng 1080P(默认)。
4973
+ # 4. Vidu 720P(默认),1080P。
4974
+ # 5. GV 720P(默认),1080P。
4975
+ # 6. OS 720P, 图片仅支持1280x720、720x1280,暂不支持指定。
4976
+
4977
+ # 注意:除模型可支持的分辨率外,还可以生成 2K、4K分辨率。
4978
+ # @type Resolution: String
4979
+ # @param AspectRatio: 指定所生成视频的宽高比。
4980
+
4981
+ # 不同模型对于此参数的支持:
4982
+ # 1. Kling 仅文生视频支持, 16:9(默认值)、9:16、 1:1。
4983
+ # 2. Hailuo 暂不支持。
4984
+ # 3. Jimeng ["16:9"、"4:3"、"1:1"、"3:4"、"9:16"、"21:9"]
4985
+ # 4. Vidu 仅文生和参考图生视频 支持[16:9、9:16、4:3、3:4、1:1],其中仅q2支持4:3、3:4。
4986
+ # 5. GV 16:9(默认值)、9:16。
4987
+ # 6. OS 仅文生视频支持, 16:9(默认), 9:16。
4988
+
4989
+ # 注:关于具体模型支持的宽高比例,可查看具体模型官网介绍获取更完整描述。
4990
+ # @type AspectRatio: String
4991
+
4992
+ attr_accessor :Resolution, :AspectRatio
4993
+
4994
+ def initialize(resolution=nil, aspectratio=nil)
4995
+ @Resolution = resolution
4996
+ @AspectRatio = aspectratio
4997
+ end
4998
+
4999
+ def deserialize(params)
5000
+ @Resolution = params['Resolution']
5001
+ @AspectRatio = params['AspectRatio']
5002
+ end
5003
+ end
5004
+
5005
+ # 用于AIGC生视频创作的参考图片信息。
5006
+ class AigcVideoReferenceImageInfo < TencentCloud::Common::AbstractModel
5007
+ # @param ImageUrl: 用于指导视频生成的图片 URL。该URL需外网可访问。同时允许爬虫拉取。
5008
+ # @type ImageUrl: String
5009
+ # @param ReferenceType: 参考类型。
5010
+ # 注意:
5011
+ # 1. 当使用GV模型时,可作为参考方式,可选asset(素材)、style(风格)。
5012
+ # @type ReferenceType: String
5013
+
5014
+ attr_accessor :ImageUrl, :ReferenceType
5015
+
5016
+ def initialize(imageurl=nil, referencetype=nil)
5017
+ @ImageUrl = imageurl
5018
+ @ReferenceType = referencetype
5019
+ end
5020
+
5021
+ def deserialize(params)
5022
+ @ImageUrl = params['ImageUrl']
5023
+ @ReferenceType = params['ReferenceType']
5024
+ end
5025
+ end
5026
+
4873
5027
  # 转动图任务类型。
4874
5028
  class AnimatedGraphicTaskInput < TencentCloud::Common::AbstractModel
4875
5029
  # @param Definition: 视频转动图模板 ID。
@@ -7537,6 +7691,240 @@ module TencentCloud
7537
7691
  end
7538
7692
  end
7539
7693
 
7694
+ # CreateAigcImageTask请求参数结构体
7695
+ class CreateAigcImageTaskRequest < TencentCloud::Common::AbstractModel
7696
+ # @param ModelName: 模型名称。
7697
+ # 当前支持的模型列表:
7698
+ # GEM,
7699
+ # Jimeng,
7700
+ # Qwen。
7701
+ # @type ModelName: String
7702
+ # @param ModelVersion: 指定模型特定版本号。默认使用系统当前所支持的模型稳定版本。
7703
+
7704
+ # 1. GEM, 可选[2.5,3.0]。
7705
+ # 2. Jimeng,可选[4.0]。
7706
+ # @type ModelVersion: String
7707
+ # @param Prompt: 生成图片的描述。(注:最大支持1000字符)。当未传入参考图片时,此参数必填。
7708
+ # @type Prompt: String
7709
+ # @param NegativePrompt: 用于描述您想要阻止模型生成的内容。 注意:部分模型支持。 例如: 顶部照明、明亮的色彩 人物、动物 多辆汽车、风。
7710
+ # @type NegativePrompt: String
7711
+ # @param EnhancePrompt: 默认取值为False,模型会严格地遵循指令。如果需要更精细的prompt获得最佳效果,可将此参数设置为True,将自动优化传入的prompt,以提升生成质量。
7712
+ # @type EnhancePrompt: Boolean
7713
+ # @param ImageInfos: 用于传入参考的资源图片信息,默认支持传入一张图片。
7714
+
7715
+ # 支持多图输入的模型:
7716
+ # 1. GEM,可支持最多3张图片输入作为资源图。
7717
+
7718
+ # 注意:
7719
+ # 1. 推荐图片小于7M,各模型限制不同。
7720
+ # 2. 图片格式支持:jpeg, png, webp。
7721
+ # @type ImageInfos: Array
7722
+ # @param ExtraParameters: 用于传入模型要求的额外参数。
7723
+ # @type ExtraParameters: :class:`Tencentcloud::Mps.v20190612.models.AigcImageExtraParam`
7724
+ # @param StoreCosParam: 文件结果指定存储Cos桶信息。 注意:需开通Cos,创建并授权MPS_QcsRole角色。
7725
+ # @type StoreCosParam: :class:`Tencentcloud::Mps.v20190612.models.AigcStoreCosParam`
7726
+ # @param Operator: 接口操作者名称。
7727
+ # @type Operator: String
7728
+
7729
+ attr_accessor :ModelName, :ModelVersion, :Prompt, :NegativePrompt, :EnhancePrompt, :ImageInfos, :ExtraParameters, :StoreCosParam, :Operator
7730
+
7731
+ def initialize(modelname=nil, modelversion=nil, prompt=nil, negativeprompt=nil, enhanceprompt=nil, imageinfos=nil, extraparameters=nil, storecosparam=nil, operator=nil)
7732
+ @ModelName = modelname
7733
+ @ModelVersion = modelversion
7734
+ @Prompt = prompt
7735
+ @NegativePrompt = negativeprompt
7736
+ @EnhancePrompt = enhanceprompt
7737
+ @ImageInfos = imageinfos
7738
+ @ExtraParameters = extraparameters
7739
+ @StoreCosParam = storecosparam
7740
+ @Operator = operator
7741
+ end
7742
+
7743
+ def deserialize(params)
7744
+ @ModelName = params['ModelName']
7745
+ @ModelVersion = params['ModelVersion']
7746
+ @Prompt = params['Prompt']
7747
+ @NegativePrompt = params['NegativePrompt']
7748
+ @EnhancePrompt = params['EnhancePrompt']
7749
+ unless params['ImageInfos'].nil?
7750
+ @ImageInfos = []
7751
+ params['ImageInfos'].each do |i|
7752
+ aigcimageinfo_tmp = AigcImageInfo.new
7753
+ aigcimageinfo_tmp.deserialize(i)
7754
+ @ImageInfos << aigcimageinfo_tmp
7755
+ end
7756
+ end
7757
+ unless params['ExtraParameters'].nil?
7758
+ @ExtraParameters = AigcImageExtraParam.new
7759
+ @ExtraParameters.deserialize(params['ExtraParameters'])
7760
+ end
7761
+ unless params['StoreCosParam'].nil?
7762
+ @StoreCosParam = AigcStoreCosParam.new
7763
+ @StoreCosParam.deserialize(params['StoreCosParam'])
7764
+ end
7765
+ @Operator = params['Operator']
7766
+ end
7767
+ end
7768
+
7769
+ # CreateAigcImageTask返回参数结构体
7770
+ class CreateAigcImageTaskResponse < TencentCloud::Common::AbstractModel
7771
+ # @param TaskId: 返回的任务ID。
7772
+ # @type TaskId: String
7773
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7774
+ # @type RequestId: String
7775
+
7776
+ attr_accessor :TaskId, :RequestId
7777
+
7778
+ def initialize(taskid=nil, requestid=nil)
7779
+ @TaskId = taskid
7780
+ @RequestId = requestid
7781
+ end
7782
+
7783
+ def deserialize(params)
7784
+ @TaskId = params['TaskId']
7785
+ @RequestId = params['RequestId']
7786
+ end
7787
+ end
7788
+
7789
+ # CreateAigcVideoTask请求参数结构体
7790
+ class CreateAigcVideoTaskRequest < TencentCloud::Common::AbstractModel
7791
+ # @param ModelName: 模型名称。
7792
+ # 当前支持的模型列表:
7793
+ # Hailuo,
7794
+ # Kling,
7795
+ # Jimeng,
7796
+ # Vidu,
7797
+ # OS,
7798
+ # GV。
7799
+ # @type ModelName: String
7800
+ # @param ModelVersion: 指定模型特定版本号。默认使用系统当前所支持的模型稳定版本。
7801
+ # 1. Hailuo, 可选[02、2.3]。
7802
+ # 2. Kling,可选[2.0、2.1、2.5]。
7803
+ # 3. Jimeng, 可选[3.0pro]。
7804
+ # 4. Vidu,可选[q2、q2-pro、q2-turbo]。
7805
+ # 4. GV, 可选[3.1]。
7806
+ # 5. OS,可选[2.0]。
7807
+ # @type ModelVersion: String
7808
+ # @param Prompt: 生成视频的描述。(注:最大支持2000字符)。当未传入图片时,此参数必填。
7809
+ # @type Prompt: String
7810
+ # @param NegativePrompt: 用于描述您想要阻止模型生成的内容。
7811
+ # 注意:部分模型支持。
7812
+ # 例如:
7813
+ # 顶部照明、明亮的色彩
7814
+ # 人物、动物
7815
+ # 多辆汽车、风。
7816
+ # @type NegativePrompt: String
7817
+ # @param EnhancePrompt: 默认取值为False,模型会严格地遵循指令。如果需要更精细的prompt获得最佳效果,可将此参数设置为True,将自动优化传入的prompt,以提升生成质量。
7818
+ # @type EnhancePrompt: Boolean
7819
+ # @param ImageUrl: 用于指导视频生成的图片 URL。该URL需外网可访问。
7820
+ # 注意:
7821
+ # 1. 推荐图片大小不超过10M,不同模型大小限制不相同。
7822
+ # 2. 支持的图片格式:jpeg、png。
7823
+ # 3. 使用OS模型时,需输入图片尺寸为: 1280x720、720x1280。
7824
+ # @type ImageUrl: String
7825
+ # @param LastImageUrl: 模型将以此参数传入的图片作为尾帧画面来生成视频。
7826
+ # 支持此参数的模型:
7827
+ # 1. GV,传入尾帧图片时,必须同时传入ImageUrl作为首帧。
7828
+ # 2. Kling, 在Resolution:1080P的情况下 2.1版本支持首位帧。
7829
+ # 3. Vidu, q2-pro, q2-turbo 支持首尾帧。
7830
+
7831
+ # 注意:
7832
+ # 1. 推荐图片大小不超过10M,各模型限制不同。
7833
+ # 2. 支持的图片格式:jpeg、png。
7834
+ # @type LastImageUrl: String
7835
+ # @param ImageInfos: 最多包含三张素材资源图片的列表,用于描述模型在生成视频时要使用的资源图片。
7836
+
7837
+ # 支持多图输入的模型:
7838
+ # 1. GV,使用多图输入时,不可使用ImageUrl和LastImageUrl。
7839
+ # 2. Vidu,支持多图参考生视频。q2模型1-7张图片,可通过ImageInfos里面的ReferenceType作为主体id来传入。
7840
+
7841
+ # 注意:
7842
+ # 1. 图片大小不超过10M。
7843
+ # 2. 支持的图片格式:jpeg、png。
7844
+ # @type ImageInfos: Array
7845
+ # @param Duration: 生成视频的时长。
7846
+ # 注意:
7847
+ # 1. Kling支持 5、10秒。默认: 5秒。
7848
+ # 2. Jimeng支持5、10秒。 默认: 5秒。
7849
+ # 3. Hailuo的std模式可支持6、10秒,其他仅6秒。默认:6秒。
7850
+ # 4. Vidu支持1-10秒。
7851
+ # 4. GV支持 8秒。 默认:8秒。
7852
+ # 5. OS支持4、8、12秒。 默认:8秒。
7853
+ # @type Duration: Integer
7854
+ # @param ExtraParameters: 用于传入模型要求的额外参数。
7855
+ # @type ExtraParameters: :class:`Tencentcloud::Mps.v20190612.models.AigcVideoExtraParam`
7856
+ # @param StoreCosParam: 文件结果指定存储Cos桶信息。 注意:需开通Cos,创建并授权MPS_QcsRole角色。
7857
+ # @type StoreCosParam: :class:`Tencentcloud::Mps.v20190612.models.AigcStoreCosParam`
7858
+ # @param Operator: 接口操作者名称。
7859
+ # @type Operator: String
7860
+
7861
+ attr_accessor :ModelName, :ModelVersion, :Prompt, :NegativePrompt, :EnhancePrompt, :ImageUrl, :LastImageUrl, :ImageInfos, :Duration, :ExtraParameters, :StoreCosParam, :Operator
7862
+
7863
+ def initialize(modelname=nil, modelversion=nil, prompt=nil, negativeprompt=nil, enhanceprompt=nil, imageurl=nil, lastimageurl=nil, imageinfos=nil, duration=nil, extraparameters=nil, storecosparam=nil, operator=nil)
7864
+ @ModelName = modelname
7865
+ @ModelVersion = modelversion
7866
+ @Prompt = prompt
7867
+ @NegativePrompt = negativeprompt
7868
+ @EnhancePrompt = enhanceprompt
7869
+ @ImageUrl = imageurl
7870
+ @LastImageUrl = lastimageurl
7871
+ @ImageInfos = imageinfos
7872
+ @Duration = duration
7873
+ @ExtraParameters = extraparameters
7874
+ @StoreCosParam = storecosparam
7875
+ @Operator = operator
7876
+ end
7877
+
7878
+ def deserialize(params)
7879
+ @ModelName = params['ModelName']
7880
+ @ModelVersion = params['ModelVersion']
7881
+ @Prompt = params['Prompt']
7882
+ @NegativePrompt = params['NegativePrompt']
7883
+ @EnhancePrompt = params['EnhancePrompt']
7884
+ @ImageUrl = params['ImageUrl']
7885
+ @LastImageUrl = params['LastImageUrl']
7886
+ unless params['ImageInfos'].nil?
7887
+ @ImageInfos = []
7888
+ params['ImageInfos'].each do |i|
7889
+ aigcvideoreferenceimageinfo_tmp = AigcVideoReferenceImageInfo.new
7890
+ aigcvideoreferenceimageinfo_tmp.deserialize(i)
7891
+ @ImageInfos << aigcvideoreferenceimageinfo_tmp
7892
+ end
7893
+ end
7894
+ @Duration = params['Duration']
7895
+ unless params['ExtraParameters'].nil?
7896
+ @ExtraParameters = AigcVideoExtraParam.new
7897
+ @ExtraParameters.deserialize(params['ExtraParameters'])
7898
+ end
7899
+ unless params['StoreCosParam'].nil?
7900
+ @StoreCosParam = AigcStoreCosParam.new
7901
+ @StoreCosParam.deserialize(params['StoreCosParam'])
7902
+ end
7903
+ @Operator = params['Operator']
7904
+ end
7905
+ end
7906
+
7907
+ # CreateAigcVideoTask返回参数结构体
7908
+ class CreateAigcVideoTaskResponse < TencentCloud::Common::AbstractModel
7909
+ # @param TaskId: 任务创建成功后,返回的任务ID。
7910
+ # 调用查询接口,轮询获取任务进度及生成结果。
7911
+ # @type TaskId: String
7912
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7913
+ # @type RequestId: String
7914
+
7915
+ attr_accessor :TaskId, :RequestId
7916
+
7917
+ def initialize(taskid=nil, requestid=nil)
7918
+ @TaskId = taskid
7919
+ @RequestId = requestid
7920
+ end
7921
+
7922
+ def deserialize(params)
7923
+ @TaskId = params['TaskId']
7924
+ @RequestId = params['RequestId']
7925
+ end
7926
+ end
7927
+
7540
7928
  # CreateAnimatedGraphicsTemplate请求参数结构体
7541
7929
  class CreateAnimatedGraphicsTemplateRequest < TencentCloud::Common::AbstractModel
7542
7930
  # @param Fps: 帧率,取值范围:[1, 30],单位:Hz。
@@ -9314,7 +9702,6 @@ module TencentCloud
9314
9702
  # `iw`:希伯来语
9315
9703
  # `ja`:日语
9316
9704
  # `jv`:爪哇语
9317
- # `jw`:爪哇语
9318
9705
  # `ka`:格鲁吉亚语
9319
9706
  # `kk`:哈萨克语
9320
9707
  # `km`:高棉语
@@ -9401,7 +9788,6 @@ module TencentCloud
9401
9788
  # `th`:泰语
9402
9789
  # `ti`:提格里尼亚语
9403
9790
  # `tk`:土库曼语
9404
- # `tl`:菲律宾语(塔加拉语)
9405
9791
  # `tn`:茨瓦纳语
9406
9792
  # `tr`:土耳其语
9407
9793
  # `ts`:聪加语
@@ -9429,10 +9815,12 @@ module TencentCloud
9429
9815
 
9430
9816
  # **注意**:不传的情况下默认类型为 ASR识别字幕
9431
9817
  # @type ProcessType: Integer
9818
+ # @param SelectingSubtitleAreasConfig: 字幕OCR提取框选区域配置
9819
+ # @type SelectingSubtitleAreasConfig: :class:`Tencentcloud::Mps.v20190612.models.SelectingSubtitleAreasConfig`
9432
9820
 
9433
- attr_accessor :Name, :VideoSrcLanguage, :SubtitleType, :Comment, :SubtitleFormat, :AsrHotWordsConfigure, :TranslateSwitch, :TranslateDstLanguage, :ProcessType
9821
+ attr_accessor :Name, :VideoSrcLanguage, :SubtitleType, :Comment, :SubtitleFormat, :AsrHotWordsConfigure, :TranslateSwitch, :TranslateDstLanguage, :ProcessType, :SelectingSubtitleAreasConfig
9434
9822
 
9435
- def initialize(name=nil, videosrclanguage=nil, subtitletype=nil, comment=nil, subtitleformat=nil, asrhotwordsconfigure=nil, translateswitch=nil, translatedstlanguage=nil, processtype=nil)
9823
+ def initialize(name=nil, videosrclanguage=nil, subtitletype=nil, comment=nil, subtitleformat=nil, asrhotwordsconfigure=nil, translateswitch=nil, translatedstlanguage=nil, processtype=nil, selectingsubtitleareasconfig=nil)
9436
9824
  @Name = name
9437
9825
  @VideoSrcLanguage = videosrclanguage
9438
9826
  @SubtitleType = subtitletype
@@ -9442,6 +9830,7 @@ module TencentCloud
9442
9830
  @TranslateSwitch = translateswitch
9443
9831
  @TranslateDstLanguage = translatedstlanguage
9444
9832
  @ProcessType = processtype
9833
+ @SelectingSubtitleAreasConfig = selectingsubtitleareasconfig
9445
9834
  end
9446
9835
 
9447
9836
  def deserialize(params)
@@ -9457,6 +9846,10 @@ module TencentCloud
9457
9846
  @TranslateSwitch = params['TranslateSwitch']
9458
9847
  @TranslateDstLanguage = params['TranslateDstLanguage']
9459
9848
  @ProcessType = params['ProcessType']
9849
+ unless params['SelectingSubtitleAreasConfig'].nil?
9850
+ @SelectingSubtitleAreasConfig = SelectingSubtitleAreasConfig.new
9851
+ @SelectingSubtitleAreasConfig.deserialize(params['SelectingSubtitleAreasConfig'])
9852
+ end
9460
9853
  end
9461
9854
  end
9462
9855
 
@@ -11238,6 +11631,98 @@ module TencentCloud
11238
11631
  end
11239
11632
  end
11240
11633
 
11634
+ # DescribeAigcImageTask请求参数结构体
11635
+ class DescribeAigcImageTaskRequest < TencentCloud::Common::AbstractModel
11636
+ # @param TaskId: 创建的AIGC生图片任务ID。
11637
+ # @type TaskId: String
11638
+
11639
+ attr_accessor :TaskId
11640
+
11641
+ def initialize(taskid=nil)
11642
+ @TaskId = taskid
11643
+ end
11644
+
11645
+ def deserialize(params)
11646
+ @TaskId = params['TaskId']
11647
+ end
11648
+ end
11649
+
11650
+ # DescribeAigcImageTask返回参数结构体
11651
+ class DescribeAigcImageTaskResponse < TencentCloud::Common::AbstractModel
11652
+ # @param Status: 任务当前状态。 WAIT:等待中, RUN:执行中, FAIL:任务失败, DONE:任务成功。
11653
+ # @type Status: String
11654
+ # @param ImageUrls: 当任务状态为 DONE时,返回的图片Url列表,图片存储12小时,请尽快取走使用。
11655
+ # @type ImageUrls: Array
11656
+ # @param Message: 当任务状态为 FAIL时,返回失败信息。
11657
+ # @type Message: String
11658
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11659
+ # @type RequestId: String
11660
+
11661
+ attr_accessor :Status, :ImageUrls, :Message, :RequestId
11662
+
11663
+ def initialize(status=nil, imageurls=nil, message=nil, requestid=nil)
11664
+ @Status = status
11665
+ @ImageUrls = imageurls
11666
+ @Message = message
11667
+ @RequestId = requestid
11668
+ end
11669
+
11670
+ def deserialize(params)
11671
+ @Status = params['Status']
11672
+ @ImageUrls = params['ImageUrls']
11673
+ @Message = params['Message']
11674
+ @RequestId = params['RequestId']
11675
+ end
11676
+ end
11677
+
11678
+ # DescribeAigcVideoTask请求参数结构体
11679
+ class DescribeAigcVideoTaskRequest < TencentCloud::Common::AbstractModel
11680
+ # @param TaskId: 创建AIGC生视频任务时,返回的任务ID。
11681
+ # @type TaskId: String
11682
+
11683
+ attr_accessor :TaskId
11684
+
11685
+ def initialize(taskid=nil)
11686
+ @TaskId = taskid
11687
+ end
11688
+
11689
+ def deserialize(params)
11690
+ @TaskId = params['TaskId']
11691
+ end
11692
+ end
11693
+
11694
+ # DescribeAigcVideoTask返回参数结构体
11695
+ class DescribeAigcVideoTaskResponse < TencentCloud::Common::AbstractModel
11696
+ # @param Status: 任务当前状态。 WAIT:等待中, RUN:执行中, FAIL:任务失败, DONE:任务成功。
11697
+ # @type Status: String
11698
+ # @param VideoUrls: 当任务状态为 DONE时,返回视频Url列表,视频存储12小时,请尽快取走使用。
11699
+ # @type VideoUrls: Array
11700
+ # @param Resolution: 输出视频的分辨率。示例:1080*720;
11701
+ # @type Resolution: String
11702
+ # @param Message: 当任务状态为 FAIL时,返回失败信息。
11703
+ # @type Message: String
11704
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11705
+ # @type RequestId: String
11706
+
11707
+ attr_accessor :Status, :VideoUrls, :Resolution, :Message, :RequestId
11708
+
11709
+ def initialize(status=nil, videourls=nil, resolution=nil, message=nil, requestid=nil)
11710
+ @Status = status
11711
+ @VideoUrls = videourls
11712
+ @Resolution = resolution
11713
+ @Message = message
11714
+ @RequestId = requestid
11715
+ end
11716
+
11717
+ def deserialize(params)
11718
+ @Status = params['Status']
11719
+ @VideoUrls = params['VideoUrls']
11720
+ @Resolution = params['Resolution']
11721
+ @Message = params['Message']
11722
+ @RequestId = params['RequestId']
11723
+ end
11724
+ end
11725
+
11241
11726
  # DescribeAnimatedGraphicsTemplates请求参数结构体
11242
11727
  class DescribeAnimatedGraphicsTemplatesRequest < TencentCloud::Common::AbstractModel
11243
11728
  # @param Definitions: 转动图模板唯一标识过滤条件,数组长度限制:100。
@@ -22149,7 +22634,6 @@ module TencentCloud
22149
22634
  # `iw`:希伯来语
22150
22635
  # `ja`:日语
22151
22636
  # `jv`:爪哇语
22152
- # `jw`:爪哇语
22153
22637
  # `ka`:格鲁吉亚语
22154
22638
  # `kk`:哈萨克语
22155
22639
  # `km`:高棉语
@@ -22236,7 +22720,6 @@ module TencentCloud
22236
22720
  # `th`:泰语
22237
22721
  # `ti`:提格里尼亚语
22238
22722
  # `tk`:土库曼语
22239
- # `tl`:菲律宾语(塔加拉语)
22240
22723
  # `tn`:茨瓦纳语
22241
22724
  # `tr`:土耳其语
22242
22725
  # `ts`:聪加语
@@ -22264,10 +22747,12 @@ module TencentCloud
22264
22747
 
22265
22748
  # **注意**:不传的情况下,默认是ASR方式
22266
22749
  # @type ProcessType: Integer
22750
+ # @param SelectingSubtitleAreasConfig: 字幕OCR提取框选区域配置
22751
+ # @type SelectingSubtitleAreasConfig: :class:`Tencentcloud::Mps.v20190612.models.SelectingSubtitleAreasConfig`
22267
22752
 
22268
- attr_accessor :Definition, :TranslateSwitch, :Name, :Comment, :VideoSrcLanguage, :SubtitleFormat, :SubtitleType, :AsrHotWordsConfigure, :TranslateDstLanguage, :ProcessType
22753
+ attr_accessor :Definition, :TranslateSwitch, :Name, :Comment, :VideoSrcLanguage, :SubtitleFormat, :SubtitleType, :AsrHotWordsConfigure, :TranslateDstLanguage, :ProcessType, :SelectingSubtitleAreasConfig
22269
22754
 
22270
- def initialize(definition=nil, translateswitch=nil, name=nil, comment=nil, videosrclanguage=nil, subtitleformat=nil, subtitletype=nil, asrhotwordsconfigure=nil, translatedstlanguage=nil, processtype=nil)
22755
+ def initialize(definition=nil, translateswitch=nil, name=nil, comment=nil, videosrclanguage=nil, subtitleformat=nil, subtitletype=nil, asrhotwordsconfigure=nil, translatedstlanguage=nil, processtype=nil, selectingsubtitleareasconfig=nil)
22271
22756
  @Definition = definition
22272
22757
  @TranslateSwitch = translateswitch
22273
22758
  @Name = name
@@ -22278,6 +22763,7 @@ module TencentCloud
22278
22763
  @AsrHotWordsConfigure = asrhotwordsconfigure
22279
22764
  @TranslateDstLanguage = translatedstlanguage
22280
22765
  @ProcessType = processtype
22766
+ @SelectingSubtitleAreasConfig = selectingsubtitleareasconfig
22281
22767
  end
22282
22768
 
22283
22769
  def deserialize(params)
@@ -22294,6 +22780,10 @@ module TencentCloud
22294
22780
  end
22295
22781
  @TranslateDstLanguage = params['TranslateDstLanguage']
22296
22782
  @ProcessType = params['ProcessType']
22783
+ unless params['SelectingSubtitleAreasConfig'].nil?
22784
+ @SelectingSubtitleAreasConfig = SelectingSubtitleAreasConfig.new
22785
+ @SelectingSubtitleAreasConfig.deserialize(params['SelectingSubtitleAreasConfig'])
22786
+ end
22297
22787
  end
22298
22788
  end
22299
22789
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-mps
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1191
4
+ version: 3.0.1192
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-28 00:00:00.000000000 Z
11
+ date: 2025-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common