---
title: addImage
slug: viewer-3d/methodsaddimage
docTags: 
createdAt: 2026-09-17T10:31:12.378Z
---

Adds an image to the 3D scene.

## Usage

```javascript
const image = {
  url: "https://placehold.co/400",
  size: {
    height: 10,
    width: 10
  },
  transform: {
    position: {
      x: 1.0,
      y: 1.0,
      z: 0.0
    }
  }
};

const imageId = viewer3d.addImage(image);
```

## Parameters

### image

Image to add.

| **Type**                              | **Required** |
| ------------------------------------- | ------------ |
| [Image](docId\:uq36HUd--sJJ5wrLaR6Yq) | Yes          |

## Return Value

Id of the image.

| **Type** |
| -------- |
| String   |

