- API Reference
- endpoint
Watermarking
Watermarking
POST /v1/watermarking/detect
Detections
Detect whether content was produced with a Mistral watermark.
Accepts exactly one input: a JSON body (\{"text": ...\}) for text, or a multipart file upload. Returns the watermark-detector verdict (watermarked + watermarked_reason) and the content-metadata verdict (metadata_valid + metadata_reason) separately; each flag is "true" / "false" / null (null = not tested, see the matching *_reason).
Request Example
{
"text": "ipsum eiusmod"
}
Request Body
JSON body for text watermark detection.
text
stringMin Length: 1* requiredResponses
Successful Response
metadata_reason
string | nullThe metadata verdict in plain words. With "true", whether the file declares AI generation ("Signed by Mistral AI and declared as AI-generated") or was signed by Mistral with a certificate that has since expired; with null, why there is no verdict (e.g. "No metadata attached to file" for a media upload, "Not file, text watermark detection" for a text body).
metadata_valid
"true" | "false"Content-metadata verdict (C2PA Content Credentials): "true" when the file carries valid credentials signed by Mistral AI, "false" when its credentials are invalid or signed by someone else; null when the file carries no metadata (see metadata_reason).
watermarked
"true" | "false"Watermark-detector verdict: "true"/"false"; null when the watermark detector did not run or could not decide (see watermarked_reason).
watermarked_reason
string | nullWhy the watermark detector produced no verdict (e.g. "Text too short to detect watermarking"); set when watermarked is null.
POST /v1/watermarking/detect
Detections
Detect whether content was produced with a Mistral watermark.
Accepts exactly one input: a JSON body (\{"text": ...\}) for text, or a multipart file upload. Returns the watermark-detector verdict (watermarked + watermarked_reason) and the content-metadata verdict (metadata_valid + metadata_reason) separately; each flag is "true" / "false" / null (null = not tested, see the matching *_reason).
Request Example
{
"file": {
"content": "ipsum eiusmod",
"fileName": "consequat do"
}
}
Request Body
Multipart body for media watermark detection: exactly one file.
The File object (not file name) to be uploaded. To upload a file and specify a custom file name you should format your request as such:
file=@path/to/your/file.jsonl;filename=custom_name.jsonl
Otherwise, you can just keep the original file name:
file=@path/to/your/file.jsonl
File
The File object (not file name) to be uploaded. To upload a file and specify a custom file name you should format your request as such:
file=@path/to/your/file.jsonl;filename=custom_name.jsonl
Otherwise, you can just keep the original file name:
file=@path/to/your/file.jsonl
content
binary* requiredfileName
string* requiredResponses
Successful Response
metadata_reason
string | nullThe metadata verdict in plain words. With "true", whether the file declares AI generation ("Signed by Mistral AI and declared as AI-generated") or was signed by Mistral with a certificate that has since expired; with null, why there is no verdict (e.g. "No metadata attached to file" for a media upload, "Not file, text watermark detection" for a text body).
metadata_valid
"true" | "false"Content-metadata verdict (C2PA Content Credentials): "true" when the file carries valid credentials signed by Mistral AI, "false" when its credentials are invalid or signed by someone else; null when the file carries no metadata (see metadata_reason).
watermarked
"true" | "false"Watermark-detector verdict: "true"/"false"; null when the watermark detector did not run or could not decide (see watermarked_reason).
watermarked_reason
string | nullWhy the watermark detector produced no verdict (e.g. "Text too short to detect watermarking"); set when watermarked is null.