---
title: BIM Models
slug: viewer-3d/bim-models
docTags: 
createdAt: 2024-06-11T11:38:07.789Z
---

Load BIM models using the [loadModelsFromToken](docId\:qGr99IE9oFI8E2DNqoxI4) method.

## Example

::codepen{url="https://codepen.io/Catenda/embed/abgRVmG"}

### 1. Create a 3D Viewer token

Request a [viewer token](docId:-j_py6n6vb4TN8pTVLjm8) for the asset stored in the models section.

```shell
curl --request POST \
  --url https://api.catenda.com/v2/projects/{PROJECT_ID}/viewer3d/token \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Content-Type: application/json'
```

### 2. Use the token to load the model

Invoke the `loadModelsFromToken` method with the viewer token.

```javascript
const url = "https://api.catenda.com/v2/projects/{PROJECT_ID}/viewer3d/data?token={TOKEN}";

viewer3d.loadModelsFromToken(url);
```

