Create a Fit

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.

POST /v1/fits creates a Fit from one person and one piece of clothing. The response comes back at once with the Fit's id and its status; generation continues in the background.

Request

POST /v1/fits
Authorization: Bearer outfit_test_...
Idempotency-Key: <a unique value for this Fit>
Content-Type: application/json
{
  "person": { "upload": "upl_2ykA1mQ8..." },
  "clothing": [
    { "upload": "upl_9qaZ3vB2..." }
  ],
  "options": { "output": "image", "pose": "original" },
  "metadata": { "orderId": "A-1042" }
}

Unknown fields anywhere in the body are rejected with 400 invalid_request and param naming the field.

Person

FieldTypeNotes
person.uploadstringThe id of an upload with purpose: "person". Required.

A person is always an upload your product made with POST /v1/uploads. Outfit AI never fetches a person photo from a URL.

A good photo is front-facing, full body, well lit, with plain clothing. An unusable photo fails the Fit with person_unusable.

Clothing

clothing is an array of one to five entries (your plan may allow fewer; see GET /v1/capabilities).

FieldTypeNotes
uploadstringThe id of an upload with purpose: "clothing". Required.
rolestringHow the reference is used: top, bottom, outerwear, one_piece, outfit, shoes or headwear. Only the item the role names is taken from the reference. Optional with one entry (then outfit: the reference is worn as shown); required on every entry when there are several.
labelstringOptional, up to 80 characters; returned as sent.

Roles, combinations and precedence are described in Clothing roles. A Fit with any role other than a single outfit is generated as an image (options.output: "image"). Clothing by URL is not part of the API yet: upload the image.

Options

FieldValuesDefaultNotes
options.outputimage, model, image_and_modelimagemodel is a 3D model built from the generated image; image_and_model returns both. 3D output is enabled per organization during the beta; without it, model and image_and_model answer 400 fit_invalid.
options.poseoriginal, normalizedoriginalnormalized is a standard front-facing A-pose; it gives the best 3D result.

Metadata

metadata is an optional object of up to 20 string keys and values (keys up to 40 characters, values up to 500). It is stored with the Fit and returned unchanged. Do not put personal data in it.

Idempotency

The Idempotency-Key header is required: a value unique to this Fit, such as a UUID, 1 to 255 printable characters. If the request is retried with the same key and the same body within 24 hours, the API returns the same Fit (200 with Idempotent-Replayed: true) instead of creating another. The same key with a different body answers 409 idempotency_conflict. See Errors.

Response

202 Accepted with the Fit object. Its status is queued. Read it with GET /v1/fits/:id.

{
  "id": "fit_7hsK2pL4...",
  "object": "fit",
  "status": "queued",
  "person": { "upload": "upl_2ykA1mQ8..." },
  "clothing": [{ "upload": "upl_9qaZ3vB2..." }],
  "options": { "output": "image", "pose": "original" },
  "output": null,
  "error": null,
  "metadata": { "orderId": "A-1042" },
  "createdAt": "2026-01-01T10:00:05Z",
  "completedAt": null
}

Errors

StatusCodeWhen
400invalid_requestA missing, unknown or malformed field, or no Idempotency-Key; param names it
400fit_invalidMore than one clothing entry, or 3D output that is not enabled for the organization
404not_foundAn upload id that does not exist for this organization and key kind, or has expired
409idempotency_conflictThe same Idempotency-Key with a different body
429rate_limitedToo many requests, or too many Fits generating at once (param: "concurrency")
429quota_exceededThis month's included Fits are used up, or the organization's allowance is exhausted
503service_unavailableThe requested output is temporarily unavailable