# Digital Twin API

> Create reusable customer avatars from a face photo paired with a body photo, silhouette, measurements, or clothing size.

- Generate a digitalTwinId once, then reuse it across many garment try-on jobs.
- POST /api/v1/digital-twin requires faceImage plus exactly one of bodyPhotoUrl, silhouetteImage, clothingSize, or bodyMeasurements. Height and weight may accompany bodyPhotoUrl and refine the generated body, but only when gender is male or female and the pose is not preserved.
- Digital twin caching is designed for repeat sessions and lower per-try-on latency.

## Key questions

### How long are digital twins cached?

Digital twins are cached for 30 days by default.

### Can users avoid full-body photos?

Yes. Pair faceImage with clothingSize or bodyMeasurements instead of a full-body photo. A face photo is still required. Size recommendations additionally require a supported stored body profile of sufficient quality.

### How is a saved twin checked?

Call GET /api/v1/digital-twin/{id} to verify that a saved digitalTwinId is still valid.

## Related pages

- [Home](https://api.wearfits.com/)
- [Virtual Try-On API](https://api.wearfits.com/virtual-try-on-api)
- [Shoe 3D API](https://api.wearfits.com/shoe-3d-api)
- [Glossary](https://api.wearfits.com/glossary)

## Reference

- OpenAPI 3.1 spec: https://api.wearfits.com/doc
- Swagger UI: https://api.wearfits.com/reference
- Agent context: https://api.wearfits.com/llms-full.txt
