6 6
7> [!TIP]7> [!TIP]
8>8>
99> Text watermarking is off by default. Team admins can turn it on per model in the SpaceXSI Console's team settings; see [How to enable text watermarking](#how-to-enable-text-watermarking). Audio from the voice APIs is watermarked in some regions, when your team turns it on, and when you ask for it; see [Audio watermarking](#audio-watermarking).> Text watermarking is off by default. Team admins can turn it on per model in the SpaceXSI Console's team settings; see [How to enable text watermarking](#how-to-enable-text-watermarking). Audio from the voice APIs is watermarked by default. Team admins can opt a voice model out, except where the user's location requires the watermark; see [Audio watermarking](#audio-watermarking).
10 10
11## Which outputs are watermarked11## Which outputs are watermarked
12 12
121 121
122## Audio watermarking122## Audio watermarking
123 123
124124Audio from the voice APIs can also include an invisible watermark. This applies to [Text to Speech](/developers/model-capabilities/audio/text-to-speech) and [Speech to Speech](/developers/model-capabilities/audio/speech-to-speech), including speech in [custom voices](/developers/model-capabilities/audio/custom-voices).Audio from the voice APIs includes an invisible watermark by default. This applies to [Text to Speech](/developers/model-capabilities/audio/text-to-speech) and [Speech to Speech](/developers/model-capabilities/audio/speech-to-speech), including speech in [custom voices](/developers/model-capabilities/audio/custom-voices).
125 125
126The watermark is [AudioSeal](https://github.com/facebookresearch/audioseal). It is added to the audio before it is encoded, so every output format includes it, and it can't be heard.126The watermark is [AudioSeal](https://github.com/facebookresearch/audioseal). It is added to the audio before it is encoded, so every output format includes it, and it can't be heard.
127 127
128### Which audio is watermarked128### Which audio is watermarked
129 129
130130Audio is watermarked when:All audio is watermarked unless your team opted the voice model out in the SpaceXSI Console. See [Opt a voice model out](#opt-a-voice-model-out).
131 131
132132* The end user is in the EU, the EEA, or California. The location comes from the IP address of the request.Even for a model your team opted out, audio is watermarked when:
133* Your team turned watermarking on for the voice model in the SpaceXSI Console. See [Turn on audio watermarking for your team](#turn-on-audio-watermarking-for-your-team).
134* The request asks for a watermark. See [How to enable audio watermarking](#how-to-enable-audio-watermarking).
135 133
136134If none of these apply, the audio is not watermarked.* The end user is in the EU, the EEA, or California. The location comes from the IP address of the request.
135* The request asks for a watermark. See [Request a watermark](#request-a-watermark).
137 136
138### Checking whether audio was watermarked137### Checking whether audio was watermarked
139 138
140Read the `x-watermark` header on the response, as with text. `x-watermark: true` means the audio was watermarked, and `x-watermark: false` means it was not. For WebSocket connections, the header is on the response that opens the connection.139Read the `x-watermark` header on the response, as with text. `x-watermark: true` means the audio was watermarked, and `x-watermark: false` means it was not. For WebSocket connections, the header is on the response that opens the connection.
141 140
142141### How to enable audio watermarking### Request a watermark
143 142
144143Add the `x-watermark: true` header to your request. If your WebSocket client can't set headers, add `watermark=true` to the URL instead.If your team opted a voice model out, you can still watermark a single request. Add the `x-watermark: true` header to it. If your WebSocket client can't set headers, add `watermark=true` to the URL instead.
145 144
146```bash customLanguage="bash"145```bash customLanguage="bash"
147curl -X POST https://api.x.ai/v1/tts \146curl -X POST https://api.x.ai/v1/tts \
186 185
187`x-watermark: false` doesn't remove a watermark that is required by the user's location. Any value other than `true` or `false` returns a `400` error.186`x-watermark: false` doesn't remove a watermark that is required by the user's location. Any value other than `true` or `false` returns a `400` error.
188 187
189188### Turn on audio watermarking for your team### Opt a voice model out
190 189
191190Team admins can watermark all audio from a voice model, for every API key on the team, without changing requests.Team admins can stop watermarking audio from a voice model, for every API key on the team.
192 191
1931. Open the [Team settings page](https://console.x.ai/team/default/settings/team?utm_source=docs\&utm_medium=referral\&utm_campaign=developers-watermarking\&utm_content=team-settings-voice) and select the settings icon on the **Model output watermarking** row.1921. Open the [Team settings page](https://console.x.ai/team/default/settings/team?utm_source=docs\&utm_medium=referral\&utm_campaign=developers-watermarking\&utm_content=team-settings-voice) and select the settings icon on the **Model output watermarking** row.
1941932. Under **Voice models**, select the checkbox for each model you want to watermark.2. Under **Voice models**, clear the checkbox for each model you want to opt out.
1951943. Select **Save**.3. Select **Save**, then confirm in the **Opt out of watermarking?** dialog.
196 195
197196Changes apply to new requests within 5 minutes. Turning a voice model off doesn't ask for confirmation, and audio stays watermarked where the user's location requires it.Changes apply to new requests within 5 minutes, and the opt-out is recorded in your team's audit log. Audio stays watermarked where the user's location requires it. To watermark a model again, select its checkbox and save.
198 197
199## FAQ198## FAQ
200 199
201### Do I need to change my code?200### Do I need to change my code?
202 201
203202No. Text watermarking is turned on in the Console, and audio is watermarked where required without any changes. To watermark other audio, turn it on for your team in the Console or send the `x-watermark: true` header.No. Audio is watermarked by default, and text watermarking is turned on in the Console.
204 203
205### Does the setting apply to all of my API keys?204### Does the setting apply to all of my API keys?
206 205
214 213
215### Can I turn off audio watermarking?214### Can I turn off audio watermarking?
216 215
217216Audio is only watermarked in the cases listed in [Which audio is watermarked](#which-audio-is-watermarked). When the end user is in the EU, the EEA, or California, the watermark can't be turned off.Team admins can opt a voice model out in the Console; see [Opt a voice model out](#opt-a-voice-model-out). When the end user is in the EU, the EEA, or California, or the request sends `x-watermark: true`, audio is still watermarked.
218 217
219### Does watermarking affect quality or speed?218### Does watermarking affect quality or speed?
220 219