promptstring必須
Text description of the 3D object to generate. Up to 1024 characters.
tencent/hunyuan-3d/v3/text-to-3dHunyuan 3D 3.0 by Tencent generates a textured, low-poly, or geometry-only 3D model from a text prompt.
モデルを試す

次に何をしますか?
例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
{
"prompt": "A vintage red rotary telephone with a coiled cord"
}Hunyuan 3D 3.0 by Tencent generates a textured, low-poly, or geometry-only 3D model from a text prompt.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Text description of the 3D object to generate. Up to 1024 characters. |
generate_type | Normal / LowPoly / Geometry | Normal | Normal: textured model. LowPoly: polygon reduction. Geometry: white model without texture. |
enable_pbr | boolean | false | Generate PBR materials (metallic, roughness, normal maps). Ignored for Geometry output. |
face_count | integer 40000–1500000 | — | Target polygon face count (40,000-1,500,000). Leave empty for the default of 500,000. |
polygon_type | triangle / quadrilateral | triangle | Polygon type. Only takes effect when Generate Type is LowPoly. |
url: Main 3D file (GLB unless another export format is selected).thumbnail: Preview image rendered by the provider.$0.63 per request with default settings. Price by option (other settings at default):
| Option | Price |
|---|---|
| enable_pbr on | $0.81 |
| enable_pbr off | $0.63 |
| generate_type = Normal | $0.63 |
| generate_type = LowPoly | $0.72 |
| generate_type = Geometry | $0.45 |
| Failed runs are not charged. |
Other Tencent 3D endpoints: tencent/hunyuan-3d/3.0/image-to-3d, tencent/hunyuan-3d/3.1/part, tencent/hunyuan-3d/3.1/pro/image-to-3d, tencent/hunyuan-3d/3.1/pro/text-to-3d.
開発を始める
このモデルをSandBase Unified Run API経由で送信します。
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "tencent/hunyuan-3d/v3/text-to-3d",
"prompt": "A rustic wooden treasure chest with metal bands and ornate lock",
"enable_pbr": false,
"face_count": 500000,
"polygon_type": "triangle",
"generate_type": "Normal"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"SandBaseのAPIキーを作成し、サーバー環境に設定してください。すべてのリクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開したり、リポジトリにコミットしたりしないでください。
このモデルIDと入力を使って /v1/run にPOSTしてください。上のリクエスト例には送信とポーリングが含まれています。
返されたrun IDを使って、ステータスがcompleted、failed、timeoutになるまでポーリングしてください。出力はcompleted後にのみ読み取ってください。
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"モデルのimage、video、またはaudioフィールドに、公開アクセス可能なファイルURLを指定してください。対応形式と制限は各Playground入力の横に表示されます。
Playgroundの対応する画像フィールドでアップロードまたは置換を使用してください。video URLフィールドはホストされたドライビング動画を受け付けますが、動画アップロード対応を意味するものではありません。
promptstring必須Text description of the 3D object to generate. Up to 1024 characters.
enable_pbrbooleanGenerate PBR materials (metallic, roughness, normal maps). Ignored for Geometry output.
デフォルト: false
face_countintegerTarget polygon face count (40,000-1,500,000). Leave empty for the default of 500,000.
最小: 40000
最大: 1500000
polygon_typestringPolygon type. Only takes effect when Generate Type is LowPoly.
デフォルト: "triangle"
指定可能な値: "triangle", "quadrilateral"
generate_typestringNormal: textured model. LowPoly: polygon reduction. Geometry: white model without texture.
デフォルト: "Normal"
指定可能な値: "Normal", "LowPoly", "Geometry"
{
"model": "tencent/hunyuan-3d/v3/text-to-3d",
"prompt": "A rustic wooden treasure chest with metal bands and ornate lock",
"enable_pbr": false,
"face_count": 500000,
"polygon_type": "triangle",
"generate_type": "Normal"
}完了したrunの結果は出力に表示されます。以下はモデルに保存されたサンプルであり、新規生成ではありません。
[
{
"poster": "https://static.sandbase.ai/examples/22003e9c-9594-44af-ba64-e21cbf96d8c5/output/e92d18df-2657-479e-a8fa-3ca14c7f4b42.png",
"thumbnail": "https://static.sandbase.ai/examples/22003e9c-9594-44af-ba64-e21cbf96d8c5/output/e92d18df-2657-479e-a8fa-3ca14c7f4b42.png",
"url": "https://static.sandbase.ai/examples/22003e9c-9594-44af-ba64-e21cbf96d8c5/output/05198c59-b9e3-4e2e-8a91-630470d87905.glb"
}
]