AI Transparency (EU AI Act)

Mark Miso answers as AI-generated, for readers and for machines.

Article 50 of the EU AI Act sets transparency rules for AI-generated text. Miso gives you three tools for these rules:

Tool Availability
AI metadata in each answer response All apps
Invisible watermark in the answer text On request
Watermark check, an API call Apps with the watermark

These tools support your Article 50 obligations. They do not make you compliant by themselves. Your legal team decides what you show to readers.

AI metadata

Each answer response has these fields in metadata:

Field Value
ai_generated true when a model wrote the answer. false for a fixed message that is set up for your app.
digital_source_type Only when ai_generated is true: the IPTC code trainedAlgorithmicMedia, as a URL. C2PA uses the same value.
{
  "message": "success",
  "data": {
    "question_id": "4b3a…",
    "answer": "Rents rose faster than prices in every region…",
    "metadata": {
      "ai_generated": true,
      "digital_source_type": "http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia"
    }
  }
}

When ai_generated is true, show a label such as "Written with AI". If your pages have C2PA or IPTC metadata, add digital_source_type to it.

Invisible watermark

Available on request. The Miso team turns on the watermark for each app and each environment.

Miso changes some spaces between words into U+2005 (FOUR-PER-EM SPACE). A keyed hash of the two words next to a space selects the spaces. As a result, Miso can also check an excerpt of an answer.

Readers cannot see the mark. The words, the layout and the line breaks do not change. Only the Miso key shows where the marks are. The top view below is what a reader sees. The bottom view shows the marked spaces in color.

The same 210-word answer two times. On top, as a reader sees it: normal text with no visible change. Below, with the 91 marked spaces colored. The source title, the quote and the citations have no marks.

Miso does not mark:

  • An answer of less than 150 words
  • Source titles, quotes and author names
  • Links, citations and code
  • Markdown syntax

Miso adds the mark when it serves the answer, also during streaming. The mark stays when a browser shows the text and when a reader copies it. The mark has no data about the reader, your app or the time. In JSON, a mark is \u2005.

Check a text for the watermark

Send the text to POST /v1/ask/watermark/detect. Use your secret API key. The watermark must be on for your app. Miso does not log or store the text.

# answer.txt holds the text to check. jq keeps every character.
jq -Rs '{text: .}' < answer.txt | \
  curl -X POST "https://api.askmiso.com/v1/ask/watermark/detect" \
    -H "X-Api-Key: YOUR_SECRET_KEY" \
    -H "Content-Type: application/json" \
    --data-binary @-
import requests

with open("answer.txt", encoding="utf-8") as f:
    text = f.read()

response = requests.post(
    "https://api.askmiso.com/v1/ask/watermark/detect",
    headers={"X-Api-Key": "YOUR_SECRET_KEY"},
    json={"text": text},
    timeout=30,
)
response.raise_for_status()
result = response.json()["data"]
print(result["verdict"], result["z_score"])
import { readFile } from "node:fs/promises";

const text = await readFile("answer.txt", "utf8");

const response = await fetch("https://api.askmiso.com/v1/ask/watermark/detect", {
  method: "POST",
  headers: {
    "X-Api-Key": "YOUR_SECRET_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ text }),
});
if (!response.ok) {
  throw new Error(`Check failed: ${response.status} ${await response.text()}`);
}
const { data } = await response.json();
console.log(data.verdict, data.z_score);
<?php
$text = file_get_contents('answer.txt');

$ch = curl_init('https://api.askmiso.com/v1/ask/watermark/detect');
curl_setopt_array($ch, [
    CURLOPT_POST           => true,
    CURLOPT_HTTPHEADER     => ['X-Api-Key: YOUR_SECRET_KEY', 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS     => json_encode(['text' => $text]),
    CURLOPT_RETURNTRANSFER => true,
]);
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

if ($status >= 400) {
    throw new RuntimeException("Check failed: $status $response");
}
$result = json_decode($response, true)['data'];
echo $result['verdict'], ' ', $result['z_score'], "\n";
Request field Value
text The text to check, 1 to 200,000 characters. Send it as it is.
{
  "message": "success",
  "data": {
    "method": "watermark",
    "verdict": "marked",
    "z_score": 9.54,
    "marks": 91,
    "matched": 91,
    "keyed_slots": 99
  }
}
Response field Value
verdict marked: the text came from Miso. unmarked: the text is long enough to check and has no mark. undetermined: too few marks to decide. Miso needs about 16 marks, so one short paragraph can give this result.
z_score The strength of the match. A higher value is stronger evidence.
marks The marked spaces in the text.
matched The marked spaces at positions that the Miso key selects.
keyed_slots The positions that the Miso key selects.
method Always watermark.

A publishable key gets 403. An app without the watermark gets 403.

Keep the marks in your integration

Code that changes spaces removes the mark.

  • Do not collapse or trim the whitespace in the answer.
  • Do not apply Unicode NFKC or NFKD normalization. It changes U+2005 into a normal space.
  • While the answer streams, show the full answer of each response, or render again the parts that changed. Some marks appear only after more text arrives. If you add only the new characters, the start of the answer loses its marks.

The Miso JavaScript SDK does this for you.