# Introduction

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

The Fashio API generates on-model e-commerce fashion photos and video from a product photo — the same engine that powers the Fashio app, exposed as a REST API and billed from the same credit (diamond) balance.

![Fashio API generated on-model fashion photo](https://fashiolabs.com/min/images/remote/virtual_2-e111022984d2.webp)

> You can download the full API Reference (OpenAPI specification) — every endpoint, parameter and schema — [here](https://docs.fashiolabs.com/api-reference.md). It's also machine-readable at `/openapi.yaml` and summarized for LLMs at [/llms-full.txt](https://docs.fashiolabs.com/llms-full.txt).

## How does the API work?

Every request is authenticated with a bearer API key tied to your Fashio account ([Authentication](https://docs.fashiolabs.com/authentication.md)). Generation is asynchronous: you `POST /v1/generations` with a `toolId` and your image URLs, the API deducts diamonds up front and returns `202 Accepted` with a job `id` immediately, and the actual image or video renders in the background — usually 10–60 seconds. Poll `GET /v1/generations/:id` until `status` is `completed` (or `failed`, which auto-refunds the diamonds) and read the result from `resultUrls`.

Product photos, model photos, or reframe/upscale/background-removal targets all go in the same way: upload raw bytes to `POST /v1/uploads` first (or host the image yourself and pass a public URL directly) — see [Core Endpoints](https://docs.fashiolabs.com/core-endpoints.md).

## Which tool should I use?

Fifteen generation tools cover on-model photography, catalog packs, video, and single-image edits. Each has its own dedicated page with the exact request shape and a runnable example.

- [Virtual Try-On (Single)](https://docs.fashiolabs.com/tools/virtual_model.md) — `virtual_model` · 4 credits
- [Virtual Try-On (Batch)](https://docs.fashiolabs.com/tools/outfit_photo.md) — `outfit_photo` · 4 credits
- [Pro Studio](https://docs.fashiolabs.com/tools/pro_studio.md) — `pro_studio` · 4 credits
- [Jewelry on Model](https://docs.fashiolabs.com/tools/jewelry_on_model.md) — `jewelry_on_model` · 4 credits
- [Clothing E-com Pack](https://docs.fashiolabs.com/tools/clothing_ecom_pack.md) — `clothing_ecom_pack` · 12 credits
- [Jewelry E-com Pack](https://docs.fashiolabs.com/tools/jewelry_ecom_pack.md) — `jewelry_ecom_pack` · 12 credits
- [Photo to Video](https://docs.fashiolabs.com/tools/ai_videos.md) — `ai_videos` · 15 credits
- [Mannequin to Flat Lay](https://docs.fashiolabs.com/tools/model_to_flat_lay.md) — `model_to_flat_lay` · 4 credits
- [Amateur to Professional](https://docs.fashiolabs.com/tools/amateur_to_pro.md) — `amateur_to_pro` · 4 credits
- [Pose Variation](https://docs.fashiolabs.com/tools/pose_angle_switch.md) — `pose_angle_switch` · 4 credits
- [Model Swap](https://docs.fashiolabs.com/tools/model_swap.md) — `model_swap` · 4 credits
- [Photo Edit (free-text)](https://docs.fashiolabs.com/tools/photo_edit.md) — `photo_edit` · 4 credits
- [Enhance / Upscale](https://docs.fashiolabs.com/tools/photo_enhance.md) — `photo_enhance` · 3 credits
- [Remove Background](https://docs.fashiolabs.com/tools/remove_background.md) — `remove_background` · 2 credits
- [Reframe](https://docs.fashiolabs.com/tools/photo_reframe.md) — `photo_reframe` · 2 credits

## Will the API alter my product photos?

Every tool is an edit, not a redraw. The prompts behind each endpoint are written to preserve the garment exactly — cut, print, hardware, logos — and only change what the tool is named for (pose, model, background, crop, resolution). See each tool's page for what it's guaranteed to keep identical.

## Make your first API call

**cURL**

```bash
curl https://api.fashiolabs.com/v1/models \
  -H "Authorization: Bearer fio_live_YOUR_KEY"
```

Full walkthrough — key, upload, generate, poll — in [Quickstart](https://docs.fashiolabs.com/quickstart.md).

> Prefer not to write raw HTTP calls? Official clients: [`fashio-client`](https://www.npmjs.com/package/fashio-client) (Node.js/TypeScript SDK), [`fashio-cli`](https://www.npmjs.com/package/fashio-cli) (command line, for scripts/CI), or [`fashio-mcp`](https://www.npmjs.com/package/fashio-mcp) (for AI agents — see [fashiolabs.com/mcp](https://fashiolabs.com/mcp)).

Prefer Postman? The whole API is a public collection: [Fashio on Postman](https://www.postman.com/fashio) ([collection docs](https://documenter.getpostman.com/view/60043630/2sBYHYud6x)) — fork it, set the `apiKey` variable to your key, and send requests.

---

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