Downloads · 30 days
0
kizukuno/image-to-3d-api
image-to-3d-api is a machine learning model from kizukuno. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Python script to convert any 2D image into a 3D model (GLB format) using multiple APIs.
Downloads · 30 days
0
Access
Public
Updated May 7, 2026
Repo size
—
Likes
1
Public
Click a slice to open those files.
.py10.6 KB · 78%
From the Hugging Face model README
Python script to convert any 2D image into a 3D model (GLB format) using multiple APIs.
Method 1 - StabilityAI Stable Fast 3D (Recommended for first try):
pip install gradio_client
python image_to_3d_converter.py your_image.png --method 1
Method 2 - InstantMesh (Faster, simpler):
python image_to_3d_converter.py your_image.png --method 2
Method 3 - Meshy AI (PBR textures, best materials):
export MESHY_API_KEY="your-key-here"
python image_to_3d_converter.py your_image.png --method 3
Get key: https://meshy.ai
Method 4 - Tripo3D (Best for characters):
export TRIPO_API_KEY="your-key-here"
python image_to_3d_converter.py your_image.png --method 4
Get key: https://platform.tripo3d.ai
python image_to_3d_converter.py your_image.png --method all
All generated .glb files are saved to outputs/ folder. View them with:
Input Image
↓
Background Removal (auto)
↓
Depth Estimation / Multi-View Generation
↓
3D Mesh Generation (GLB format)
↓
PBR Textures (on paid methods)