# Model
A 3D model uploaded as product media.
## Overview
The `model` object represents three-dimensional model files attached to products. Use the [`model_viewer_tag` filter](https://shopify.dev/docs/api/liquid/filters/model_viewer_tag) to render a Google model viewer component for displaying the model.
## Properties
| Property | Type | Description |
|----------|------|-------------|
| `alt` | string | Alternative text describing the model |
| `id` | number | Unique identifier for the model |
| `media_type` | string | Always returns `"model"` |
| `position` | number | Index position within the `product.media` array |
| `preview_image` | image | Thumbnail image representing the model |
| `sources` | array | Collection of `model_source` objects containing model file data |
## Example Usage
Filter product media to display only 3D models:
```liquid
{% assign models = product.media | where: 'media_type', 'model' %}
{% for model in models %}
{{- model | model_viewer_tag }}
{% endfor %}
```
This generates an interactive model viewer component with camera controls and preview imagery.
## Sample Data
```json
{
"alt": "Potion bottle",
"id": 22064203137089,
"media_type": "model",
"position": 1,
"preview_image": {},
"sources": []
}
```