tencentcloud-sdk-python-ai3d 3.0.1489__tar.gz → 3.1.8__tar.gz

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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_ai3d-3.0.1489 → tencentcloud_sdk_python_ai3d-3.1.8}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_ai3d-3.0.1489 → tencentcloud_sdk_python_ai3d-3.1.8}/setup.py +2 -1
  3. {tencentcloud_sdk_python_ai3d-3.0.1489 → tencentcloud_sdk_python_ai3d-3.1.8}/tencentcloud/__init__.py +1 -1
  4. tencentcloud_sdk_python_ai3d-3.1.8/tencentcloud/ai3d/v20250513/ai3d_client_async.py +102 -0
  5. {tencentcloud_sdk_python_ai3d-3.0.1489 → tencentcloud_sdk_python_ai3d-3.1.8}/tencentcloud/ai3d/v20250513/models.py +33 -18
  6. {tencentcloud_sdk_python_ai3d-3.0.1489 → tencentcloud_sdk_python_ai3d-3.1.8}/tencentcloud_sdk_python_ai3d.egg-info/PKG-INFO +2 -2
  7. {tencentcloud_sdk_python_ai3d-3.0.1489 → tencentcloud_sdk_python_ai3d-3.1.8}/tencentcloud_sdk_python_ai3d.egg-info/SOURCES.txt +1 -0
  8. tencentcloud_sdk_python_ai3d-3.1.8/tencentcloud_sdk_python_ai3d.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_ai3d-3.0.1489/tencentcloud_sdk_python_ai3d.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_ai3d-3.0.1489 → tencentcloud_sdk_python_ai3d-3.1.8}/README.rst +0 -0
  11. {tencentcloud_sdk_python_ai3d-3.0.1489 → tencentcloud_sdk_python_ai3d-3.1.8}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_ai3d-3.0.1489 → tencentcloud_sdk_python_ai3d-3.1.8}/tencentcloud/ai3d/__init__.py +0 -0
  13. {tencentcloud_sdk_python_ai3d-3.0.1489 → tencentcloud_sdk_python_ai3d-3.1.8}/tencentcloud/ai3d/v20250513/__init__.py +0 -0
  14. {tencentcloud_sdk_python_ai3d-3.0.1489 → tencentcloud_sdk_python_ai3d-3.1.8}/tencentcloud/ai3d/v20250513/ai3d_client.py +0 -0
  15. {tencentcloud_sdk_python_ai3d-3.0.1489 → tencentcloud_sdk_python_ai3d-3.1.8}/tencentcloud/ai3d/v20250513/errorcodes.py +0 -0
  16. {tencentcloud_sdk_python_ai3d-3.0.1489 → tencentcloud_sdk_python_ai3d-3.1.8}/tencentcloud_sdk_python_ai3d.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_ai3d-3.0.1489 → tencentcloud_sdk_python_ai3d-3.1.8}/tencentcloud_sdk_python_ai3d.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ai3d
3
- Version: 3.0.1489
3
+ Version: 3.1.8
4
4
  Summary: Tencent Cloud Ai3d SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.0.1489
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.8
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,8 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-ai3d',
11
- install_requires=["tencentcloud-sdk-python-common>=3.0.1489,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.8,<4.0.0"],
12
+
12
13
  version=tencentcloud.__version__,
13
14
  description='Tencent Cloud Ai3d SDK for Python',
14
15
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1489'
17
+ __version__ = '3.1.8'
@@ -0,0 +1,102 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+
18
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.ai3d.v20250513 import models
20
+ from typing import Dict
21
+
22
+
23
+ class Ai3dClient(AbstractClient):
24
+ _apiVersion = '2025-05-13'
25
+ _endpoint = 'ai3d.tencentcloudapi.com'
26
+ _service = 'ai3d'
27
+
28
+ async def QueryHunyuanTo3DProJob(
29
+ self,
30
+ request: models.QueryHunyuanTo3DProJobRequest,
31
+ opts: Dict = None,
32
+ ) -> models.QueryHunyuanTo3DProJobResponse:
33
+ """
34
+ 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
35
+ 默认提供3个并发,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
36
+ """
37
+
38
+ kwargs = {}
39
+ kwargs["action"] = "QueryHunyuanTo3DProJob"
40
+ kwargs["params"] = request._serialize()
41
+ kwargs["resp_cls"] = models.QueryHunyuanTo3DProJobResponse
42
+ kwargs["headers"] = request.headers
43
+ kwargs["opts"] = opts or {}
44
+
45
+ return await self.call_and_deserialize(**kwargs)
46
+
47
+ async def QueryHunyuanTo3DRapidJob(
48
+ self,
49
+ request: models.QueryHunyuanTo3DRapidJobRequest,
50
+ opts: Dict = None,
51
+ ) -> models.QueryHunyuanTo3DRapidJobResponse:
52
+ """
53
+ 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
54
+ 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
55
+ """
56
+
57
+ kwargs = {}
58
+ kwargs["action"] = "QueryHunyuanTo3DRapidJob"
59
+ kwargs["params"] = request._serialize()
60
+ kwargs["resp_cls"] = models.QueryHunyuanTo3DRapidJobResponse
61
+ kwargs["headers"] = request.headers
62
+ kwargs["opts"] = opts or {}
63
+
64
+ return await self.call_and_deserialize(**kwargs)
65
+
66
+ async def SubmitHunyuanTo3DProJob(
67
+ self,
68
+ request: models.SubmitHunyuanTo3DProJobRequest,
69
+ opts: Dict = None,
70
+ ) -> models.SubmitHunyuanTo3DProJobResponse:
71
+ """
72
+ 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
73
+ 默认提供3个并发,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
74
+ """
75
+
76
+ kwargs = {}
77
+ kwargs["action"] = "SubmitHunyuanTo3DProJob"
78
+ kwargs["params"] = request._serialize()
79
+ kwargs["resp_cls"] = models.SubmitHunyuanTo3DProJobResponse
80
+ kwargs["headers"] = request.headers
81
+ kwargs["opts"] = opts or {}
82
+
83
+ return await self.call_and_deserialize(**kwargs)
84
+
85
+ async def SubmitHunyuanTo3DRapidJob(
86
+ self,
87
+ request: models.SubmitHunyuanTo3DRapidJobRequest,
88
+ opts: Dict = None,
89
+ ) -> models.SubmitHunyuanTo3DRapidJobResponse:
90
+ """
91
+ 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
92
+ 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
93
+ """
94
+
95
+ kwargs = {}
96
+ kwargs["action"] = "SubmitHunyuanTo3DRapidJob"
97
+ kwargs["params"] = request._serialize()
98
+ kwargs["resp_cls"] = models.SubmitHunyuanTo3DRapidJobResponse
99
+ kwargs["headers"] = request.headers
100
+ kwargs["opts"] = opts or {}
101
+
102
+ return await self.call_and_deserialize(**kwargs)
@@ -351,17 +351,17 @@ class SubmitHunyuanTo3DProJobRequest(AbstractModel):
351
351
  r"""
352
352
  :param _Prompt: 文生3D,3D内容的描述,中文正向提示词。
353
353
  最多支持1024个 utf-8 字符。
354
- 文生3D, imageimage_urlprompt必填其一,且promptimage/image_url不能同时存在。
354
+ ImageBase64ImageUrlPrompt必填其一,且PromptImageBase64/ImageUrl不能同时存在。
355
355
  :type Prompt: str
356
356
  :param _ImageBase64: 输入图 Base64 数据。
357
- 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m
357
+ 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过5m
358
358
  格式:jpg,png,jpeg,webp。
359
359
  ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
360
360
  :type ImageBase64: str
361
361
  :param _ImageUrl: 输入图Url。
362
- 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m
362
+ 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过5m
363
363
  格式:jpg,png,jpeg,webp。
364
- ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
364
+ ImageBase64ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
365
365
  :type ImageUrl: str
366
366
  :param _MultiViewImages: 多视角的模型图片,视角参考值:
367
367
  left:左视图;
@@ -369,7 +369,7 @@ right:右视图;
369
369
  back:后视图;
370
370
 
371
371
  每个视角仅限制一张图片。
372
- ●图片大小限制:编码后大小不可超过8M
372
+ ●图片大小限制:编码后大小不可超过8M。(base64编码后会大30%左右,建议实际输入图片不超过5m)
373
373
  ●图片分辨率限制:单边分辨率小于5000且大于128。
374
374
  ●支持图片格式:支持jpg或png
375
375
  :type MultiViewImages: list of ViewImage
@@ -404,7 +404,7 @@ quadrilateral: 四边形面与三角形面混合生成。
404
404
  def Prompt(self):
405
405
  r"""文生3D,3D内容的描述,中文正向提示词。
406
406
  最多支持1024个 utf-8 字符。
407
- 文生3D, imageimage_urlprompt必填其一,且promptimage/image_url不能同时存在。
407
+ ImageBase64ImageUrlPrompt必填其一,且PromptImageBase64/ImageUrl不能同时存在。
408
408
  :rtype: str
409
409
  """
410
410
  return self._Prompt
@@ -416,7 +416,7 @@ quadrilateral: 四边形面与三角形面混合生成。
416
416
  @property
417
417
  def ImageBase64(self):
418
418
  r"""输入图 Base64 数据。
419
- 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m
419
+ 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过5m
420
420
  格式:jpg,png,jpeg,webp。
421
421
  ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
422
422
  :rtype: str
@@ -430,9 +430,9 @@ ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl
430
430
  @property
431
431
  def ImageUrl(self):
432
432
  r"""输入图Url。
433
- 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m
433
+ 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过5m
434
434
  格式:jpg,png,jpeg,webp。
435
- ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
435
+ ImageBase64ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
436
436
  :rtype: str
437
437
  """
438
438
  return self._ImageUrl
@@ -449,7 +449,7 @@ right:右视图;
449
449
  back:后视图;
450
450
 
451
451
  每个视角仅限制一张图片。
452
- ●图片大小限制:编码后大小不可超过8M
452
+ ●图片大小限制:编码后大小不可超过8M。(base64编码后会大30%左右,建议实际输入图片不超过5m)
453
453
  ●图片分辨率限制:单边分辨率小于5000且大于128。
454
454
  ●支持图片格式:支持jpg或png
455
455
  :rtype: list of ViewImage
@@ -590,17 +590,17 @@ class SubmitHunyuanTo3DRapidJobRequest(AbstractModel):
590
590
  r"""
591
591
  :param _Prompt: 文生3D,3D内容的描述,中文正向提示词。
592
592
  最多支持200个 utf-8 字符。
593
- 文生3D, imageimage_urlprompt必填其一,且promptimage/image_url不能同时存在。
593
+ 文生3D, ImageBase64ImageUrlPrompt必填其一,且PromptImageBase64/ImageUrl不能同时存在。
594
594
  :type Prompt: str
595
595
  :param _ImageBase64: 输入图 Base64 数据。
596
- 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m
596
+ 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过5m
597
597
  格式:jpg,png,jpeg,webp。
598
598
  ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
599
599
  :type ImageBase64: str
600
600
  :param _ImageUrl: 输入图Url。
601
- 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m
601
+ 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过5m
602
602
  格式:jpg,png,jpeg,webp。
603
- ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
603
+ ImageBase64ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
604
604
  :type ImageUrl: str
605
605
  :param _ResultFormat: 生成模型的格式,仅限制生成一种格式。
606
606
  生成模型文件组默认返回obj格式。
@@ -608,18 +608,21 @@ ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不
608
608
  :type ResultFormat: str
609
609
  :param _EnablePBR: 是否开启 PBR材质生成,默认 false。
610
610
  :type EnablePBR: bool
611
+ :param _EnableGeometry: 是否开启单几何生成选项,开启后会生成不带纹理的3D模型(白模); 开启时,生成模型文件不支持OBJ格式,默认生成模型文件为GLB格式。
612
+ :type EnableGeometry: bool
611
613
  """
612
614
  self._Prompt = None
613
615
  self._ImageBase64 = None
614
616
  self._ImageUrl = None
615
617
  self._ResultFormat = None
616
618
  self._EnablePBR = None
619
+ self._EnableGeometry = None
617
620
 
618
621
  @property
619
622
  def Prompt(self):
620
623
  r"""文生3D,3D内容的描述,中文正向提示词。
621
624
  最多支持200个 utf-8 字符。
622
- 文生3D, imageimage_urlprompt必填其一,且promptimage/image_url不能同时存在。
625
+ 文生3D, ImageBase64ImageUrlPrompt必填其一,且PromptImageBase64/ImageUrl不能同时存在。
623
626
  :rtype: str
624
627
  """
625
628
  return self._Prompt
@@ -631,7 +634,7 @@ ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不
631
634
  @property
632
635
  def ImageBase64(self):
633
636
  r"""输入图 Base64 数据。
634
- 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m
637
+ 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过5m
635
638
  格式:jpg,png,jpeg,webp。
636
639
  ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
637
640
  :rtype: str
@@ -645,9 +648,9 @@ ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl
645
648
  @property
646
649
  def ImageUrl(self):
647
650
  r"""输入图Url。
648
- 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m
651
+ 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过5m
649
652
  格式:jpg,png,jpeg,webp。
650
- ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
653
+ ImageBase64ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
651
654
  :rtype: str
652
655
  """
653
656
  return self._ImageUrl
@@ -680,6 +683,17 @@ ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不
680
683
  def EnablePBR(self, EnablePBR):
681
684
  self._EnablePBR = EnablePBR
682
685
 
686
+ @property
687
+ def EnableGeometry(self):
688
+ r"""是否开启单几何生成选项,开启后会生成不带纹理的3D模型(白模); 开启时,生成模型文件不支持OBJ格式,默认生成模型文件为GLB格式。
689
+ :rtype: bool
690
+ """
691
+ return self._EnableGeometry
692
+
693
+ @EnableGeometry.setter
694
+ def EnableGeometry(self, EnableGeometry):
695
+ self._EnableGeometry = EnableGeometry
696
+
683
697
 
684
698
  def _deserialize(self, params):
685
699
  self._Prompt = params.get("Prompt")
@@ -687,6 +701,7 @@ ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不
687
701
  self._ImageUrl = params.get("ImageUrl")
688
702
  self._ResultFormat = params.get("ResultFormat")
689
703
  self._EnablePBR = params.get("EnablePBR")
704
+ self._EnableGeometry = params.get("EnableGeometry")
690
705
  memeber_set = set(params.keys())
691
706
  for name, value in vars(self).items():
692
707
  property_name = name[1:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ai3d
3
- Version: 3.0.1489
3
+ Version: 3.1.8
4
4
  Summary: Tencent Cloud Ai3d SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.0.1489
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.8
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -5,6 +5,7 @@ tencentcloud/__init__.py
5
5
  tencentcloud/ai3d/__init__.py
6
6
  tencentcloud/ai3d/v20250513/__init__.py
7
7
  tencentcloud/ai3d/v20250513/ai3d_client.py
8
+ tencentcloud/ai3d/v20250513/ai3d_client_async.py
8
9
  tencentcloud/ai3d/v20250513/errorcodes.py
9
10
  tencentcloud/ai3d/v20250513/models.py
10
11
  tencentcloud_sdk_python_ai3d.egg-info/PKG-INFO
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.8
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.0.1489