Mark an AI-generated file
mark_fileAdds an invisible watermark and signed C2PA manifest to AI-generated images or audio for EU AI Act Article 50 compliance, writing a marked copy next to the original.
Instructions
Adds an invisible watermark and a signed C2PA manifest (Content Credentials) to an AI-generated image (PNG, JPEG, WebP) or audio file (WAV, MP3), marking it as AI-generated for EU AI Act Article 50. Writes the marked copy next to the original (images as PNG, audio as WAV) and returns its watermark code and public verification URL. Use this on every image or audio file you generate before handing it to a user. Counts as one API call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the local image or audio file to mark. | |
| overwrite | No | Allow replacing an existing file at output_path. Defaults to false. | |
| model_name | No | Name of the model that generated the file. | |
| output_path | No | Where to write the marked copy. Defaults to <name>.marked.<ext> beside the original. | |
| visible_label | No | Images only. Also draw a visible label on the image (EU AI Act Art. 50(4), e.g. for deepfakes): true for "AI-generated", or custom text up to 40 characters. | |
| generator_name | No | Name of the app or system that generated the file; recorded in the C2PA manifest. | |
| label_position | No | Corner for visible_label. Defaults to bottom-right. |