tencentcloud-sdk-aiart 3.0.619 → 3.0.620

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: 6f6ea1fa5737cb7616e00656e64373615cf85325
4
- data.tar.gz: 894d0a266323611ee6cc718c7c125f21095027ea
3
+ metadata.gz: 9dc33565f793d4709192c0221345e4a1046cc3e5
4
+ data.tar.gz: c4d82ff377f6da3a2bbc3e65db3db526b70a79bd
5
5
  SHA512:
6
- metadata.gz: c9b7a4e3e121def0938a16151c0235b6ef6547a58cb7c9f24ff8d1ba69ea5f25d7c297c9d48627051fc4b99b266475d2745be3f529da5e965e3ad55b02c74d45
7
- data.tar.gz: 283e23488b167507052d4a64a64bf0a9cd0beec99bdc7e955dc41849881ecec94b7a3dced48409b4c479f2b695634858f98a62670e2728e3bd9bd7d4b07a384a
6
+ metadata.gz: cbfec0c168e34f9c1bde137a64a2a070ba63511cafc2f111e5d0d1e220d329fa333f5e5d6f05de51f7e4c1756360d68b1c3e2a2e496ce870154df0ed0e365f4d
7
+ data.tar.gz: 7f862237f5d118c02d37a4bfdc0fd22d503cd563b39fe11f064e0648ecf8472982bf5a37f56b2510c08694f51d57c393acad88421333d7b7aa1fcb382e73c8a9
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.619
1
+ 3.0.620
@@ -59,7 +59,7 @@ module TencentCloud
59
59
  end
60
60
 
61
61
  # 智能文生图接口将根据输入的描述文本,智能生成与之相关的结果图。
62
- # 输入:512个字符以内的描述性文本,推荐使用中文。
62
+ # 输入:256个字符以内的描述性文本,推荐使用中文。
63
63
  # 输出:对应风格及分辨率的 AI 生成图。
64
64
  # 可支持的风格详见 [智能文生图风格列表](https://cloud.tencent.com/document/product/1668/86249),请将列表中的“风格编号”传入 Styles 数组,建议选择一种风格。
65
65
 
@@ -30,17 +30,16 @@ module TencentCloud
30
30
  # 图片限制:单边分辨率小于2000,转成 Base64 字符串后小于 5MB。
31
31
  # @type InputUrl: String
32
32
  # @param Prompt: 文本描述。
33
- # 用于在输入图的基础上引导生成图效果,建议详细描述画面主体、细节、场景等,文本描述越丰富,生成效果越精美。推荐使用中文。最多支持512个 utf-8 字符。
34
- # 注意:如果不输入任何文本描述,可能导致较差的效果,建议根据期望的效果输入相应的文本描述。
33
+ # 用于在输入图的基础上引导生成图效果,增加生成结果中出现描述内容的可能。
34
+ # 推荐使用中文。最多支持256个 utf-8 字符。
35
35
  # @type Prompt: String
36
36
  # @param NegativePrompt: 反向文本描述。
37
37
  # 用于一定程度上从反面引导模型生成的走向,减少生成结果中出现描述内容的可能,但不能完全杜绝。
38
- # 推荐使用中文。最多可传512个 utf-8 字符。
38
+ # 推荐使用中文。最多可传256个 utf-8 字符。
39
39
  # @type NegativePrompt: String
40
40
  # @param Styles: 绘画风格。
41
41
  # 请在 [智能图生图风格列表](https://cloud.tencent.com/document/product/1668/86250) 中选择期望的风格,传入风格编号。
42
42
  # 推荐使用且只使用一种风格。不传默认使用201(日系动漫风格)。
43
- # 如果想要探索风格列表之外的风格,也可以尝试在 Prompt 中输入其他的风格描述。
44
43
  # @type Styles: Array
45
44
  # @param ResultConfig: 生成图结果的配置,包括输出图片分辨率和尺寸等。
46
45
  # @type ResultConfig: :class:`Tencentcloud::Aiart.v20221229.models.ResultConfig`
@@ -54,12 +53,14 @@ module TencentCloud
54
53
  # 默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
55
54
  # @type LogoParam: :class:`Tencentcloud::Aiart.v20221229.models.LogoParam`
56
55
  # @param Strength: 生成自由度。
57
- # Strength 值越小,生成图和原图越接近。取值范围0~1,不传默认为0.65
56
+ # Strength 值越小,生成图和原图越接近。取值范围0~1,不传默认为0.75
58
57
  # @type Strength: Float
58
+ # @param RspImgType: 返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。
59
+ # @type RspImgType: String
59
60
 
60
- attr_accessor :InputImage, :InputUrl, :Prompt, :NegativePrompt, :Styles, :ResultConfig, :LogoAdd, :LogoParam, :Strength
61
+ attr_accessor :InputImage, :InputUrl, :Prompt, :NegativePrompt, :Styles, :ResultConfig, :LogoAdd, :LogoParam, :Strength, :RspImgType
61
62
 
62
- def initialize(inputimage=nil, inputurl=nil, prompt=nil, negativeprompt=nil, styles=nil, resultconfig=nil, logoadd=nil, logoparam=nil, strength=nil)
63
+ def initialize(inputimage=nil, inputurl=nil, prompt=nil, negativeprompt=nil, styles=nil, resultconfig=nil, logoadd=nil, logoparam=nil, strength=nil, rspimgtype=nil)
63
64
  @InputImage = inputimage
64
65
  @InputUrl = inputurl
65
66
  @Prompt = prompt
@@ -69,6 +70,7 @@ module TencentCloud
69
70
  @LogoAdd = logoadd
70
71
  @LogoParam = logoparam
71
72
  @Strength = strength
73
+ @RspImgType = rspimgtype
72
74
  end
73
75
 
74
76
  def deserialize(params)
@@ -87,12 +89,15 @@ module TencentCloud
87
89
  @LogoParam.deserialize(params['LogoParam'])
88
90
  end
89
91
  @Strength = params['Strength']
92
+ @RspImgType = params['RspImgType']
90
93
  end
91
94
  end
92
95
 
93
96
  # ImageToImage返回参数结构体
94
97
  class ImageToImageResponse < TencentCloud::Common::AbstractModel
95
- # @param ResultImage: 返回的生成图 Base64 编码。
98
+ # @param ResultImage: 根据入参 RspImgType 填入不同,返回不同的内容。
99
+ # 如果传入 base64 则返回生成图 Base64 编码。
100
+ # 如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。
96
101
  # @type ResultImage: String
97
102
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
98
103
  # @type RequestId: String
@@ -190,16 +195,15 @@ module TencentCloud
190
195
  class TextToImageRequest < TencentCloud::Common::AbstractModel
191
196
  # @param Prompt: 文本描述。
192
197
  # 算法将根据输入的文本智能生成与之相关的图像。建议详细描述画面主体、细节、场景等,文本描述越丰富,生成效果越精美。
193
- # 不能为空,推荐使用中文。最多可传512个 utf-8 字符。
198
+ # 不能为空,推荐使用中文。最多可传256个 utf-8 字符。
194
199
  # @type Prompt: String
195
200
  # @param NegativePrompt: 反向文本描述。
196
201
  # 用于一定程度上从反面引导模型生成的走向,减少生成结果中出现描述内容的可能,但不能完全杜绝。
197
- # 推荐使用中文。最多可传512个 utf-8 字符。
202
+ # 推荐使用中文。最多可传256个 utf-8 字符。
198
203
  # @type NegativePrompt: String
199
204
  # @param Styles: 绘画风格。
200
205
  # 请在 [智能文生图风格列表](https://cloud.tencent.com/document/product/1668/86249) 中选择期望的风格,传入风格编号。
201
206
  # 推荐使用且只使用一种风格。不传默认使用201(日系动漫风格)。
202
- # 如果想要探索风格列表之外的风格,也可以尝试在 Prompt 中输入其他的风格描述。
203
207
  # @type Styles: Array
204
208
  # @param ResultConfig: 生成图结果的配置,包括输出图片分辨率和尺寸等。
205
209
  # @type ResultConfig: :class:`Tencentcloud::Aiart.v20221229.models.ResultConfig`
@@ -212,16 +216,19 @@ module TencentCloud
212
216
  # @param LogoParam: 标识内容设置。
213
217
  # 默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
214
218
  # @type LogoParam: :class:`Tencentcloud::Aiart.v20221229.models.LogoParam`
219
+ # @param RspImgType: 返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。
220
+ # @type RspImgType: String
215
221
 
216
- attr_accessor :Prompt, :NegativePrompt, :Styles, :ResultConfig, :LogoAdd, :LogoParam
222
+ attr_accessor :Prompt, :NegativePrompt, :Styles, :ResultConfig, :LogoAdd, :LogoParam, :RspImgType
217
223
 
218
- def initialize(prompt=nil, negativeprompt=nil, styles=nil, resultconfig=nil, logoadd=nil, logoparam=nil)
224
+ def initialize(prompt=nil, negativeprompt=nil, styles=nil, resultconfig=nil, logoadd=nil, logoparam=nil, rspimgtype=nil)
219
225
  @Prompt = prompt
220
226
  @NegativePrompt = negativeprompt
221
227
  @Styles = styles
222
228
  @ResultConfig = resultconfig
223
229
  @LogoAdd = logoadd
224
230
  @LogoParam = logoparam
231
+ @RspImgType = rspimgtype
225
232
  end
226
233
 
227
234
  def deserialize(params)
@@ -237,12 +244,15 @@ module TencentCloud
237
244
  @LogoParam = LogoParam.new
238
245
  @LogoParam.deserialize(params['LogoParam'])
239
246
  end
247
+ @RspImgType = params['RspImgType']
240
248
  end
241
249
  end
242
250
 
243
251
  # TextToImage返回参数结构体
244
252
  class TextToImageResponse < TencentCloud::Common::AbstractModel
245
- # @param ResultImage: 返回的生成图 Base64 编码。
253
+ # @param ResultImage: 根据入参 RspImgType 填入不同,返回不同的内容。
254
+ # 如果传入 base64 则返回生成图 Base64 编码。
255
+ # 如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。
246
256
  # @type ResultImage: String
247
257
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
248
258
  # @type RequestId: String
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.619
4
+ version: 3.0.620
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-24 00:00:00.000000000 Z
11
+ date: 2023-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common