# Jewelry on Model

For AI agents: this is the Markdown version of https://docs.fashiolabs.com/tools/jewelry_on_model.html. The index of all Fashio API docs is at https://docs.fashiolabs.com/llms.txt, and the complete reference in one file is at https://docs.fashiolabs.com/llms-full.txt.

Put a jewelry product photo on an AI model — a macro product shot becomes a worn lifestyle/on-model shot.

`toolId: "jewelry_on_model"` · 4 credits · model\_garment · ratio: global (default 1:1)

![Jewelry product photo turned into a worn on-model shot](https://firebasestorage.googleapis.com/v0/b/fashio-ai-app.firebasestorage.app/o/fal_outputs%2Fpack_examples%2Fjew_onmodel.png?alt=media&token=99763aa2-d2bd-4c85-97c6-c9ef98adf2aa)

## What it does

Puts a jewelry product photo (ring, necklace, earring, or bracelet) onto an AI model — a macro product shot becomes a worn lifestyle/on-model shot.

## Request body

| Field | Type |  | Description |
| --- | --- | --- | --- |
| `toolId` | string | required | Always `"jewelry_on_model"`. |
| `images.jewelry_image` | string | required\* | URL of the jewelry product photo, for a single piece. \*At least one of `jewelry_image` / `jewelry_images` is required. |
| `images.jewelry_images` | string\[\] | required\* | Array of jewelry photo URLs, for multiple pieces in one shot. \*At least one of `jewelry_image` / `jewelry_images` is required. |
| `images.fashion_model` | string | optional | A catalog ID from [GET /v1/fashion-models](https://docs.fashiolabs.com/core-endpoints.md), or a direct image URL. Omit and Fashio picks a suitable model. |
| `jewelryType` | string | required | One of `ring`, `necklace`, `earring`, `bracelet`. Determines how the piece is posed/framed. |
| `backgroundColor` | string | optional | Hex color, e.g. `"#F4F2EA"`, for a solid studio background instead of a scene. |
| `ratio` | string | optional | One of `1:1`, `4:5`, `3:4`, `9:16`, `16:9`. Defaults to `1:1`. |

## Example request

**cURL**

```bash
curl -X POST https://api.fashiolabs.com/v1/generations \
  -H "Authorization: Bearer fio_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "toolId": "jewelry_on_model",
    "images": {
      "jewelry_image": "https://your-cdn.com/gold-ring.jpg",
      "fashion_model": "fm_south_asian_01"
    },
    "jewelryType": "ring",
    "backgroundColor": "#F4F2EA",
    "ratio": "1:1"
  }'
```

**Node.js**

```javascript
const res = await fetch("https://api.fashiolabs.com/v1/generations", {
  method: "POST",
  headers: {
    Authorization: "Bearer " + process.env.FASHIO_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    toolId: "jewelry_on_model",
    images: {
      jewelry_image: "https://your-cdn.com/gold-ring.jpg",
      fashion_model: "fm_south_asian_01",
    },
    jewelryType: "ring",
    backgroundColor: "#F4F2EA",
    ratio: "1:1",
  }),
});
const { id } = await res.json();
```

**Python**

```python
import os, requests

res = requests.post(
    "https://api.fashiolabs.com/v1/generations",
    headers={"Authorization": f"Bearer {os.environ['FASHIO_API_KEY']}"},
    json={
        "toolId": "jewelry_on_model",
        "images": {
            "jewelry_image": "https://your-cdn.com/gold-ring.jpg",
            "fashion_model": "fm_south_asian_01",
        },
        "jewelryType": "ring",
        "backgroundColor": "#F4F2EA",
        "ratio": "1:1",
    },
)
job_id = res.json()["id"]
```

## Response

**202 Accepted**

```json
{ "success": true, "id": "8b1e...", "status": "processing" }
```

Poll `GET /v1/generations/:id` (see [Quickstart](https://docs.fashiolabs.com/quickstart.md)) until it completes:

**200 · completed**

```json
{
  "success": true,
  "id": "8b1e...",
  "status": "completed",
  "resultUrls": ["https://.../result.jpg"],
  "errorMessage": null
}
```

## Common errors

| Status | Meaning |
| --- | --- |
| 400 | `jewelry_on_model: missing required image "jewelry_image"` — required image field wasn't resolvable. |
| 402 | `Insufficient diamonds. Required 4, have <n>.` |
| 429 | Daily request cap reached for this key — see [Rate Limits](https://docs.fashiolabs.com/rate-limits.md). |

## Related tools

- [Jewelry E-com Pack](https://docs.fashiolabs.com/tools/jewelry_ecom_pack.md) — one jewelry photo in, a full set of ready-to-publish formats out.
- [Virtual Try-On (Single)](https://docs.fashiolabs.com/tools/virtual_model.md) — for garments instead of jewelry.

---

Source: https://docs.fashiolabs.com/tools/jewelry_on_model.html · OpenAPI spec: https://docs.fashiolabs.com/openapi.yaml · Docs index: https://docs.fashiolabs.com/llms.txt
