# Let people see a 3D model in AR from your website

> Have an Agent make a 3D model for the web, add a 3D viewer to your website, and place the model in the room from Safari on an iPhone or iPad.

Source: https://air.build/docs/build/show-a-3d-model-in-ar-on-your-website/

Your website can show a 3D model that visitors turn around on the page and, on an iPhone or iPad, place in the room around them. An Agent makes the model's files and adds a 3D viewer to the site. You ask in the project's chat, open the page, and try it in the room.

To show a model in AR inside your own app instead, see [Add 3D models to your app or game](https://air.build/docs/build/add-3d-models/).

> [!NOTE]
> AirBuild has no screen for this. You ask an Agent in the project's chat. It makes the model with `modelgen`, which has a preset for AR on the web (`modelgen make --for ar-web`) and saves models as USDZ or glTF (`modelgen model convert`). See [modelgen](https://air.build/docs/cli/modelgen/#model-anim-mesh). Which viewer goes on the page is up to you and the Agent.

## Before you start

The project needs a website your Agents look after. If its **Website** tab is empty, ask for a site first. See [Publish your app's website](https://air.build/docs/services/publish-a-website/#get-a-website-built).

## Ask for the model on your site

1. Open the project's chat.
2. Say what the model is, point to one an Agent already made, or attach photos of the thing with **+**. See [Add 3D models to your app or game](https://air.build/docs/build/add-3d-models/#ask-for-a-model).
3. Say it's for the website, which page it goes on and where on that page.
4. Ask for a 3D viewer people can turn, and for AR on iPhone and iPad.
5. Ask for the model at its real size, so it looks right in the room. The Agent can scale a model to the real-world size of what it shows.

For example:

```text
Make a 3D model of our lamp from these photos, for the website. Put it on the product page under the main photo, in a 3D viewer people can turn. iPhone and iPad visitors should be able to place it in their room in AR, at its real size.
```

The Agent makes the model files the viewer needs and adds the viewer to the page. The files it can make include:

| File | What it's for |
| --- | --- |
| USDZ | The format Apple's AR uses. Apple's [AR Quick Look](https://developer.apple.com/augmented-reality/quick-look/) page says Safari on iPhone and iPad shows USDZ models in 3D and in AR. |
| glTF | A format for 3D on the web, for the view on the page. |

## Check the page

Open the site in the project's **Website** tab, go to the page and turn the model in the viewer. See [Publish your app's website](https://air.build/docs/services/publish-a-website/#browse-a-site).

To point at what should change, such as the viewer's size or place on the page, use **Select Element**. See [Change your website by pointing at it](https://air.build/docs/services/edit-your-website/).

## Place it in the room

Apple's page describes AR from Safari on iPhone and iPad.

1. On your iPhone or iPad, open the page in Safari. In the **Website** tab, touch and hold the site's row and choose **Copy Address**, then paste it into Safari. If Safari is your usual browser, **Open in Browser** opens it there.
2. Go to the page with the model and tap the viewer's AR button. The Agent can tell you what it looks like.
3. Apple's AR view opens and shows the model through the camera, in the room around you.

This page doesn't know whether AR opens from inside AirBuild's **Website** tab; Safari is where Apple's page says it works.

## Questions

**I don't see an AR button on my iPhone.**

Open the page in Safari. If there's still none, tell the Agent: the page may not offer the USDZ file to iPhone and iPad.

**The model is the wrong size in the room.**

Ask for the model at its real size, or give its size, for example "40 cm tall".

**The page is slow to load the model.**

Ask for a lighter model. See [Add 3D models to your app or game](https://air.build/docs/build/add-3d-models/#ask-for-changes).

**Can people on other phones or computers see it?**

This page covers Apple's AR on iPhone and iPad. What other phones and computers show depends on the viewer the Agent adds: ask the Agent.

**Does this count toward my plan?**

Yes. Generated 3D models count toward your plan's AI usage. See [Understand your usage](https://air.build/docs/team/understand-usage/#what-counts-toward-your-plan).

**The Agent says it can't make models right now.**

Your plan's AI usage may be used up; if so, a card above the message box says so. See [Understand your usage](https://air.build/docs/team/understand-usage/#when-usage-runs-low).
