Skip to main content
Built by Best ROI Media · First-Party IntegrationMITWave 4 · LiveBestRoiMedia/bestroi-game-tools

Models3D

Tripo3D and Meshy API clients with pre-dispatch ledgers and double-bill prevention.

Unified CLI wrappers for Tripo3D and Meshy (image-to-3D, text-to-3D, multiview, retexture, rig, animate) featuring idempotent dispatch records, single-shot create calls, and automatic credit logging.

View on GitHub ↗
Quick clonegit clone https://github.com/BestRoiMedia/bestroi-game-tools.git
GitHub repositoryBestRoiMedia/bestroi-game-tools
Module path_tools/models3d/
LicenseMIT
Release waveWave 4
LanguagesPython

Why we built it

Retrying timed-out 3D generation HTTP requests or re-running scripts can silently double-bill expensive API credits. Models3D writes a dispatch record before every paid call and resumes existing task IDs safely.

Architecture & how it works

Checks OUT/dispatch.json before issuing any paid request, sends create calls strictly once without blind retries, records task IDs and credit spend to a cost ledger (COSTS.md / $MODELS_COSTS), and polls until completion.

Key capabilities

  • Tripo3D client (tripo.py): image3d, multiview3d, rig-check, rig, balance, and credit tracking
  • Meshy client (meshy.py): image3d, text3d, retexture, rig, animate, and task retrieval
  • Pre-dispatch OUT/dispatch.json checkpointing to resume tasks without re-spending
  • Dry-run mode (--dry-run) inspecting request payloads with zero API keys or network calls
  • Offline mocked-HTTP selftests for both Tripo and Meshy clients

Usage example

Generate, rig-check, and rig a 3D model with TripoPython
python3 models3d/tripo.py image3d ./ref.png --out ./out/creature --label creature --face-limit 16000
python3 models3d/tripo.py rig-check --task TASK_ID --out ./out/creature/rig-check --label creature
python3 models3d/tripo.py rig --task TASK_ID --rig-type biped --spec mixamo --out ./out/creature/rigged --label creature
Exit code 3 indicates out-of-credits; progress prints to stderr and final JSON verdict to stdout.