# Clothing E-com Pack

For AI agents: this is the Markdown version of https://docs.fashiolabs.com/tools/clothing_ecom_pack.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.

One clothing product photo in, a full set of ready-to-publish formats out — campaign, catalogue, lookbook, e-commerce listing and billboard/social crop, from a single request.

`toolId: "clothing_ecom_pack"` · 12 credits · fanout\_pack · ratio: global (default 1:1)

![Clothing product photo turned into a full pack of campaign, catalogue and lookbook formats](https://firebasestorage.googleapis.com/v0/b/fashio-ai-app.firebasestorage.app/o/fal_outputs%2Fpack_examples%2Fclo_white.png?alt=media&token=99763aa2-d2bd-4c85-97c6-c9ef98adf2aa)

## What it does

**Fan-out tool:** one request returns multiple finished images in different formats (campaign, catalogue, lookbook, e-commerce listing, billboard/social crop) from a single clothing product photo — one product photo in, a full set of ready-to-publish formats out.

## Request body

| Field | Type |  | Description |
| --- | --- | --- | --- |
| `toolId` | string | required | Always `"clothing_ecom_pack"`. |
| `images.user_photo` | string | required | The flat/product photo of the clothing item. |
| `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. If given, the pack includes on-model shots; if omitted, product-only compositions. |
| `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": "clothing_ecom_pack",
    "images": {
      "user_photo": "https://your-cdn.com/camel-trench.jpg",
      "fashion_model": "fm_south_asian_01"
    },
    "ratio": "4:5"
  }'
```

**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: "clothing_ecom_pack",
    images: {
      user_photo: "https://your-cdn.com/camel-trench.jpg",
      fashion_model: "fm_south_asian_01",
    },
    ratio: "4:5",
  }),
});
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": "clothing_ecom_pack",
        "images": {
            "user_photo": "https://your-cdn.com/camel-trench.jpg",
            "fashion_model": "fm_south_asian_01",
        },
        "ratio": "4:5",
    },
)
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. This is a fan-out tool, so `resultUrls` can contain several entries — one per generated format:

**200 · completed**

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

## Common errors

| Status | Meaning |
| --- | --- |
| 400 | `clothing_ecom_pack: missing required image "user_photo"` — required image field wasn't resolvable. |
| 402 | `Insufficient diamonds. Required 12, 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) — same fan-out idea, for jewelry.
- [Virtual Try-On (Batch)](https://docs.fashiolabs.com/tools/outfit_photo.md) — a single composed outfit shot instead of a full pack.

---

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