tencentcloud-sdk-ai3d 3.0.1140 → 3.0.1142
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/v20250513/client.rb +50 -0
- data/lib/v20250513/models.rb +117 -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: cf5a15b2c587bda02e259279da99cc33a63d150f
|
4
|
+
data.tar.gz: 39cfaab8c56a027d04ec66a97bca1105f87aedd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 700d86c8c4dc373288b0d4ad35d4fd8562ef322df20f664c5ba04e8445ac6a2023219815f06c7a387ce6dc543f70519a172e086cc3b593738cde3957547f3cb7
|
7
|
+
data.tar.gz: 3a16893eeb687319f889e95516b9adfd54cc486937a8cb95d96e675a100f9282b04b9f2f1f7a1ffbf722d460059f6fff9bff0f77209a17e03341db8668498ca9
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1142
|
data/lib/v20250513/client.rb
CHANGED
@@ -79,6 +79,31 @@ module TencentCloud
|
|
79
79
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
80
80
|
end
|
81
81
|
|
82
|
+
# 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
83
|
+
# 默认提供3个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
84
|
+
|
85
|
+
# @param request: Request instance for QueryHunyuanTo3DRapidJob.
|
86
|
+
# @type request: :class:`Tencentcloud::ai3d::V20250513::QueryHunyuanTo3DRapidJobRequest`
|
87
|
+
# @rtype: :class:`Tencentcloud::ai3d::V20250513::QueryHunyuanTo3DRapidJobResponse`
|
88
|
+
def QueryHunyuanTo3DRapidJob(request)
|
89
|
+
body = send_request('QueryHunyuanTo3DRapidJob', request.serialize)
|
90
|
+
response = JSON.parse(body)
|
91
|
+
if response['Response'].key?('Error') == false
|
92
|
+
model = QueryHunyuanTo3DRapidJobResponse.new
|
93
|
+
model.deserialize(response['Response'])
|
94
|
+
model
|
95
|
+
else
|
96
|
+
code = response['Response']['Error']['Code']
|
97
|
+
message = response['Response']['Error']['Message']
|
98
|
+
reqid = response['Response']['RequestId']
|
99
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
100
|
+
end
|
101
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
102
|
+
raise e
|
103
|
+
rescue StandardError => e
|
104
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
105
|
+
end
|
106
|
+
|
82
107
|
# 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
83
108
|
# 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
84
109
|
|
@@ -129,6 +154,31 @@ module TencentCloud
|
|
129
154
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
130
155
|
end
|
131
156
|
|
157
|
+
# 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
158
|
+
# 默认提供3个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
159
|
+
|
160
|
+
# @param request: Request instance for SubmitHunyuanTo3DRapidJob.
|
161
|
+
# @type request: :class:`Tencentcloud::ai3d::V20250513::SubmitHunyuanTo3DRapidJobRequest`
|
162
|
+
# @rtype: :class:`Tencentcloud::ai3d::V20250513::SubmitHunyuanTo3DRapidJobResponse`
|
163
|
+
def SubmitHunyuanTo3DRapidJob(request)
|
164
|
+
body = send_request('SubmitHunyuanTo3DRapidJob', request.serialize)
|
165
|
+
response = JSON.parse(body)
|
166
|
+
if response['Response'].key?('Error') == false
|
167
|
+
model = SubmitHunyuanTo3DRapidJobResponse.new
|
168
|
+
model.deserialize(response['Response'])
|
169
|
+
model
|
170
|
+
else
|
171
|
+
code = response['Response']['Error']['Code']
|
172
|
+
message = response['Response']['Error']['Message']
|
173
|
+
reqid = response['Response']['RequestId']
|
174
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
175
|
+
end
|
176
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
177
|
+
raise e
|
178
|
+
rescue StandardError => e
|
179
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
180
|
+
end
|
181
|
+
|
132
182
|
|
133
183
|
end
|
134
184
|
end
|
data/lib/v20250513/models.rb
CHANGED
@@ -151,6 +151,61 @@ module TencentCloud
|
|
151
151
|
end
|
152
152
|
end
|
153
153
|
|
154
|
+
# QueryHunyuanTo3DRapidJob请求参数结构体
|
155
|
+
class QueryHunyuanTo3DRapidJobRequest < TencentCloud::Common::AbstractModel
|
156
|
+
# @param JobId: 任务ID。
|
157
|
+
# @type JobId: String
|
158
|
+
|
159
|
+
attr_accessor :JobId
|
160
|
+
|
161
|
+
def initialize(jobid=nil)
|
162
|
+
@JobId = jobid
|
163
|
+
end
|
164
|
+
|
165
|
+
def deserialize(params)
|
166
|
+
@JobId = params['JobId']
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
# QueryHunyuanTo3DRapidJob返回参数结构体
|
171
|
+
class QueryHunyuanTo3DRapidJobResponse < TencentCloud::Common::AbstractModel
|
172
|
+
# @param Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
|
173
|
+
# @type Status: String
|
174
|
+
# @param ErrorCode: 错误码
|
175
|
+
# @type ErrorCode: String
|
176
|
+
# @param ErrorMessage: 错误信息
|
177
|
+
# @type ErrorMessage: String
|
178
|
+
# @param ResultFile3Ds: 生成的3D文件数组。
|
179
|
+
# @type ResultFile3Ds: Array
|
180
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
181
|
+
# @type RequestId: String
|
182
|
+
|
183
|
+
attr_accessor :Status, :ErrorCode, :ErrorMessage, :ResultFile3Ds, :RequestId
|
184
|
+
|
185
|
+
def initialize(status=nil, errorcode=nil, errormessage=nil, resultfile3ds=nil, requestid=nil)
|
186
|
+
@Status = status
|
187
|
+
@ErrorCode = errorcode
|
188
|
+
@ErrorMessage = errormessage
|
189
|
+
@ResultFile3Ds = resultfile3ds
|
190
|
+
@RequestId = requestid
|
191
|
+
end
|
192
|
+
|
193
|
+
def deserialize(params)
|
194
|
+
@Status = params['Status']
|
195
|
+
@ErrorCode = params['ErrorCode']
|
196
|
+
@ErrorMessage = params['ErrorMessage']
|
197
|
+
unless params['ResultFile3Ds'].nil?
|
198
|
+
@ResultFile3Ds = []
|
199
|
+
params['ResultFile3Ds'].each do |i|
|
200
|
+
file3d_tmp = File3D.new
|
201
|
+
file3d_tmp.deserialize(i)
|
202
|
+
@ResultFile3Ds << file3d_tmp
|
203
|
+
end
|
204
|
+
end
|
205
|
+
@RequestId = params['RequestId']
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
154
209
|
# SubmitHunyuanTo3DJob请求参数结构体
|
155
210
|
class SubmitHunyuanTo3DJobRequest < TencentCloud::Common::AbstractModel
|
156
211
|
# @param Prompt: 文生3D,3D内容的描述,中文正向提示词。
|
@@ -320,6 +375,68 @@ module TencentCloud
|
|
320
375
|
end
|
321
376
|
end
|
322
377
|
|
378
|
+
# SubmitHunyuanTo3DRapidJob请求参数结构体
|
379
|
+
class SubmitHunyuanTo3DRapidJobRequest < TencentCloud::Common::AbstractModel
|
380
|
+
# @param Prompt: 文生3D,3D内容的描述,中文正向提示词。
|
381
|
+
# 最多支持200个 utf-8 字符。
|
382
|
+
# 文生3D, image、image_url和 prompt必填其一,且prompt和image/image_url不能同时存在。
|
383
|
+
# @type Prompt: String
|
384
|
+
# @param ImageBase64: 输入图 Base64 数据。
|
385
|
+
# 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
|
386
|
+
# 格式:jpg,png,jpeg,webp。
|
387
|
+
# ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
388
|
+
# @type ImageBase64: String
|
389
|
+
# @param ImageUrl: 输入图Url。
|
390
|
+
# 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
|
391
|
+
# 格式:jpg,png,jpeg,webp。
|
392
|
+
# ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
393
|
+
# @type ImageUrl: String
|
394
|
+
# @param ResultFormat: 生成模型的格式,仅限制生成一种格式。
|
395
|
+
# 生成模型文件组默认返回obj格式。
|
396
|
+
# 可选值:OBJ,GLB,STL,USDZ,FBX,MP4。
|
397
|
+
# @type ResultFormat: String
|
398
|
+
# @param EnablePBR: 是否开启 PBR材质生成,默认 false。
|
399
|
+
# @type EnablePBR: Boolean
|
400
|
+
|
401
|
+
attr_accessor :Prompt, :ImageBase64, :ImageUrl, :ResultFormat, :EnablePBR
|
402
|
+
|
403
|
+
def initialize(prompt=nil, imagebase64=nil, imageurl=nil, resultformat=nil, enablepbr=nil)
|
404
|
+
@Prompt = prompt
|
405
|
+
@ImageBase64 = imagebase64
|
406
|
+
@ImageUrl = imageurl
|
407
|
+
@ResultFormat = resultformat
|
408
|
+
@EnablePBR = enablepbr
|
409
|
+
end
|
410
|
+
|
411
|
+
def deserialize(params)
|
412
|
+
@Prompt = params['Prompt']
|
413
|
+
@ImageBase64 = params['ImageBase64']
|
414
|
+
@ImageUrl = params['ImageUrl']
|
415
|
+
@ResultFormat = params['ResultFormat']
|
416
|
+
@EnablePBR = params['EnablePBR']
|
417
|
+
end
|
418
|
+
end
|
419
|
+
|
420
|
+
# SubmitHunyuanTo3DRapidJob返回参数结构体
|
421
|
+
class SubmitHunyuanTo3DRapidJobResponse < TencentCloud::Common::AbstractModel
|
422
|
+
# @param JobId: 任务ID(有效期24小时)
|
423
|
+
# @type JobId: String
|
424
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
425
|
+
# @type RequestId: String
|
426
|
+
|
427
|
+
attr_accessor :JobId, :RequestId
|
428
|
+
|
429
|
+
def initialize(jobid=nil, requestid=nil)
|
430
|
+
@JobId = jobid
|
431
|
+
@RequestId = requestid
|
432
|
+
end
|
433
|
+
|
434
|
+
def deserialize(params)
|
435
|
+
@JobId = params['JobId']
|
436
|
+
@RequestId = params['RequestId']
|
437
|
+
end
|
438
|
+
end
|
439
|
+
|
323
440
|
# 多视角图片
|
324
441
|
class ViewImage < TencentCloud::Common::AbstractModel
|
325
442
|
# @param ViewType: 视角类型。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ai3d
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1142
|
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-09-
|
11
|
+
date: 2025-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|