stylestring
Color-region style.
ค่าเริ่มต้น: "realistic"
ค่าที่เป็นไปได้: "realistic", "cartoon"
meshy/print/multi-colorMeshy Multi-Color Print turns a textured 3D model into color regions and returns a 3MF ready for a multi-color slicer.
ลองใช้โมเดล
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Meshy Multi-Color Print turns a textured 3D model into color regions and returns a 3MF ready for a multi-color slicer.
| Field | Type | Default | Notes |
|---|---|---|---|
model_url | string, required | — | URL of the 3D model (GLB, GLTF, FBX, OBJ or STL) as a public URL or data URI. |
style | realistic / cartoon | "realistic" | Color-region style. |
max_colors | integer 1–16 | 4 | Maximum number of colors. |
max_depth | integer 3–6 | 4 | Color detail depth (realistic style only). |
printer_brand | bambu / anycubic / creality / flashforge / snapmaker / elegoo / prusa / qidi / ankermake | "bambu" | Slicer preset written into the 3MF. |
url: Multi-color 3MF.$0.40 per 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": "meshy/print/multi-color",
"style": "realistic",
"max_depth": 4,
"model_url": "https://storage.googleapis.com/falserverless/model_tests/video_models/base_basic_shaded.glb",
"max_colors": 4,
"printer_brand": "bambu"
}
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 และตั้งค่าไว้ในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอทั้งหมดใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์หรือคอมมิตลง repository
POST ไปที่ /v1/run ด้วย model ID นี้และอินพุตของมัน ตัวอย่างคำขอด้านบนมีทั้งการส่งและการ polling
ใช้ run ID ที่ส่งกลับมาเพื่อ polling จนกว่าสถานะจะเป็น completed, failed หรือ timeout ให้อ่าน output หลังจาก completed เท่านั้น
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"ส่ง URL ไฟล์ที่เข้าถึงได้สาธารณะในช่อง image, video หรือ audio ของโมเดล รูปแบบและข้อจำกัดที่รองรับแสดงอยู่ข้างแต่ละอินพุตใน Playground
ใช้ตัวควบคุม upload หรือ replace ในช่องรูปภาพที่รองรับใน Playground ช่อง URL ของวิดีโอรองรับวิดีโอ driving ที่โฮสต์ไว้; ไม่ได้หมายความว่าสามารถอัปโหลดวิดีโอได้
stylestringColor-region style.
ค่าเริ่มต้น: "realistic"
ค่าที่เป็นไปได้: "realistic", "cartoon"
max_depthintegerColor detail depth (realistic style only).
ค่าเริ่มต้น: 4
ขั้นต่ำ: 3
สูงสุด: 6
model_urlstringจำเป็นURL of the 3D model (GLB, GLTF, FBX, OBJ or STL) as a public URL or data URI.
max_colorsintegerMaximum number of colors.
ค่าเริ่มต้น: 4
ขั้นต่ำ: 1
สูงสุด: 16
printer_brandstringSlicer preset written into the 3MF.
ค่าเริ่มต้น: "bambu"
ค่าที่เป็นไปได้: "bambu", "anycubic", "creality", "flashforge", "snapmaker", "elegoo", "prusa", "qidi", "ankermake"
{
"model": "meshy/print/multi-color",
"style": "realistic",
"max_depth": 4,
"model_url": "https://storage.googleapis.com/falserverless/model_tests/video_models/base_basic_shaded.glb",
"max_colors": 4,
"printer_brand": "bambu"
}run ที่เสร็จสมบูรณ์จะแสดงผลลัพธ์ใน output ต่อไปนี้เป็นตัวอย่างที่บันทึกไว้ของโมเดล ไม่ใช่การสร้างใหม่
ยังไม่มีตัวอย่าง output เผยแพร่ในตอนนี้ ใช้ Playground → Result → JSON หลังจาก run เสร็จสมบูรณ์เพื่อตรวจสอบการตอบกลับของคุณ