> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kleep.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Try-On: data protection

> How AI Try-On handles shoppers' photos: consent, metadata, retention, model training, hosting, moderation, AI labelling and impact assessment.

Kleep keeps no shopper photo and no generated image. A photo is used only to produce the try-on the shopper asked for, after a recorded consent, and is never used to train a model.

This page is written for your data protection officer and legal team. "You" refers to the retailer, acting as **data controller**. "Kleep" refers to Kleep SAS, acting as **data processor**. It covers the AI Try-On feature only. For the rest of the Kleep script (trackers, events), see [Cookies, CMP & Data Privacy](https://docs.kleep.ai/cookie-consent.md).

## 1. Consent and proof of consent

When explicit consent is enabled for your account, the first screen of the try-on asks for it, before the camera opens or any photo can be imported.

* **Where:** in the Kleep try-on, on the first screen. You do not build anything on your site.
* **How:** an unticked checkbox. **Accept** stays disabled until it is ticked. **No thanks** closes the try-on.
* **Text:** the wording agreed with you, versioned. It covers the purpose, the age condition and the rule that shoppers only upload photos of themselves. It links to your privacy policy.
* **Enforcement:** the Kleep API refuses to generate a try-on without a valid accepted consent (`403 consent_required`), before any photo is processed.

Each choice is recorded by Kleep in an append-only table. Nothing is overwritten.

| Field | Content |
| - | - |
| Choice | `accepted`, `refused` or `withdrawn` |
| Date and time | Server time of the record (UTC) |
| Technical identifiers | Kleep browser identifier, and your visitor identifier when your page passes it |
| Channel | `web` |
| Wording | Version of the text, and a SHA-256 fingerprint of the exact text displayed |
| Language | Locale of the displayed text |
| Browser | User agent |
| Retailer | Your Kleep account identifier |

**Proof:** Kleep exports all records for a period, or for one visitor, as CSV or JSON, on your request.

**Withdrawal:** every screen after the consent shows a **Withdraw my consent** link. A withdrawal is recorded the same way, deletes any photo kept on the device, and closes the try-on. A new try-on then needs a new consent.

**Retention:** consent records are kept 6 months, then deleted.

## 2. Photo metadata

Photos reach Kleep without metadata such as location, capture date or device model.

* **In the browser:** camera captures are drawn from the video stream, which carries no metadata. Imported photos are resized and re-encoded in the browser before they are sent, which drops all EXIF data.
* **On Kleep's servers:** the image-processing service decodes and re-encodes each photo once more before generation.

## 3. Session and retention

There is no server-side session. A photo lives in the browser's memory while the try-on is open.

* **When the shopper closes the try-on or the browser**, the photo and the result are gone.
* **On the device, optional:** the shopper can tick **Remember my photo on this device** (unticked by default). The photo is then kept in the browser storage of the try-on for 7 days, so they don't retake it for the next product. The date is checked each time the try-on opens: after 7 days the photo is deleted and never reused. If the shopper never opens the try-on again, the photo stays in their browser until they clear the site data. They can delete it at any time (**Forget my photo**, or by unticking the box), and withdrawing consent deletes it.
* **On Kleep's servers:** the photo is processed in memory to produce the try-on, then discarded. It is never written to a database, a file store or a log. The generated image is returned to the browser and not kept.

Kleep keeps a technical record of each try-on, without any image:

| Data | Content | Retention | Access |
| - | - | - | - |
| Generation record | Product, status, duration, photo check result (faces counted, silhouette share, rejection reason), engine | 6 months | Kleep technical team; aggregated figures in your Kleep Dashboard |
| Try-on events | Steps reached, errors, with the Kleep browser identifier | 6 months | Same |
| Consent records | See section 1 | 6 months | Kleep; exported to you on request |
| Application logs | Request status and errors, never photos | 30 days | Kleep technical team |

**Deletion requests:** there is no photo or generated image to delete on Kleep's side. A shopper deletes a photo kept on the device from the try-on, or by clearing site data in the browser. For the records above, send the visitor identifier to Kleep through your usual contact; Kleep deletes the matching records, including from backups as they expire (the last 7 are kept).

## 4. AI model training and data reuse

Kleep does not use photos, generated images or related data to train or improve any model, its own or a provider's.

* **By contract:** the data processing agreement between you and Kleep forbids any reuse beyond producing the try-on.
* **Technically:** each request to the generation engine is sent with model training disallowed (`disallowPromptTraining`), through Vercel AI Gateway. [Vercel AI Gateway does not store prompts or responses](https://vercel.com/docs/ai-gateway/faq).
* **Fallback engine:** if the gateway is unavailable, Kleep can send the same request to fal. [fal's terms](https://fal.ai/legal/api-services) forbid using customer content to train or develop its products.
* **Kleep's own models** (photo check, garment segmentation) run on Kleep's servers and are not trained on shopper photos.

## 5. Data flow and hosting

```mermaid theme={null}
flowchart LR
  A["Shopper's browser<br/>photo in memory<br/>optional: on device 7 days"] -->|"photo, HTTPS"| B["Kleep API<br/>Google Cloud, Paris"]
  B -->|"photo"| C["Photo check + segmentation<br/>Kleep, Google Cloud, Paris"]
  C -->|"verdict, cleaned photo"| B
  B -->|"photo + product image"| D["Vercel AI Gateway<br/>no storage"]
  D --> E["Seedream 5.5<br/>BytePlus"]
  B -.->|"fallback, if the gateway is unavailable"| G["Seedream 5.5<br/>through fal, United States"]
  G -.->|"generated image"| B
  E -->|"generated image"| D --> B
  B -->|"generated image"| A
  B -.->|"no image"| F["Generation records,<br/>consents, events"]
```

| Component | Role | Provider and location | Data | Retention |
| - | - | - | - | - |
| Try-on interface (`vto.kleep.ai`) | Screens, camera, consent | Vercel (static files only, photos never pass through it) | None on the server | None |
| Shopper's browser | Holds the photo and the result | The shopper's device | Photo, result | While the try-on is open; 7 days if the shopper opts in |
| Kleep API | Consent check, orchestration, rate limits | Google Cloud Run, Paris (europe-west9) | Photo, in memory only | Discarded after the request |
| Image processing | Photo check, garment segmentation, re-encoding | Google Cloud Run, Paris (europe-west9) | Photo, in memory only | Discarded after the request |
| Vercel AI Gateway | Routes the request to the engine | Vercel Inc. | Photo and product image, in transit | Not stored |
| Generation engine | Produces the try-on image | Seedream 5.5 by ByteDance, operated by BytePlus Pte. Ltd. (Singapore). [Data centers](https://docs.byteplus.com/en/docs/ModelArk/BytePlus_ModelArk_Data_Processing): Malaysia, Indonesia or EU/EEA | Photo, product image, generated image | BytePlus may keep inputs and outputs blocked by its safety filter for 180 days, in Malaysia; training disallowed |
| Fallback engine | Produces the try-on image when the gateway is unavailable | The same model, through fal (Features & Labels, Inc.), United States | Photo, product image, generated image | Request history disabled; temporary files deleted after 1 hour at most |
| Kleep database | Consent records | Google Cloud, Paris (europe-west9) | Consent records | 6 months |
| Kleep analytics and logs | Generation records, events | Google Cloud, Belgium (europe-west1), servers operated by Kleep | Records without images | 6 months |

**Transfer outside the EU:** the photo is sent to the generation engine, outside the EU, to produce the try-on. The data processing agreements of Vercel and fal include the European Commission's standard contractual clauses.

## 6. Moderation and safety

Every photo is checked automatically before any generation. There is no human review.

* **One person, and only one:** a face detector (YuNet) counts the faces in the photo. Faces too small to be the shopper (prints on clothing, people far in the background) are ignored. Then a segmentation model (SegFormer) measures how much of the frame the person's silhouette covers.
* **Rejected:** no face, more than one face, or a silhouette too small to be a person (photos of objects, rooms, garments laid flat). The shopper is asked to take another photo. The rejection does not count against the retailer's usage.
* **Generated image:** the engine applies its own safety filter. An image it flags is refused and not shown.
* **No free prompt:** the instructions sent to the engine are fixed by Kleep. A shopper cannot ask for anything other than the selected product on their own photo.
* **Rate limits:** the API limits how many try-ons one connection can request, to prevent abuse.
* **Kleep keeps no rejected or flagged content.** Only the reason is recorded (for example `multiple_people`). A photo refused by Kleep's check is never sent to the engine. BytePlus may keep inputs and outputs blocked by the engine's filter for 180 days (see section 5).

**Limits:**

* There is no automatic age detection. The consent text states the age condition, and the shopper confirms it.
* There is no nudity detection on the uploaded photo. The engine's safety filter applies to the generated image.
* If the photo check cannot run (for example, a temporary failure of the detection model), the try-on is generated without it.

## 7. Labelling of AI-generated images

* **Visible label:** the result is displayed with the mention "AI-generated image".
* **Technical marking:** the image file produced by the engine carries a signed [C2PA](https://c2pa.org) manifest stating that it was generated by AI (`trainedAlgorithmicMedia`).
* **Downloads and sharing:** the try-on offers no download or share button. A screenshot taken by the shopper does not keep the C2PA manifest.

## 8. Data protection impact assessment

As data controller, you carry out the impact assessment (DPIA). Kleep provides the information below and answers any question your DPO has.

Kleep assessed the risks of AI Try-On following the CNIL's PIA method: data processed, risks to the people concerned, likelihood and severity, mitigation.

| Risk | Mitigation |
| - | - |
| Photo kept or reused without the shopper knowing | No storage on Kleep's servers; optional on-device storage, unticked by default, 7 days; training disallowed with the engine |
| Processing without valid consent | Consent checked by the API before any processing; versioned text with fingerprint; append-only records; withdrawal at any time |
| Photo of someone else, or of several people | Automatic one-person check; consent text requires the shopper's own photo |
| Inappropriate or misleading image | Fixed instructions, engine safety filter, visible AI label and C2PA marking |
| Metadata revealing location or device | Re-encoding in the browser and on the server |
| Transfer outside the EU | Standard contractual clauses with Vercel and fal, no storage at the gateway, retention at the engine limited to content blocked by its filter |
| Abuse of the API | Consent check and rate limits on every request |

## Subprocessors

| Subprocessor | Purpose | Location |
| - | - | - |
| Google Cloud | Hosting of the Kleep API, image processing, database and analytics | Paris, France; Belgium |
| Vercel Inc. | Try-on interface (static files), AI Gateway | United States (gateway: no storage) |
| BytePlus Pte. Ltd. (ByteDance group) | Image generation engine (Seedream 5.5), through Vercel AI Gateway | Company: Singapore. Processing: Malaysia, Indonesia or EU/EEA |
| Features & Labels, Inc. (fal) | Fallback engine, same model | United States |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.