tencentcloud-sdk-aiart 3.0.1103 → 3.0.1104

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: a2c1490d4c3574e5b26e8dc77742f9976dcbca97
4
- data.tar.gz: 354368cefe7ce866c9348ce3442ed391787417a0
3
+ metadata.gz: c9ed7bd3aac355e1fc4ab5759a03b3d9103229ce
4
+ data.tar.gz: 65371299ea3a3bfe5eca8f4d138da2099c6c8a96
5
5
  SHA512:
6
- metadata.gz: 31dec7e960a44515defc2aa831a53c8bfa87faa77b1d3da214508a659087e85ccbc6e079cc409d26fe73e4501453371069409d1970c347ba0009de3ca404a9b8
7
- data.tar.gz: 042e1e97dc0d599a69eb8893ddd0b45b194ef429adc35ef9886873e3059381a5a2e031d6f03d96de8f766d9c535e47b99c7c3f576edbc7d633eddf8d0b283444
6
+ metadata.gz: 107ec9cb08c87dca4bb83e88d7d1bb5f9f351033c3a086f79b72a89f6e01613124d0e4285da00632ef4cf3e15ada429a9dc7d6a6c3fe7672f50374c50d1144d4
7
+ data.tar.gz: b8ea7583d288690ae6cc637c486016e0d6192ddfd131b4450939e9be984d045ada57afef555526e504a3facd8f0bf68187b44d24d82e13f90a76922234979482
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1103
1
+ 3.0.1104
@@ -523,34 +523,6 @@ module TencentCloud
523
523
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
524
524
  end
525
525
 
526
- # **本接口已迁移至腾讯混元大模型-文生图轻量版,即将停止此处维护,可切换至 [文生图轻量版 API](https://cloud.tencent.com/document/product/1729/108738) 继续使用。**
527
-
528
- # 智能文生图接口基于文生图(标准版)模型,将根据输入的文本描述,智能生成与之相关的结果图。
529
-
530
- # 智能文生图默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
531
-
532
- # @param request: Request instance for TextToImage.
533
- # @type request: :class:`Tencentcloud::aiart::V20221229::TextToImageRequest`
534
- # @rtype: :class:`Tencentcloud::aiart::V20221229::TextToImageResponse`
535
- def TextToImage(request)
536
- body = send_request('TextToImage', request.serialize)
537
- response = JSON.parse(body)
538
- if response['Response'].key?('Error') == false
539
- model = TextToImageResponse.new
540
- model.deserialize(response['Response'])
541
- model
542
- else
543
- code = response['Response']['Error']['Code']
544
- message = response['Response']['Error']['Message']
545
- reqid = response['Response']['RequestId']
546
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
547
- end
548
- rescue TencentCloud::Common::TencentCloudSDKException => e
549
- raise e
550
- rescue StandardError => e
551
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
552
- end
553
-
554
526
  # 混元文生图接口,基于混元大模型,根据输入的文本描述智能生成图片
555
527
  # 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
556
528
 
@@ -1686,86 +1686,6 @@ module TencentCloud
1686
1686
  end
1687
1687
  end
1688
1688
 
1689
- # TextToImage请求参数结构体
1690
- class TextToImageRequest < TencentCloud::Common::AbstractModel
1691
- # @param Prompt: 文本描述。
1692
- # 算法将根据输入的文本智能生成与之相关的图像。建议详细描述画面主体、细节、场景等,文本描述越丰富,生成效果越精美。
1693
- # 不能为空,推荐使用中文。最多可传256个 utf-8 字符。
1694
- # @type Prompt: String
1695
- # @param NegativePrompt: 反向文本描述。
1696
- # 用于一定程度上从反面引导模型生成的走向,减少生成结果中出现描述内容的可能,但不能完全杜绝。
1697
- # 推荐使用中文。最多可传256个 utf-8 字符。
1698
- # @type NegativePrompt: String
1699
- # @param Styles: 绘画风格。
1700
- # 请在 [智能文生图风格列表](https://cloud.tencent.com/document/product/1668/86249) 中选择期望的风格,传入风格编号。
1701
- # 推荐使用且只使用一种风格。不传默认使用201(日系动漫风格)。
1702
- # @type Styles: Array
1703
- # @param ResultConfig: 生成图结果的配置,包括输出图片分辨率和尺寸等。
1704
- # 支持生成以下分辨率的图片: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)、1080:1920(9:16)、1920:1080(16:9),不传默认使用768:768。
1705
- # @type ResultConfig: :class:`Tencentcloud::Aiart.v20221229.models.ResultConfig`
1706
- # @param LogoAdd: 为生成结果图添加标识的开关,默认为1。
1707
- # 1:添加标识。
1708
- # 0:不添加标识。
1709
- # 其他数值:默认按1处理。
1710
- # 建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。
1711
- # @type LogoAdd: Integer
1712
- # @param LogoParam: 标识内容设置。
1713
- # 默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
1714
- # @type LogoParam: :class:`Tencentcloud::Aiart.v20221229.models.LogoParam`
1715
- # @param RspImgType: 返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。
1716
- # @type RspImgType: String
1717
-
1718
- attr_accessor :Prompt, :NegativePrompt, :Styles, :ResultConfig, :LogoAdd, :LogoParam, :RspImgType
1719
-
1720
- def initialize(prompt=nil, negativeprompt=nil, styles=nil, resultconfig=nil, logoadd=nil, logoparam=nil, rspimgtype=nil)
1721
- @Prompt = prompt
1722
- @NegativePrompt = negativeprompt
1723
- @Styles = styles
1724
- @ResultConfig = resultconfig
1725
- @LogoAdd = logoadd
1726
- @LogoParam = logoparam
1727
- @RspImgType = rspimgtype
1728
- end
1729
-
1730
- def deserialize(params)
1731
- @Prompt = params['Prompt']
1732
- @NegativePrompt = params['NegativePrompt']
1733
- @Styles = params['Styles']
1734
- unless params['ResultConfig'].nil?
1735
- @ResultConfig = ResultConfig.new
1736
- @ResultConfig.deserialize(params['ResultConfig'])
1737
- end
1738
- @LogoAdd = params['LogoAdd']
1739
- unless params['LogoParam'].nil?
1740
- @LogoParam = LogoParam.new
1741
- @LogoParam.deserialize(params['LogoParam'])
1742
- end
1743
- @RspImgType = params['RspImgType']
1744
- end
1745
- end
1746
-
1747
- # TextToImage返回参数结构体
1748
- class TextToImageResponse < TencentCloud::Common::AbstractModel
1749
- # @param ResultImage: 根据入参 RspImgType 填入不同,返回不同的内容。
1750
- # 如果传入 base64 则返回生成图 Base64 编码。
1751
- # 如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。
1752
- # @type ResultImage: String
1753
- # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1754
- # @type RequestId: String
1755
-
1756
- attr_accessor :ResultImage, :RequestId
1757
-
1758
- def initialize(resultimage=nil, requestid=nil)
1759
- @ResultImage = resultimage
1760
- @RequestId = requestid
1761
- end
1762
-
1763
- def deserialize(params)
1764
- @ResultImage = params['ResultImage']
1765
- @RequestId = params['RequestId']
1766
- end
1767
- end
1768
-
1769
1689
  # UploadTrainPortraitImages请求参数结构体
1770
1690
  class UploadTrainPortraitImagesRequest < TencentCloud::Common::AbstractModel
1771
1691
  # @param ModelId: 写真模型 ID。由英文大小写字母、数字及下划线组成。
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.1103
4
+ version: 3.0.1104
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-07-17 00:00:00.000000000 Z
11
+ date: 2025-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common