---
agent:
  instructions: "Search the site by keyword or question. The search API returns Markdown."
  endpoint: "https://platform.invideo.io/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Security

> How API keys are kept safe, their format, and what to do when one leaks.

## API keys

- We keep only a SHA-256 hash of a key's secret part. Nobody at invideo can read your key, and a lost key cannot be shown again: make a new one.
- A key works only on the API (`platform-api.invideo.io`), never to sign in to the console.
- Delete a key in the console and it stops at once.

## Key format

Keys have a fixed shape, so scanners can find a leaked one:

```text
iv_[0-9A-Za-z]{22}_[0-9A-Za-z]{49}
```

`iv_`, a 22-character id, `_`, a 43-character secret and a 6-character checksum. The checksum lets a scanner tell a real key from random text without asking us.

## If a key leaks

Delete it in the console at once, under [API keys](/api-keys), make a new one, and remove the old one from your code and its history.

## Provider keys (BYOK)

[Provider keys (BYOK)](/docs/provider-keys) lets you use your own account with supported providers. Check your workspace settings for access.

## Zero data retention

For a zero data retention request, Logs and Playground history show status, timing, usage, and cost. They omit prompts, attachments, and results. Download output files before they expire.

Zero data retention works in three steps. invideo turns it on for your workspace, then approves each model for it. You then choose which requests use it, and how long output files are kept.

To use it on one request, switch it on in the Playground or send `X-Zero-Data-Retention: 1`. To use it on more, go to **Manage > Zero data retention** and choose a policy:

- **Off**: only requests that ask for it.
- **Models that support it**: every request to a model with zero data retention uses it. Other models run as usual, and new models are covered when they are added.
- **Every request**: every request uses it. Requests to models that don’t support it are rejected.

On the same page, **Always use ZDR** requires it for chosen models or providers, and **Keep results for** sets how long output files last, from 5 minutes to 24 hours. Select several models to change them together. Only an owner can make the policy less strict.

For provider formats, send `X-Zero-Data-Retention: 1`. To set a result window in seconds, send `X-ZDR-Retention-Seconds` as well. Workspace rules apply even when you omit the opt-in header. The following formats support ZDR for eligible models:

- **fal** for ZDR-enabled fal models, such as Z-Image Turbo V2.
- **ElevenLabs** for supported transcription, text-to-speech, dialogue, speech-to-speech, and sound effects models.
- **Deepgram** for Nova-3 transcription.
- **OpenAI Audio** for supported ElevenLabs or Deepgram models that accept the equivalent OpenAI Audio request.

Check the format menu with zero data retention on to see the formats available for your model.

## Report a problem

Found a security problem? Write to security@invideo.io.
