Try-on on the product page
The shopper uploads one photo and sees each piece on themselves as they browse.
Developers Private beta
Everything the app does, from your own code: upload a person photo and clothing, create a Fit, and receive it when it is ready.
const res = await fetch(`${API_ORIGIN}/v1/fits`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.OUTFIT_AI_API_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
person: { upload: personUploadId },
clothing: [{ upload: clothingUploadId }],
options: { output: 'image', pose: 'original' },
}),
});
const fit = await res.json(); // { id, status: 'queued' }Request flow
POST /v1/uploads with the person photo and each clothing image. Each upload returns an id that stays valid for a limited time.POST /v1/fits with the person upload, the clothing reference and the options. The Idempotency-Key header is required, so a retry never creates a second Fit.GET /v1/fits/:id until the status is completed or failed, or register a webhook in the dashboard and receive fit.completed.import os, requests, uuid
r = requests.post(
f"{API_ORIGIN}/v1/fits",
headers={
"Authorization": f"Bearer {os.environ['OUTFIT_AI_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"person": {"upload": person_upload_id},
"clothing": [{"upload": clothing_upload_id}],
"options": {"output": "image", "pose": "original"},
},
)
fit = r.json() # {"id": "fit_...", "status": "queued"}Use cases
The shopper uploads one photo and sees each piece on themselves as they browse.
Combine a top, a bottom and outerwear from your catalog into one Fit.
Show one collection on many people without a photo shoot for every combination.
A stylist combines pieces for a client and sends Fits, not mood boards.
Documentation
Your first Fit with curl, TypeScript or Python.
Organization API keys, test and live, scopes and rotation.
The request, clothing roles, the options and idempotency.
Events, signatures, replay protection and retries.
The error shape, the codes, rate limits and idempotency.
Every endpoint and every field of the v1 contract.
Private beta. The v1 contract on these pages is implemented, but the endpoints are not publicly reachable yet. Access is by request.