Clothing roles and several items

Private beta The v1 contract is implemented; the endpoints are not publicly reachable yet and access is by request. Details may still change during the beta.

Each clothing entry says how its reference is used with a role. Only the item the role names is taken from the reference: if the photo shows a model wearing other clothes, shoes, jewellery or a bag, those are ignored.

RoleMeaning
topAn upper-body garment: a shirt, T-shirt, blouse, sweater, hoodie
bottomA lower-body garment: trousers, jeans, a skirt, shorts
outerwearAn outer layer worn over the other clothes: a coat, jacket, blazer, vest
one_pieceOne garment covering the upper and lower body: a dress, jumpsuit, overall
outfitA picture of a complete outfit, worn as shown (including its shoes or head covering when it shows them)
shoesA pair of shoes: sneakers, boots, sandals, heels. A picture of one shoe gives the matching pair
headwearA head covering: a hat, cap, beanie, head scarf

shoes and headwear are enabled per deployment. Until they are, a request that uses them gets 400 invalid_request; GET /v1/capabilities lists the roles your key can use now.

One entry

{
  "person": { "upload": "upl_2ykA1mQ8..." },
  "clothing": [{ "upload": "upl_9qaZ3vB2...", "role": "outerwear" }],
  "options": { "output": "image", "pose": "original" }
}

A role is always honoured. Without a role, a single entry is an outfit. The Fit returns the effective role of every entry.

Several entries

{
  "person": { "upload": "upl_2ykA1mQ8..." },
  "clothing": [
    { "upload": "upl_9qaZ3vB2...", "role": "top" },
    { "upload": "upl_4weR7tY6...", "role": "bottom" },
    { "upload": "upl_0cnT9rE1...", "role": "outerwear" },
    { "upload": "upl_7mdK2sW5...", "role": "shoes" }
  ],
  "options": { "output": "image", "pose": "original" }
}

Rules: every entry has a role; each role at most once; one_piece and outfit cannot be combined with each other or with top or bottom. The order of entries does not matter.

Precedence

A dedicated role decides its part of the result. outfit is the base; outfit + outerwear puts the dedicated outer layer over the outfit (replacing any outer layer the outfit shows), and outfit + shoes or headwear replaces the outfit's own shoes or head covering. A part of the body no entry supplies stays as it is in the person photo.

Limits

The API accepts up to five entries per Fit (one per role, for example top, bottom, outerwear, shoes and headwear); your plan may allow fewer. Too many entries for the API is 400 invalid_request; more than your plan allows is 403 quota_exceeded, both with param: "clothing". Any role other than a single outfit is generated as an image. A Fit counts as one Fit generation plus one garment reference per additional entry (see Rate limits and usage).

Discovering what your key can use

GET /v1/capabilities returns the accepted roles, the API and plan limits, the outputs and poses and the upload limits for your key. Roles may be added in v1; read unknown values tolerantly. Renaming or removing a role, or changing what it means, happens only in a new major version.