> ## Documentation Index
> Fetch the complete documentation index at: https://docs.selektable.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API introduction

> Generate AI product visualizations over a REST API

The Selektable API lets you generate AI product visualizations from a customer photo — **fashion** (`virtual-try-on`) and **interior** (`room-visualizer`) — over a REST API.

## Base URL

```
https://api.selektable.com/v1
```

## Conventions

* **Format:** JSON for requests and responses.
* **Auth:** API key as a Bearer token (see [Authentication](https://docs.selektable.com/api-reference/authentication.md)).
* **Delivery:** asynchronous — [webhooks](https://docs.selektable.com/api-reference/webhooks.md) by default, [polling](https://docs.selektable.com/api-reference/endpoints/generations/retrieve.md) optional.
* **Versioning:** the version is part of the URL (`/v1`). Backwards-incompatible changes ship under a new version.

## OpenAPI spec

The published OpenAPI 3.1 contract is served live by the API:

```
GET https://api.selektable.com/v1/openapi.json
```

The endpoint pages in this section are generated from that spec, so they always reflect the deployed version.

## Quickstart

1. Create an [API key](https://docs.selektable.com/api-reference/authentication.md) in the dashboard under **Account → API Keys**.
2. [Register a webhook endpoint](https://docs.selektable.com/api-reference/endpoints/webhook-endpoints/create.md) so you can receive results.
3. [Create a generation](https://docs.selektable.com/api-reference/endpoints/generations/create.md) with a customer photo and 1–3 products.
4. Verify the signature on incoming webhook events and use the `imageUrl` from the payload — or pick a smaller `imageVariants.{list,card,detail}` URL when you're embedding in emails, lists, or mobile.

## Requirements

* The public API requires an **active subscription**. Requests from organizations without one return `403 subscription_required`.
* Each API key is scoped to a single **store** within your organization; every generation it creates is attributed to that store.
* Keys are rate limited — see [Rate limits](https://docs.selektable.com/api-reference/rate-limits.md).

## Billing

Each completed generation consumes credits based on `imageSize`:

| Size | Credits |
| - | - |
| `1K` (default) | 1 |
| `2K` | 2 |
| `4K` | 3 |

Usage is metered against your subscription, the same as dashboard and Studio renders.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.