# Hyper3D Low Poly Mesh to 3D

> Hyper3D Low Poly converts existing high-poly models into low-poly meshes with triangle or quad topology, optionally projecting and baking the original textures onto the resulting mesh.


## Overview

- **Endpoint**: `https://fal.run/hyper3d/lowpoly/mesh-to-3d`
- **Model ID**: `hyper3d/lowpoly/mesh-to-3d`
- **Category**: 3d-to-3d
- **Kind**: inference
**Tags**: 3d, low-poly, retopology, mesh-simplification



## Pricing

Your request will cost $0.20 per generation.

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:


- **`model_url`** (`string`, _required_):
  URL of the mesh to simplify: OBJ, GLB, STL, FBX, USD, USDA, USDZ, or USDC.
  - Examples: "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/CesiumMan/glTF-Binary/CesiumMan.glb"

- **`face_count`** (`integer`, _optional_):
  Target number of faces in the low-poly mesh. Default value: `4000`
  - Default: `4000`
  - Range: `200` to `10000`

- **`geometry_file_format`** (`GeometryFileFormatEnum`, _optional_):
  Output format. GLB, USDZ, and FBX embed textures in the file. Default value: `"glb"`
  - Default: `"glb"`
  - Options: `"fbx"`, `"glb"`, `"obj"`, `"stl"`, `"usdz"`

- **`mesh_mode`** (`MeshModeEnum`, _optional_):
  Polygon type. Quad uses quadrilaterals, Raw uses triangles, and NGon uses polygons. Default value: `"Quad"`
  - Default: `"Quad"`
  - Options: `"Quad"`, `"Raw"`, `"NGon"`

- **`resolution`** (`ResolutionEnum`, _optional_):
  Texture resolution. Basic gives 2K textures and High gives 4K textures. Default value: `"Basic"`
  - Default: `"Basic"`
  - Options: `"Basic"`, `"High"`

- **`transfer_texture`** (`boolean`, _optional_):
  Transfer the original textures to the simplified mesh. Disable to return geometry only. Default value: `true`
  - Default: `true`



**Required Parameters Example**:

```json
{
  "model_url": "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/CesiumMan/glTF-Binary/CesiumMan.glb"
}
```

**Full Example**:

```json
{
  "model_url": "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/CesiumMan/glTF-Binary/CesiumMan.glb",
  "face_count": 4000,
  "geometry_file_format": "glb",
  "mesh_mode": "Quad",
  "resolution": "Basic",
  "transfer_texture": true
}
```


### Output Schema

The API returns the following output format:

- **`model_mesh`** (`File`, _required_):
  Low-poly mesh in the requested format.

- **`model_meshes`** (`list<File>`, _optional_):
  Additional mesh files returned besides model_mesh.
  - Array of File

- **`textures`** (`list<Image>`, _optional_):
  Texture images returned with the mesh.
  - Array of Image



**Example Response**:

```json
{
  "model_mesh": {
    "url": "",
    "content_type": "image/png",
    "file_name": "z9RV14K95DvU.png",
    "file_size": 4404019
  },
  "model_meshes": [
    {
      "url": "",
      "content_type": "image/png",
      "file_name": "z9RV14K95DvU.png",
      "file_size": 4404019
    }
  ],
  "textures": [
    {
      "url": "",
      "content_type": "image/png",
      "file_name": "z9RV14K95DvU.png",
      "file_size": 4404019,
      "width": 1024,
      "height": 1024
    }
  ]
}
```


## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://fal.run/hyper3d/lowpoly/mesh-to-3d \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{
     "model_url": "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/CesiumMan/glTF-Binary/CesiumMan.glb"
   }'
```

### 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(
    "hyper3d/lowpoly/mesh-to-3d",
    arguments={
        "model_url": "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/CesiumMan/glTF-Binary/CesiumMan.glb"
    },
    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("hyper3d/lowpoly/mesh-to-3d", {
  input: {
    model_url: "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/CesiumMan/glTF-Binary/CesiumMan.glb"
  },
  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);
```


## Deploy your own model

To run your own weights, a fine-tune or a custom pipeline on the GPUs that serve this API, deploy it on fal Serverless. GPUs from H100 (80GB) to B300 (288GB), billed per second; an H100 is $4.50/h list, as low as $2.49/h. Prices, GPU specs and deploy steps: [fal Serverless](https://fal.ai/serverless.md).

## Additional Resources

### Documentation

- [Model Playground](https://fal.ai/models/hyper3d/lowpoly/mesh-to-3d)
- [API Documentation](https://fal.ai/models/hyper3d/lowpoly/mesh-to-3d/api)
- [OpenAPI Schema](https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=hyper3d/lowpoly/mesh-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
- [Pricing](https://fal.ai/pricing.md): Model API and Serverless GPU prices
- [fal Serverless](https://fal.ai/serverless.md): Deploy your own models: GPU prices, specs and steps
- Any other model: `https://fal.ai/models/<endpoint-id>/llms.txt`
