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

# Watermarking

> Every recording Gradium generates carries a machine-readable trace, and the API tells you whether a recording has it.

Speech generated with Gradium carries a built-in marker: a trace our models
leave in the audio as they generate it. Listeners cannot hear it, and our
voices sound the same with it, but software can find it and recognize the
speech as AI-generated.

You don't need to do anything to get it. From December 2, 2026, the marker is
in all the audio our models generate, whatever endpoint or integration you use.
To check a recording, send it to the
[Verify Watermark](https://docs.gradium.ai/api-reference/endpoint/verify-watermark.md) endpoint.

## Why audio is marked

The EU AI Act ([Regulation (EU) 2024/1689](https://eur-lex.europa.eu/eli/reg/2024/1689/oj),
Article 50(2)) requires providers of AI systems that generate synthetic audio
to make their outputs "marked in a machine-readable format and detectable as
artificially generated or manipulated". Section 4.2 of the European
Commission's guidelines on the Article 50 transparency obligations details
what this means in practice.

The marker is how Gradium meets that obligation, so the audio you generate
with us can be identified as synthetic once it leaves your product.

## How it works

The approach builds on research by Deezer on detecting AI-generated music:
[Finding the noise: Zero-shot AI Music Detection](https://arxiv.org/abs/2607.25530)
and [Improved Robustness in AI-Generated Music Detection](https://arxiv.org/abs/2607.27454).
These studies look at the characteristic artifacts generated audio carries,
and at finding them again after the audio has been edited. We adapted and
extended this research for speech, with a focus on robustness.

For safety and security reasons we don't publish the training process or
implementation details, since they could help someone get around the detector.
Regulators can request the full technical documentation and evaluation through
a confidential exchange on our [Trust Center](https://trust.gradium.ai/).

## Robustness

The trace is designed to survive most of the ways audio gets changed once it's
shared. On recordings the detector had not seen during training:

| Measure | Result |
| - | - |
| Edits recognized at a rate of 90% or more | About 70% of the edits tested |
| Edits recognized at a rate of 95% or more | Half of the edits tested |
| False positives on human speech | 0.1% target |

Some changes can still erase the trace. Heavy compression, for example Opus
below about 32 kbps, or re-encoding the audio with another neural audio codec
can remove it.

## Check a recording

Send the recording as the multipart field `audio_file` to `POST /watermark`,
with your API key in the `x-api-key` header:

```bash cURL theme={null}
curl -X POST https://api.gradium.ai/api/watermark \
  -H "x-api-key: your-api-key" \
  -F "audio_file=@recording.wav"
```

```python Python theme={null}
import requests

with open("recording.wav", "rb") as f:
    response = requests.post(
        "https://api.gradium.ai/api/watermark",
        headers={"x-api-key": "your-api-key"},
        files={"audio_file": f},
    )
response.raise_for_status()
print(response.json())
```

The recording must be:

* in a common audio format: WAV, MP3, FLAC, Ogg, Opus, M4A and others. Raw
  audio must name its encoding and sample rate in the filename extension, for
  example `clip.pcm_16000`;
* from 1 second to 10 minutes long;
* sampled at 16 kHz or more. Telephone-quality audio (8 kHz) cannot be
  verified and returns `400`.

The response says whether the trace was found, and where:

```json theme={null}
{
  "generated_by_gradium": true,
  "confidence": 1.0,
  "duration_s": 96.1,
  "segments": [
    { "start_s": 50.0, "end_s": 96.1 }
  ]
}
```

| Field | Meaning |
| - | - |
| `generated_by_gradium` | Whether the trace was found in the recording. |
| `confidence` | How sure the detector is of the verdict, from 0 to 1. A heuristic, not a calibrated probability. |
| `duration_s` | Duration of the recording, in seconds. |
| `segments` | The spans where the trace was found, at a resolution of about 5 seconds. Empty when `generated_by_gradium` is `false`. |

`segments` helps with recordings that mix human and generated speech: in the
example above, only the last 46 seconds were generated by Gradium.

See the [API reference](https://docs.gradium.ai/api-reference/endpoint/verify-watermark.md) for the
error codes.

## Reading the result

No detector gives absolute proof. Use the result alongside other information
about where the audio comes from:

* **`true`** means the recording carries our trace. Human speech is very
  rarely mistaken for it.
* **`false`** means the trace was not found. The audio may not come from
  Gradium, or it may have been compressed or re-encoded heavily enough to
  erase the trace.

We'll keep improving the marker and the detector as voice models evolve. For
our other security and compliance commitments, see
[Security and compliance](https://docs.gradium.ai/guides/security.md).


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