# Image to 3D > Transform 2D images into high-fidelity 3D models instantly using advanced AI—supports photogrammetry, depth mapping, and exports in GLB/OBJ formats for gaming, AR/VR, and design. ## Overview - **Model ID**: `image-to-3d` - **Category**: 3d - **Provider**: modelslab - **Status**: active - **Screenshot**: `https://assets.modelslab.com/generations/66efa5a9-34e9-4c74-9ce2-2ab86af3fbde.webp` ## API Information This model can be used via our HTTP API. See the API documentation and usage examples below. ### Endpoint - **URL**: `https://modelslab.com/api/v6/3d/image_to_3d` - **Method**: POST ### Parameters - **`image`** (required): Initial Image - Type: file (image/jpeg,image/png) - Example: Please upload the image - **`output_format`** (required): use default value as glb - Type: select (options: glb, obj, stl, ply) ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v6/3d/image_to_3d \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "image-to-3d", "image": "https://assets.modelslab.com/generations/e2e3ae02-ef72-4b24-82e7-ca6772b696bc", "output_format": "glb" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v6/3d/image_to_3d", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "image-to-3d", "image": "https://assets.modelslab.com/generations/e2e3ae02-ef72-4b24-82e7-ca6772b696bc", "output_format": "glb" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v6/3d/image_to_3d", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "image-to-3d", "image": "https://assets.modelslab.com/generations/e2e3ae02-ef72-4b24-82e7-ca6772b696bc", "output_format": "glb" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/image-to-3d/image-to-3d) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)