# Hunyuan3d V3

> Transform your photos into ultra-high-resolution 3D models in seconds. Film-quality geometry with PBR textures, ready for games, e-commerce, and 3D printing.


## Overview

- **Endpoint**: `https://fal.run/fal-ai/hunyuan3d-v3/image-to-3d`
- **Model ID**: `fal-ai/hunyuan3d-v3/image-to-3d`
- **Category**: image-to-3d
- **Kind**: inference


## Pricing

Your request will cost **$0.375** per generation. For **$1.00**, you can run this model **2** times.
Generation types: Normal costs **$0.375**, LowPoly costs **$0.45**, Geometry costs **$0.225**.
Enabling PBR materials adds **$0.15**. Using multi-view images (back/left/right) adds **$0.15**. Custom face count adds **$0.15**.

For more details, see [fal.ai pricing](https://fal.ai/pricing).

## API Information

This model can be used via our HTTP API or more conveniently via our client libraries.
See the input and output schema below, as well as the usage examples.


### Input Schema

The API accepts the following input parameters:


- **`input_image_url`** (`string`, _required_):
  URL of image to use while generating the 3D model.
  - Examples: "https://v3b.fal.media/files/b/0a865ab1/omYcawLUo4RZbO8J6ZgZR.png"

- **`back_image_url`** (`string`, _optional_):
  Optional back view image URL for better 3D reconstruction.

- **`left_image_url`** (`string`, _optional_):
  Optional left view image URL for better 3D reconstruction.

- **`right_image_url`** (`string`, _optional_):
  Optional right view image URL for better 3D reconstruction.

- **`enable_pbr`** (`boolean`, _optional_):
  Whether to enable PBR material generation. Does not take effect when generate_type is Geometry.
  - Default: `false`

- **`face_count`** (`integer`, _optional_):
  Target face count. Range: 40000-1500000 Default value: `500000`
  - Default: `500000`
  - Range: `40000` to `1500000`

- **`generate_type`** (`GenerateTypeEnum`, _optional_):
  Generation type. Normal: textured model. LowPoly: polygon reduction. Geometry: white model without texture. Default value: `"Normal"`
  - Default: `"Normal"`
  - Options: `"Normal"`, `"LowPoly"`, `"Geometry"`

- **`polygon_type`** (`PolygonTypeEnum`, _optional_):
  Polygon type. Only takes effect when GenerateType is LowPoly. Default value: `"triangle"`
  - Default: `"triangle"`
  - Options: `"triangle"`, `"quadrilateral"`



**Required Parameters Example**:

```json
{
  "input_image_url": "https://v3b.fal.media/files/b/0a865ab1/omYcawLUo4RZbO8J6ZgZR.png"
}
```

**Full Example**:

```json
{
  "input_image_url": "https://v3b.fal.media/files/b/0a865ab1/omYcawLUo4RZbO8J6ZgZR.png",
  "face_count": 500000,
  "generate_type": "Normal",
  "polygon_type": "triangle"
}
```


### Output Schema

The API returns the following output format:

- **`model_glb`** (`File`, _required_):
  Generated 3D object in GLB format.
  - Examples: {"file_size":64122888,"url":"https://v3b.fal.media/files/b/0a8686ae/MQN_KtP32PbqtPr_VLcyp_model.glb","content_type":"model/gltf-binary","file_name":"model.glb"}

- **`thumbnail`** (`File`, _optional_):
  Preview thumbnail of the generated model
  - Examples: {"file_size":74443,"url":"https://v3b.fal.media/files/b/0a8686ae/sGIaYWOna5Zabtl5PBjDt_preview.png","content_type":"image/png","file_name":"preview.png"}

- **`model_urls`** (`ModelUrls`, _required_):
  URLs for different 3D model formats
  - Examples: {"glb":{"file_size":64122888,"url":"https://v3b.fal.media/files/b/0a8686ae/MQN_KtP32PbqtPr_VLcyp_model.glb","content_type":"model/gltf-binary","file_name":"model.glb"},"obj":{"file_size":42886419,"url":"https://v3b.fal.media/files/b/0a8686ad/ifdJskhUfQysq-NN20iQR_model.obj","content_type":"text/plain","file_name":"model.obj"}}

- **`seed`** (`integer`, _optional_):
  The seed used for generation



**Example Response**:

```json
{
  "model_glb": {
    "file_size": 64122888,
    "url": "https://v3b.fal.media/files/b/0a8686ae/MQN_KtP32PbqtPr_VLcyp_model.glb",
    "content_type": "model/gltf-binary",
    "file_name": "model.glb"
  },
  "thumbnail": {
    "file_size": 74443,
    "url": "https://v3b.fal.media/files/b/0a8686ae/sGIaYWOna5Zabtl5PBjDt_preview.png",
    "content_type": "image/png",
    "file_name": "preview.png"
  },
  "model_urls": {
    "glb": {
      "file_size": 64122888,
      "url": "https://v3b.fal.media/files/b/0a8686ae/MQN_KtP32PbqtPr_VLcyp_model.glb",
      "content_type": "model/gltf-binary",
      "file_name": "model.glb"
    },
    "obj": {
      "file_size": 42886419,
      "url": "https://v3b.fal.media/files/b/0a8686ad/ifdJskhUfQysq-NN20iQR_model.obj",
      "content_type": "text/plain",
      "file_name": "model.obj"
    }
  }
}
```


## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://fal.run/fal-ai/hunyuan3d-v3/image-to-3d \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{
     "input_image_url": "https://v3b.fal.media/files/b/0a865ab1/omYcawLUo4RZbO8J6ZgZR.png"
   }'
```

### Python

Ensure you have the Python client installed:

```bash
pip install fal-client
```

Then use the API client to make requests:

```python
import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "fal-ai/hunyuan3d-v3/image-to-3d",
    arguments={
        "input_image_url": "https://v3b.fal.media/files/b/0a865ab1/omYcawLUo4RZbO8J6ZgZR.png"
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)
```

### JavaScript

Ensure you have the JavaScript client installed:

```bash
npm install --save @fal-ai/client
```

Then use the API client to make requests:

```javascript
import { fal } from "@fal-ai/client";

const result = await fal.subscribe("fal-ai/hunyuan3d-v3/image-to-3d", {
  input: {
    input_image_url: "https://v3b.fal.media/files/b/0a865ab1/omYcawLUo4RZbO8J6ZgZR.png"
  },
  logs: true,
  onQueueUpdate: (update) => {
    if (update.status === "IN_PROGRESS") {
      update.logs.map((log) => log.message).forEach(console.log);
    }
  },
});
console.log(result.data);
console.log(result.requestId);
```


## Additional Resources

### Documentation

- [Model Playground](https://fal.ai/models/fal-ai/hunyuan3d-v3/image-to-3d)
- [API Documentation](https://fal.ai/models/fal-ai/hunyuan3d-v3/image-to-3d/api)
- [OpenAPI Schema](https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=fal-ai/hunyuan3d-v3/image-to-3d)

### fal.ai Platform

- [Platform Documentation](https://fal.ai/docs/documentation)
- [Python Client](https://fal.ai/docs/api-reference/client-libraries/python)
- [JavaScript Client](https://fal.ai/docs/api-reference/client-libraries/javascript)

### Other agent-readable surfaces

This file covers one model. To find anything else:

- [Platform overview](https://fal.ai/llms.txt): Entry points and representative endpoint IDs
- [Documentation index](https://fal.ai/docs/llms.txt): Every documentation page
- [Full documentation text](https://fal.ai/docs/llms-full.txt): The whole documentation inlined
- Any other model: `https://fal.ai/models/<endpoint-id>/llms.txt`
