imagestringआवश्यक
Front view image URL. 128-5000px, max 8MB, JPG/PNG/WEBP. Works best with a single object on a simple background.
tencent/hunyuan-3d/3.1/rapid/image-to-3dHunyuan 3D 3.1 Rapid by Tencent quickly turns a single image into a textured or geometry-only 3D model.
model को आज़माएँ
PNG, JPEG, WebP, या GIF · अधिकतम 20 MiB
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Hunyuan 3D 3.1 Rapid by Tencent quickly turns a single image into a textured or geometry-only 3D model.
| Field | Type | Default | Notes |
|---|---|---|---|
image | image URL, required | — | Front view image URL. 128-5000px, max 8MB, JPG/PNG/WEBP. Works best with a single object on a simple background. |
enable_pbr | boolean | false | Generate PBR materials (metallic, roughness, normal maps). Ignored when Geometry Only is on. |
enable_geometry | boolean | false | Generate a geometry-only white model without textures. |
url: Main 3D file (GLB unless another export format is selected).thumbnail: Preview image rendered by the provider.$0.27 per request with default settings. Price by option (other settings at default):
| Option | Price |
|---|---|
| enable_pbr on | $0.375 |
| enable_pbr off | $0.27 |
| 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.
बिल्डिंग शुरू करें
इस model को 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/3.1/rapid/image-to-3d",
"image": "https://static.sandbase.ai/examples/tencent/hunyuan-3d/3.1/rapid/image-to-3d/input_image_0.png",
"enable_pbr": false,
"enable_geometry": false
}
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 key बनाएँ और इसे अपने server environment में सेट करें। सभी requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"Key को सर्वर पर रखें। इसे browser code में expose न करें या repository में commit न करें।
इस model ID और इसके inputs के साथ /v1/run पर POST करें। ऊपर दिया गया request example submission और polling दोनों शामिल करता है।
Completed, failed या timeout होने तक poll करने के लिए लौटाए गए run ID का उपयोग करें। Output केवल completed होने के बाद पढ़ें।
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Model के image, video या audio field में सार्वजनिक रूप से उपलब्ध फ़ाइल URL पास करें। समर्थित formats और limits प्रत्येक Playground input के पास दिखाए गए हैं।
Playground में समर्थित image fields पर upload या replace control का उपयोग करें। Video URL fields hosted driving video स्वीकार करते हैं; इससे video-upload support का संकेत नहीं मिलता।
imagestringआवश्यकFront view image URL. 128-5000px, max 8MB, JPG/PNG/WEBP. Works best with a single object on a simple background.
enable_pbrbooleanGenerate PBR materials (metallic, roughness, normal maps). Ignored when Geometry Only is on.
डिफ़ॉल्ट: false
enable_geometrybooleanGenerate a geometry-only white model without textures.
डिफ़ॉल्ट: false
{
"model": "tencent/hunyuan-3d/3.1/rapid/image-to-3d",
"image": "https://static.sandbase.ai/examples/tencent/hunyuan-3d/3.1/rapid/image-to-3d/input_image_0.png",
"enable_pbr": false,
"enable_geometry": false
}पूरा हुआ run अपना परिणाम output में दिखाता है। नीचे दिया गया model का सेव किया हुआ example है, नई generation नहीं।
अभी तक कोई example output प्रकाशित नहीं किया गया है। अपना response देखने के लिए completed run के बाद Playground → Result → JSON का उपयोग करें।