CoolFace
Modelpublic

kizukuno/image-to-3d-api

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes
Model Card

๐Ÿบ Image to 3D High Quality Converter

Python script to convert any 2D image into a 3D model (GLB format) using multiple APIs.

Quick Start

FREE Methods (No API Key!)

Method 1 - StabilityAI Stable Fast 3D (Recommended for first try):

bash
pip install gradio_client
python image_to_3d_converter.py your_image.png --method 1

Method 2 - InstantMesh (Faster, simpler):

bash
python image_to_3d_converter.py your_image.png --method 2

PAID Methods (Higher Quality)

Method 3 - Meshy AI (PBR textures, best materials):

bash
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):

bash
export TRIPO_API_KEY="your-key-here"
python image_to_3d_converter.py your_image.png --method 4

Get key: https://platform.tripo3d.ai

Try All Methods

bash
python image_to_3d_converter.py your_image.png --method all

Output

All generated .glb files are saved to outputs/ folder. View them with:

  • โ€”Browser: https://3dviewer.net (drag & drop)
  • โ€”Blender: File โ†’ Import โ†’ glTF 2.0 (.glb)

Pipeline Diagram

Input Image
    โ†“
Background Removal (auto)
    โ†“
Depth Estimation / Multi-View Generation
    โ†“
3D Mesh Generation (GLB format)
    โ†“
PBR Textures (on paid methods)

Links