Authentication
Before calling any API, you need to obtain an access token using your client credentials. The token is passed as aBearer token in the Authorization header of all subsequent requests.
Create Access Token
Authenticate with your
client_id and client_secret to receive a Bearer tokenAvailable APIs
Batch Media API
Create, manage, and monitor large-scale media generation tasks for batch campaigns
Realtime Media API
Trigger on-the-fly personalized media generation from apps or chatbots in real time
Virtual Try-On API
Enable AI-powered virtual garment try-on experiences with model and garment images
Endpoint Overview
Authorization API
| Method | Endpoint | Description |
|---|---|---|
POST | /auth/token | Obtain an access token using client credentials |
Batch Media API
| Method | Endpoint | Description |
|---|---|---|
POST | /media/task/create | Create a new batch media generation task |
POST | /media/task/cancel/{taskId} | Cancel an in-progress batch task |
GET | /media/task/status/{taskId} | Check the status of a batch task |
Realtime Media API
| Method | Endpoint | Description |
|---|---|---|
POST | /media/demo | Generate personalized media in real time |
GET | /status/{transactionId} | Check the status of a realtime media request |
Virtual Try-On API
| Method | Endpoint | Description |
|---|---|---|
POST | /vton/request | Submit a virtual try-on request with model and garment images |
GET | /vton/status/{requestId} | Retrieve the status and output of a try-on request |
Common Response Codes
| Code | Description |
|---|---|
200 | Request was successful |
400 | Bad request — invalid or missing parameters |
401 | Unauthorized — invalid or expired token |

