Skip to content

Commit 4b7aad9

Browse files
techpro-aimlapigitbook-bot
authored andcommitted
GITBOOK-772: docs: add tencent/hunyuan-part
1 parent 14b3bc2 commit 4b7aad9

12 files changed

Lines changed: 466 additions & 148 deletions

File tree

1.58 MB
Loading

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ If you've already made your choice and know the model ID, use the [Search panel]
144144

145145
**Sber AI**: [Video](api-references/video-models/sber-ai/)
146146

147-
**Tencent**: [Image](api-references/image-models/tencent/)
147+
**Tencent**: [Image](api-references/image-models/tencent/) [3D](api-references/3d-generating-models/tencent/)
148148

149149
**Together AI**: [Embedding](api-references/embedding-models/Together-AI/)
150150

docs/SUMMARY.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@
218218
* [Stable Diffusion v3.5 Large](api-references/image-models/Stability-AI/stable-diffusion-v35-large.md)
219219
* [Tencent](api-references/image-models/tencent/README.md)
220220
* [Hunyuan Image v3](api-references/image-models/tencent/hunyuan-image-v3-text-to-image.md)
221-
* [Hunyuan Part](api-references/image-models/tencent/hunyuan-part.md)
222221
* [Topaz Labs](api-references/image-models/topaz-labs/README.md)
223222
* [Sharpen](api-references/image-models/topaz-labs/sharpen.md)
224223
* [Sharpen Generative](api-references/image-models/topaz-labs/sharpen-generative.md)
@@ -335,6 +334,8 @@
335334
* [Sber AI](api-references/video-models/sber-ai/README.md)
336335
* [Kandinsky 5 (Text-to-Video)](api-references/video-models/sber-ai/kandinsky5-text-to-video.md)
337336
* [Kandinsky 5 Distill (Text-to-Video)](api-references/video-models/sber-ai/kandinsky5-distill-text-to-video.md)
337+
* [Tencent](api-references/video-models/tencent/README.md)
338+
* [hunyuan-video-foley](api-references/video-models/tencent/hunyuan-video-foley.md)
338339
* [VEED](api-references/video-models/veed/README.md)
339340
* [fabric-1.0](api-references/video-models/veed/fabric-1.0.md)
340341
* [fabric-1.0-fast](api-references/video-models/veed/fabric-1.0-fast.md)
@@ -403,6 +404,8 @@
403404
* [magic/image-to-3d](api-references/3d-generating-models/magic/image-to-3d.md)
404405
* [Stability AI](api-references/3d-generating-models/Stability-AI/README.md)
405406
* [triposr](api-references/3d-generating-models/Stability-AI/triposr.md)
407+
* [Tencent](api-references/3d-generating-models/tencent/README.md)
408+
* [Hunyuan Part](api-references/3d-generating-models/tencent/hunyuan-part.md)
406409
* [Vision Models](api-references/vision-models/README.md)
407410
* [Image Analysis](api-references/vision-models/image-analysis.md)
408411
* [OCR: Optical Character Recognition](api-references/vision-models/ocr-optical-character-recognition/README.md)

docs/api-references/3d-generating-models/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ Try to choose reference images where the target object is not obstructed by othe
8787

8888
## All Available 3D-Generating Models
8989

90-
<table data-full-width="false"><thead><tr><th width="222.4000244140625">Model ID</th><th width="134.39996337890625">Developer</th><th width="95">Context</th><th>Model Card</th></tr></thead><tbody><tr><td><a href="Stability-AI/triposr.md">triposr</a></td><td>Tripo AI</td><td></td><td><a href="https://aimlapi.com/models/stable-tripo-sr-api">Stable TripoSR 3D</a></td></tr></tbody></table>
90+
<table data-full-width="true"><thead><tr><th width="265.4000244140625">Model ID + API Reference link</th><th width="134.39996337890625">Developer</th><th width="104">Context</th><th>Model Card</th></tr></thead><tbody><tr><td><a href="Stability-AI/triposr.md">triposr</a></td><td>Tripo AI</td><td></td><td><a href="https://aimlapi.com/models/stable-tripo-sr-api">Stable TripoSR 3D</a></td></tr><tr><td><a href="tencent/hunyuan-part.md">tencent/hunyuan-part</a></td><td>Tencent</td><td></td><td><a href="https://aimlapi.com/models/hunyuan-part">Hunyuan Part</a></td></tr></tbody></table>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Tencent
2+
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
# Hunyuan Part
2+
3+
{% columns %}
4+
{% column width="66.66666666666666%" %}
5+
{% hint style="info" %}
6+
This documentation is valid for the following list of our models:
7+
8+
* `tencent/hunyuan-part`
9+
{% endhint %}
10+
{% endcolumn %}
11+
12+
{% column width="33.33333333333334%" %}
13+
<a href="https://aimlapi.com/app/hunyuan/hunyuan-image-v3-text-to-image" class="button primary">Try in Playground</a>
14+
{% endcolumn %}
15+
{% endcolumns %}
16+
17+
## Model Overview
18+
19+
The model analyzes a 3D mesh and performs high-fidelity, structure-coherent shape decomposition, splitting the original mesh into multiple parts that can then be used independently in 3D editors, for example for texturing or animation.
20+
21+
## Setup your API Key
22+
23+
If you don’t have an API key for the AI/ML API yet, feel free to use our [Quickstart guide](https://docs.aimlapi.com/quickstart/setting-up).
24+
25+
## API Schema
26+
27+
{% openapi-operation spec="hunyuan-part" path="/v1/images/generations" method="post" %}
28+
[OpenAPI hunyuan-part](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/3d-generating-models/Tencent/hunyuan-part.json)
29+
{% endopenapi-operation %}
30+
31+
## Quick Example
32+
33+
Let's generate an image using a simple prompt.
34+
35+
{% tabs %}
36+
{% tab title="Python" %}
37+
{% code overflow="wrap" %}
38+
```python
39+
import requests
40+
import json
41+
42+
def main():
43+
response = requests.post(
44+
"https://api.aimlapi.com/v1/images/generations",
45+
headers={
46+
# Insert your AIML API Key instead of <YOUR_AIMLAPI_KEY>:
47+
"Authorization": "Bearer d09bc3015a66486e9bd4e6d1942934e1",
48+
"Content-Type": "application/json",
49+
},
50+
json={
51+
"model": "tencent/hunyuan-part",
52+
"mesh_url": "https://storage.googleapis.com/falserverless/model_tests/video_models/base_basic_shaded.glb",
53+
},
54+
)
55+
56+
response.raise_for_status()
57+
data = response.json()
58+
59+
data = response.json()
60+
print(json.dumps(data, indent=2, ensure_ascii=False))
61+
62+
63+
if __name__ == "__main__":
64+
main()
65+
```
66+
{% endcode %}
67+
{% endtab %}
68+
69+
{% tab title="JS" %}
70+
{% code overflow="wrap" %}
71+
```javascript
72+
async function main() {
73+
const response = await fetch('https://api.aimlapi.com/v1/images/generations', {
74+
method: 'POST',
75+
headers: {
76+
// Insert your AIML API Key instead of <YOUR_AIMLAPI_KEY>:
77+
'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',
78+
'Content-Type': 'application/json',
79+
},
80+
body: JSON.stringify({
81+
model: 'tencent/hunyuan-part',
82+
mesh_url: 'https://storage.googleapis.com/falserverless/model_tests/video_models/base_basic_shaded.glb',
83+
}),
84+
});
85+
86+
const data = await response.json();
87+
console.log(data);
88+
}
89+
90+
main();
91+
```
92+
{% endcode %}
93+
{% endtab %}
94+
{% endtabs %}
95+
96+
<details>
97+
98+
<summary>Response</summary>
99+
100+
{% code overflow="wrap" %}
101+
```json5
102+
{
103+
"segmented_mesh": {
104+
"url": "https://cdn.aimlapi.com/flamingo/files/b/0a8a7d7b/gG3-a4ScI4yBswdMQ8CYQ_segmented.glb",
105+
"content_type": "application/octet-stream",
106+
"file_name": "segmented.glb",
107+
"file_size": 1600920
108+
},
109+
"mask_1_mesh": {
110+
"url": "https://cdn.aimlapi.com/flamingo/files/b/0a8a7d7b/Csp8ZOZQsxpaOtDrvbe2G_mask_1.glb",
111+
"content_type": "application/octet-stream",
112+
"file_name": "mask_1.glb",
113+
"file_size": 1600912
114+
},
115+
"mask_2_mesh": {
116+
"url": "https://cdn.aimlapi.com/flamingo/files/b/0a8a7d7b/fStkD-Pq6RZrlooYcZ34__mask_2.glb",
117+
"content_type": "application/octet-stream",
118+
"file_name": "mask_2.glb",
119+
"file_size": 1600920
120+
},
121+
"mask_3_mesh": {
122+
"url": "https://cdn.aimlapi.com/flamingo/files/b/0a8a7d7b/YVHy9A0XgUMehoLCA7z5o_mask_3.glb",
123+
"content_type": "application/octet-stream",
124+
"file_name": "mask_3.glb",
125+
"file_size": 1600920
126+
},
127+
"best_mask_index": 2,
128+
"iou_scores": [
129+
0.49007099866867065,
130+
0.5047933459281921,
131+
0.4866638779640198
132+
],
133+
"seed": 3285486654,
134+
"requestId": "74e75e9a-7965-4348-a84d-d8663b0906dd",
135+
"meta": {
136+
"usage": {
137+
"credits_used": 84000
138+
}
139+
}
140+
}
141+
```
142+
{% endcode %}
143+
144+
</details>

docs/api-references/image-models/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Then, configure the metaparameters for your generation:
4646

4747
Here is an example of generation an image of a robot classroom using the `flux-pro` image model:
4848

49+
{% tabs %}
50+
{% tab title="Python" %}
4951
{% code overflow="wrap" %}
5052
```python
5153
import requests
@@ -72,6 +74,8 @@ response.raise_for_status()
7274
print("Generation:", response.json())
7375
```
7476
{% endcode %}
77+
{% endtab %}
78+
{% endtabs %}
7579

7680
We obtained the following image by running that code example:
7781

docs/api-references/image-models/tencent/hunyuan-image-v3-text-to-image.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -98,21 +98,16 @@ main();
9898
{% code overflow="wrap" %}
9999
```json5
100100
{
101-
"data": [
102-
{
103-
"url": "https://v3b.fal.media/files/b/lion/JdrvNguTlt29LmURRbKKN.png",
104-
"content_type": "image/png",
105-
"file_name": null,
106-
"file_size": null,
107-
"width": 1280,
108-
"height": 768
109-
}
110-
],
111-
"meta": {
112-
"usage": {
113-
"tokens_used": 210000
114-
}
101+
"data": [
102+
{
103+
"url": "https://cdn.aimlapi.com/flamingo/files/b/0a8a7b4c/371avBpG23C3CoYzHJXB5.png"
104+
}
105+
],
106+
"meta": {
107+
"usage": {
108+
"credits_used": 210000
115109
}
110+
}
116111
}
117112
```
118113
{% endcode %}
@@ -121,4 +116,4 @@ main();
121116

122117
We obtained the following 1280x768 image by running this code example:
123118

124-
<figure><img src="https://v3b.fal.media/files/b/lion/JdrvNguTlt29LmURRbKKN.png" alt=""><figcaption><p><code>A T-Rex relaxing on a beach, lying on a sun lounger and wearing sunglasses.</code></p></figcaption></figure>
119+
<figure><img src="../../../.gitbook/assets/371avBpG23C3CoYzHJXB5.png" alt=""><figcaption><p>A T-Rex relaxing on a beach, lying on a sun lounger and wearing sunglasses.</p></figcaption></figure>

docs/api-references/image-models/tencent/hunyuan-part.md

Lines changed: 0 additions & 129 deletions
This file was deleted.

docs/api-references/model-database.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Can't find the model you need? Join our [Discord community](https://discord.gg/8
7272

7373
### 3D-Generating Models
7474

75-
<table data-full-width="true"><thead><tr><th width="265.4000244140625">Model ID + API Reference link</th><th width="134.39996337890625">Developer</th><th width="104">Context</th><th>Model Card</th></tr></thead><tbody><tr><td><a href="3d-generating-models/Stability-AI/triposr.md">triposr</a></td><td>Tripo AI</td><td></td><td><a href="https://aimlapi.com/models/stable-tripo-sr-api">Stable TripoSR 3D</a></td></tr></tbody></table>
75+
<table data-full-width="true"><thead><tr><th width="265.4000244140625">Model ID + API Reference link</th><th width="134.39996337890625">Developer</th><th width="104">Context</th><th>Model Card</th></tr></thead><tbody><tr><td><a href="3d-generating-models/Stability-AI/triposr.md">triposr</a></td><td>Tripo AI</td><td></td><td><a href="https://aimlapi.com/models/stable-tripo-sr-api">Stable TripoSR 3D</a></td></tr><tr><td><a href="3d-generating-models/tencent/hunyuan-part.md">tencent/hunyuan-part</a></td><td>Tencent</td><td></td><td><a href="https://aimlapi.com/models/hunyuan-part">Hunyuan Part</a></td></tr></tbody></table>
7676

7777
### Embedding Models
7878

0 commit comments

Comments
 (0)