pbrboolean
PBR material maps (base color, metallic, roughness, normal). true also turns texture on.
डिफ़ॉल्ट: true
tripo3d/tripo/textureTripo Texture paints new textures on an existing 3D model from a text prompt, one image or multiple views.
model को आज़माएँ
PNG, JPEG, WebP, या GIF · अधिकतम 20 MiB
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 4
PNG, JPEG, WebP, या GIF · अधिकतम 20 MiB
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Tripo Texture paints new textures on an existing 3D model from a text prompt, one image or multiple views.
| Field | Type | Default | Notes |
|---|---|---|---|
model_url | string, required | — | URL of the input 3D model (GLB, GLTF, FBX, OBJ or STL, up to 150 MB). |
prompt | string | — | Text describing the texture (Tripo texture_prompt.text). |
image | string | — | Reference image for the texture (texture_prompt.image). Use prompt, image or images, not several. |
images | array | — | 2 to 4 reference views in the order front, left, back, right (texture_prompt.images). |
style_image | string | — | Style reference used together with prompt (texture_prompt.style_image). |
model_version | v3.5-20260815 / v3.0-20250812 / v2.5-20250123 | v3.5-20260815 | v3.5-20260815 is current; v3.0-20250812 runs as v3.5; v2.5-20250123 for models made with Tripo v2.5. |
texture_quality | fast / standard / detailed / extreme | standard | fast and standard cost the same; detailed (HD) and extreme (8K) are add-ons. |
pbr | boolean | true | PBR material maps (base color, metallic, roughness, normal). true also turns texture on. |
texture_alignment | original_image / geometry | original_image | original_image keeps textures close to the input image; geometry favors the mesh. |
delight | boolean | false | Remove baked-in lighting from the reference image before texturing (texture v3.5). |
bake | boolean | true | Bake advanced materials into the textures. |
part_names | array | — | Only process these parts (node names from a segmentation, e.g. tripo_part_0). All parts when unset. |
texture_seed | integer | — | Seed for texture generation. Keep seed and change texture_seed for new textures on the same geometry. |
compress | geometry | — | geometry applies meshopt compression to reduce file size. |
url: Textured GLB.thumbnail: Preview render.| texture_quality | Price |
|---|---|
| fast / standard | $0.10 |
| detailed | $0.20 |
| extreme (8K) | $0.30 |
| Failed runs are not charged. |
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ कोई भी समर्थित 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": "tripo3d/tripo/texture",
"pbr": true,
"bake": true,
"image": "https://static.sandbase.ai/examples/tripo3d/tripo-h3.1/image-to-3d/input_image_0.png",
"prompt": "weathered bronze with green patina",
"delight": false,
"model_url": "https://static.sandbase.ai/examples/tripo3d/tripo/shared/object.glb",
"style_image": "https://static.sandbase.ai/examples/tripo3d/tripo-h3.1/image-to-3d/input_image_0.png",
"model_version": "v3.5-20260815",
"texture_quality": "standard",
"texture_alignment": "original_image"
}
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 का संकेत नहीं मिलता।
pbrbooleanPBR material maps (base color, metallic, roughness, normal). true also turns texture on.
डिफ़ॉल्ट: true
bakebooleanBake advanced materials into the textures.
डिफ़ॉल्ट: true
imagestringReference image for the texture (texture_prompt.image). Use prompt, image or images, not several.
imagesarray2 to 4 reference views in the order front, left, back, right (texture_prompt.images).
promptstringText describing the texture (Tripo texture_prompt.text).
delightbooleanRemove baked-in lighting from the reference image before texturing (texture v3.5).
डिफ़ॉल्ट: false
compressstringgeometry applies meshopt compression to reduce file size.
संभावित मान: "geometry"
model_urlstringआवश्यकURL of the input 3D model (GLB, GLTF, FBX, OBJ or STL, up to 150 MB).
part_namesarrayOnly process these parts (node names from a segmentation, e.g. tripo_part_0). All parts when unset.
style_imagestringStyle reference used together with prompt (texture_prompt.style_image).
texture_seedintegerSeed for texture generation. Keep seed and change texture_seed for new textures on the same geometry.
model_versionstringv3.5-20260815 is current; v3.0-20250812 runs as v3.5; v2.5-20250123 for models made with Tripo v2.5.
डिफ़ॉल्ट: "v3.5-20260815"
संभावित मान: "v3.5-20260815", "v3.0-20250812", "v2.5-20250123"
texture_qualitystringfast and standard cost the same; detailed (HD) and extreme (8K) are add-ons.
डिफ़ॉल्ट: "standard"
संभावित मान: "fast", "standard", "detailed", "extreme"
texture_alignmentstringoriginal_image keeps textures close to the input image; geometry favors the mesh.
डिफ़ॉल्ट: "original_image"
संभावित मान: "original_image", "geometry"
{
"model": "tripo3d/tripo/texture",
"pbr": true,
"bake": true,
"image": "https://static.sandbase.ai/examples/tripo3d/tripo-h3.1/image-to-3d/input_image_0.png",
"prompt": "weathered bronze with green patina",
"delight": false,
"model_url": "https://static.sandbase.ai/examples/tripo3d/tripo/shared/object.glb",
"style_image": "https://static.sandbase.ai/examples/tripo3d/tripo-h3.1/image-to-3d/input_image_0.png",
"model_version": "v3.5-20260815",
"texture_quality": "standard",
"texture_alignment": "original_image"
}पूरा हुआ run अपना परिणाम output में दिखाता है। नीचे दिया गया model का सेव किया हुआ example है, नई generation नहीं।
अभी तक कोई example output प्रकाशित नहीं किया गया है। अपना response देखने के लिए completed run के बाद Playground → Result → JSON का उपयोग करें।
यह model Tripo के v3 API पर भी उपलब्ध है। Request bodies, task objects और error codes Tripo के अनुरूप हैं, इसलिए base URL को https://api.sandbase.ai/tripo/v3 में बदलने और Authorization: Bearer के रूप में SandBase API key भेजने के बाद मौजूदा Tripo code काम करेगा। Requests Tripo के official channel पर /v1/run के समान मूल्य पर चलती हैं।
POST https://api.sandbase.ai/tripo/v3/models/texture। model वैकल्पिक है और Tripo algorithm version चुनता है; इसे छोड़े जाने पर Tripo का default लागू होता है। ऊपर Tripo v3 API के अंतर्गत दिया गया request example एक पूर्ण call दिखाता है।
Tripo इन inputs को नीचे दिए गए Schema से अलग नाम देता है। बाकी सभी फ़ील्ड अपने नाम बनाए रखते हैं।
| स्कीमा फ़ील्ड | Tripo फ़ील्ड |
|---|---|
model_url | input |
model_version | model |
prompt | texture_prompt.text |
image | texture_prompt.image |
images | texture_prompt.images |
style_image | texture_prompt.style_image |
Inputs सार्वजनिक URLs होते हैं, या तो string के रूप में या url फ़ील्ड वाले object के रूप में। Tripo task ids और file_token मान अभी स्वीकार नहीं किए जाते, file upload उपलब्ध नहीं है, और webhook_url को अनदेखा किया जाता है।
Submission से data.task_id लौटता है। data.status के success, failed या cancelled होने तक poll करें। Success पर, data.output में model_url जैसे Tripo field names होते हैं, और credits_consumed 1 credit = $0.01 पर SandBase charge है।
curl "https://api.sandbase.ai/tripo/v3/tasks/$TASK_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"POST /tripo/v3/tasks/list को {"task_ids": [...]} के साथ उपयोग करने पर अधिकतम 100 tasks लौटते हैं। GET /tripo/v3/account/balance आपके SandBase balance को credits में लौटाता है।
Tripo अपने envelope का उपयोग करता है: {"code": 1004, "status": "error", "message": "..."}।
| code | अर्थ |
|---|---|
2 / 1002 | SandBase API key अनुपस्थित, अमान्य या अधिकृत नहीं है |
1003 | बॉडी JSON object नहीं है |
1004 | पैरामीटर अनुपस्थित या अमान्य है। संदेश Tripo फ़ील्ड का नाम बताता है |
1007 / 2000 | Rate limit या concurrency limit पहुँच गई है |
2001 | Task नहीं मिला, या किसी अन्य API key से बनाया गया था |
2002 | Endpoint या feature SandBase पर समर्थित नहीं है |
2010 | SandBase balance अपर्याप्त है या API key spending limit पहुँच गई है |
4001 | अज्ञात endpoint |
जब Tripo किसी task को अस्वीकार करता है या विफल करता है, तो वह Tripo के error_code और error_message के साथ failed पर समाप्त होता है। आपके अनुरोध या content से संबंधित codes बिना बदलाव के पास किए जाते हैं; upstream Tripo account से संबंधित codes को 1000 के रूप में रिपोर्ट किया जाता है।