Python SDK for Meshy AI 3D asset generation API
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
mesh-toolkit
Python SDK for Meshy AI 3D asset generation API.
Installation
pip install mesh-toolkit
Usage
from mesh_toolkit import text3d, rigging, animate, retexture
# Generate a 3D model
model = text3d.generate("a medieval sword with ornate handle")
# Rig it for animation
rigged = rigging.rig(model.id)
# Apply an animation (678 available)
animated = animate.apply(rigged.id, animation_id=0) # Idle
# Or retexture it
gold = retexture.apply(model.id, "golden with embedded gems")
Modules
text3d
from mesh_toolkit import text3d
# Generate model
result = text3d.generate("a wooden chest", art_style="realistic")
print(result.model_urls.glb)
# Or manually control the workflow
task_id = text3d.create(request) # Returns immediately
result = text3d.get(task_id) # Check status
result = text3d.poll(task_id) # Wait for completion
rigging
from mesh_toolkit import rigging
result = rigging.rig(model_id)
# Or from URL
result = rigging.rig_from_url("https://example.com/model.glb")
animate
from mesh_toolkit import animate
from mesh_toolkit.animations import ANIMATIONS
# Apply animation
result = animate.apply(rigged_id, animation_id=0)
# Browse 678 animations
for anim in ANIMATIONS.values():
print(f"{anim.id}: {anim.name} ({anim.category})")
retexture
from mesh_toolkit import retexture
result = retexture.apply(model_id, "rusty metal with scratches")
# Or from reference image
result = retexture.apply_from_image(model_id, "https://example.com/style.png")
Architecture
mesh_toolkit/
├── base.py # HTTP infrastructure (auth, retries, rate limiting)
├── text3d.py # Text-to-3D API
├── rigging.py # Rigging API
├── animate.py # Animation API
├── retexture.py # Retexture API
├── animations.py # 678 animation catalog
├── models.py # Pydantic models
└── jobs.py # Batch workflow orchestration
Each API module imports base and implements its endpoints directly. No monolithic client class.
Environment Variables
| Variable | Description |
|---|---|
MESHY_API_KEY |
Your Meshy API key (required) |
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mesh_toolkit-0.1.0.tar.gz.
File metadata
- Download URL: mesh_toolkit-0.1.0.tar.gz
- Upload date:
- Size: 61.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed18feee92fe5a09253c60da55c629ebfc8cef7fca15e44aebad80bafb2cb8a3
|
|
| MD5 |
439667d626eb0098632b89f6c4db1636
|
|
| BLAKE2b-256 |
48bfe83eb8ea3edc6f911018944fb8592205e00fb044598c31d1e682ab36cfa6
|
File details
Details for the file mesh_toolkit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mesh_toolkit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 56.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db4036581ec7d641724b9517501acf2d2d6e46c66a9ee812ce005e9e7917a1da
|
|
| MD5 |
0fd387ec11f824ee39e8befd1bb5ea3a
|
|
| BLAKE2b-256 |
91de183db173626e96695e08ae24da7337f69c594635782ccb29de584694a357
|