Quickstart
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.
Your first Fit in four requests: upload a person photo and a clothing image, create the Fit, and read it when it is completed.
What you need
- An Outfit AI organization with the API enabled and a test API key (
outfit_test_...). During the private beta the Outfit AI team issues keys on request; later you create them in the dashboard. - The API origin. It is announced with the beta; these docs write it as
<API_ORIGIN>. - A full-body photo of a person (JPEG or PNG, shorter side at least 256 pixels) and a picture of one piece of clothing (shorter side at least 200 pixels).
A test key runs the whole flow against a stand-in generator: the Fit completes with a placeholder image, nothing is billed and no AI provider is called. Swap in a live key for real Fits.
1. Upload the person photo
curl -X POST <API_ORIGIN>/v1/uploads \
-H "Authorization: Bearer outfit_test_..." \
-F "purpose=person" \
-F "file=@person.jpg"
{
"id": "upl_2ykA1mQ8...",
"object": "upload",
"purpose": "person",
"contentType": "image/jpeg",
"width": 1200,
"height": 1600,
"bytes": 418233,
"expiresAt": "2026-01-02T10:00:00Z",
"createdAt": "2026-01-01T10:00:00Z"
}
An upload no Fit uses expires after 24 hours; one a Fit uses is kept as long as the Fit.
2. Upload the clothing image
The same request with purpose=clothing (and an optional label field).
3. Create the Fit
curl -X POST <API_ORIGIN>/v1/fits \
-H "Authorization: Bearer outfit_test_..." \
-H "Idempotency-Key: 8f1c0d3e-7b1a-4b7e-9d2c-1f3a5e7c9b21" \
-H "Content-Type: application/json" \
-d '{
"person": { "upload": "upl_2ykA1mQ8..." },
"clothing": [{ "upload": "upl_9qaZ3vB2..." }],
"options": { "output": "image", "pose": "original" }
}'
{
"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": {},
"createdAt": "2026-01-01T10:00:05Z",
"completedAt": null
}
The response is 202 Accepted: the Fit exists and is being generated. The Idempotency-Key header is required; keep the id.
4. Read the Fit
Poll until the status is completed or failed.
curl <API_ORIGIN>/v1/fits/fit_7hsK2pL4... \
-H "Authorization: Bearer outfit_test_..."
{
"id": "fit_7hsK2pL4...",
"object": "fit",
"status": "completed",
"person": { "upload": "upl_2ykA1mQ8..." },
"clothing": [{ "upload": "upl_9qaZ3vB2..." }],
"options": { "output": "image", "pose": "original" },
"output": {
"image": { "url": "https://...", "expiresAt": "2026-01-01T11:00:00Z" }
},
"error": null,
"metadata": {},
"createdAt": "2026-01-01T10:00:05Z",
"completedAt": "2026-01-01T10:00:48Z"
}
Output links expire. Fetch the image when you show it, or store your own copy under your own terms.
Next
- Authentication: test and live keys, scopes, rotation.
- Create a Fit: every input and option.
- Statuses and Errors: what to expect and how to handle it.