CallDocumentation Index
Fetch the complete documentation index at: https://docs.drssed.app/llms.txt
Use this file to discover all available pages before exploring further.
POST /images/preview to upload a clothing photo and run it through the Drssed image pipeline. The API removes the background from the image and uses AI to detect the item’s dominant color, category, relevant seasons, and style tags. The returned image_id links the processed image to a clothing item when you call POST /users/me/clothing.
Endpoint
| Field | Value |
|---|---|
| Method | POST |
| Path | /images/preview |
| Auth required | Yes — Bearer token |
| Rate limit | 1 per minute |
| Content-Type | multipart/form-data |
Request parameters
The clothing image to process. Send as a
multipart/form-data field.Response fields
Status: 201 CreatedURL of the processed image with the background removed.
Unique identifier for this processed image. Pass this as
image_id when creating a clothing item via POST /users/me/clothing.Detected dominant color of the clothing item.
Detected category of the clothing item. One of:
JACKET, TOP, BOTTOM, FOOTWEAR.Detected seasons the item is suited for. Possible values:
Spring, Summer, Autumn, Winter.Detected style tags for the item. Possible values:
Casual, Formal, Sports, Vintage.Error codes
| Status | Meaning |
|---|---|
400 | No file was included in the request. |
413 | The uploaded file exceeds the maximum allowed size. |
422 | The image is unclear or not recognizable as clothing. |
Example
cURL
Response