# Data & privacy

By default we keep the verdicts and metadata of your requests for 7 days, not the text you send. We never use your data to train models.

## What we store

| Data | Kept for | Notes |
| --- | --- | --- |
| Request metadata: time, endpoint, API key, model, template, status, decisions, input tokens, cost, latency, cache hit, error message | 7 days | Shown in [Logs](https://layahost.com/logs). |
| Verdicts: for each question, the chosen option, yes probability or score, and the confidence | 7 days | Not the full probability distributions. |
| Request text | 7 days, only if you opt in | Off by default. The first 2,000 characters. |
| Playground text | 7 days | Always kept, so you can see what you tried. |
| Daily usage totals: decisions, tokens, cost, latency, errors | Until you delete your account | Aggregated per day and key, for the dashboard and billing. |

Logs older than 7 days are deleted by a daily job.

## Request text is opt-in

We don't store the text or state you send unless you turn on **Store request text in logs** in Settings → Data & alerts. It helps when you debug decisions from the Logs page. You can turn it off at any time, and **Delete stored text now** removes the stored text from all of your log entries at once.

Text you enter in the [Playground](https://layahost.com/playground) is always kept with its log entry for 7 days.

## How requests are processed

Your text is processed in memory to compute the answer and is not written to disk unless you opted in as above.

To answer repeated requests faster, recent answers are kept in memory for up to an hour, keyed by a hash of the model, text and questions. The cache holds the answers, not your text. On `/v1/systemone`, `"cache": false` skips the cache for that request: its answer is neither read from nor stored in it.

## Never used for training

We don't use your requests, text or answers to train or fine-tune models, and we don't sell your data.

## Keys and payments

- API keys are stored as hashes. We show each key once, when you create it, and can't show it again.
- Payments are handled by Stripe. Card details go to Stripe and never reach our servers.

## More

The [Privacy Policy](https://layahost.com/privacy) covers account and billing data, processors and your rights. You can delete your account in Settings.
