tencentcloud-sdk-python-ai3d 3.0.1490__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.
- {tencentcloud_sdk_python_ai3d-3.0.1490 → tencentcloud_sdk_python_ai3d-3.1.8}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_ai3d-3.0.1490 → tencentcloud_sdk_python_ai3d-3.1.8}/setup.py +2 -1
- {tencentcloud_sdk_python_ai3d-3.0.1490 → tencentcloud_sdk_python_ai3d-3.1.8}/tencentcloud/__init__.py +1 -1
- tencentcloud_sdk_python_ai3d-3.1.8/tencentcloud/ai3d/v20250513/ai3d_client_async.py +102 -0
- {tencentcloud_sdk_python_ai3d-3.0.1490 → tencentcloud_sdk_python_ai3d-3.1.8}/tencentcloud/ai3d/v20250513/models.py +23 -8
- {tencentcloud_sdk_python_ai3d-3.0.1490 → tencentcloud_sdk_python_ai3d-3.1.8}/tencentcloud_sdk_python_ai3d.egg-info/PKG-INFO +2 -2
- {tencentcloud_sdk_python_ai3d-3.0.1490 → tencentcloud_sdk_python_ai3d-3.1.8}/tencentcloud_sdk_python_ai3d.egg-info/SOURCES.txt +1 -0
- tencentcloud_sdk_python_ai3d-3.1.8/tencentcloud_sdk_python_ai3d.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_ai3d-3.0.1490/tencentcloud_sdk_python_ai3d.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_ai3d-3.0.1490 → tencentcloud_sdk_python_ai3d-3.1.8}/README.rst +0 -0
- {tencentcloud_sdk_python_ai3d-3.0.1490 → tencentcloud_sdk_python_ai3d-3.1.8}/setup.cfg +0 -0
- {tencentcloud_sdk_python_ai3d-3.0.1490 → tencentcloud_sdk_python_ai3d-3.1.8}/tencentcloud/ai3d/__init__.py +0 -0
- {tencentcloud_sdk_python_ai3d-3.0.1490 → tencentcloud_sdk_python_ai3d-3.1.8}/tencentcloud/ai3d/v20250513/__init__.py +0 -0
- {tencentcloud_sdk_python_ai3d-3.0.1490 → tencentcloud_sdk_python_ai3d-3.1.8}/tencentcloud/ai3d/v20250513/ai3d_client.py +0 -0
- {tencentcloud_sdk_python_ai3d-3.0.1490 → tencentcloud_sdk_python_ai3d-3.1.8}/tencentcloud/ai3d/v20250513/errorcodes.py +0 -0
- {tencentcloud_sdk_python_ai3d-3.0.1490 → tencentcloud_sdk_python_ai3d-3.1.8}/tencentcloud_sdk_python_ai3d.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_ai3d-3.0.1490 → 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.
|
|
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.
|
|
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.
|
|
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(),
|
|
@@ -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)
|
|
@@ -590,17 +590,17 @@ class SubmitHunyuanTo3DRapidJobRequest(AbstractModel):
|
|
|
590
590
|
r"""
|
|
591
591
|
:param _Prompt: 文生3D,3D内容的描述,中文正向提示词。
|
|
592
592
|
最多支持200个 utf-8 字符。
|
|
593
|
-
文生3D,
|
|
593
|
+
文生3D, ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
|
594
594
|
:type Prompt: str
|
|
595
595
|
:param _ImageBase64: 输入图 Base64 数据。
|
|
596
|
-
大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过
|
|
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%左右,建议实际输入图片不超过
|
|
601
|
+
大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过5m)
|
|
602
602
|
格式:jpg,png,jpeg,webp。
|
|
603
|
-
ImageBase64
|
|
603
|
+
ImageBase64、ImageUrl和 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,
|
|
625
|
+
文生3D, ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/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%左右,建议实际输入图片不超过
|
|
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%左右,建议实际输入图片不超过
|
|
651
|
+
大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过5m)
|
|
649
652
|
格式:jpg,png,jpeg,webp。
|
|
650
|
-
ImageBase64
|
|
653
|
+
ImageBase64、ImageUrl和 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.
|
|
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.
|
|
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.1490
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|