Remove AI Watermarks
v0.78.0Identify and clean AI watermarks and provenance in your own images, video, audio, and text.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
identify Identify AI provenance
Report which AI provenance signals an image, video, audio, or text file carries: metadata (C2PA, IPTC, EXIF, TC260), visible AI-generator labels, deterministic text marks, and supported local invisible-watermark decoders. Read-only. Media type is detected by file suffix.
| Parameter | Type | Description |
|---|---|---|
path * | string | Image, video, audio, or text file to inspect. |
check_audio | boolean | Inspect audio streams with compatible public decoders (overrides check_visible for audio files; adds --audio on video identify). |
check_visible | boolean | Run pixel, visible-mark, or public audio-model detectors. False checks metadata only. |
remove Remove AI watermarks from one file
Write a cleaned copy of an image, video, audio, or text file the user generated or edited. mode=metadata strips AI metadata without touching pixels or re-encoding audio/video; mode=visible also removes a known visible AI label on images or videos; mode=all adds the invisible-watermark scrub for images (when extras and CUDA allow), compatible public-decoder audio (audio all --invisible), and text (text all), while for video it runs visible+metadata cleaning only (use cli_video_all for opt-in video/audio invisible regeneration). The source is never overwritten; the default output is <name>_clean…
| Parameter | Type | Description |
|---|---|---|
path * | string | Image, video, audio, or text file to clean. |
mode | string | |
output | string | Output file. Must differ from the source. |
preset | string | Optional high-level preset (lossless-fast, balanced, deep-clean) routed through top-level all. |
batch Remove AI watermarks from a directory
Clean every supported image (media=image), video (media=video), or audio file (media=audio) in a directory the user owns, writing results to a separate directory (default <dir>_clean). Modes match the remove tool (for video, use cli_video_batch when opt-in invisible regeneration is needed).
| Parameter | Type | Description |
|---|---|---|
directory * | string | Directory of input files. |
media | string | |
mode | string | |
output_dir | string | Output directory. Must differ from the input. |
preset | string | Optional high-level preset (lossless-fast, balanced, deep-clean) for multimodal batch. |
audio_identify
Inspect audio metadata and named compatible public-model evidence. Read-only.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
check_invisible | boolean | |
scheme | string | |
stream | integer |
audio_invisible
Process one audio track to WAV, FLAC, MP3, M4A, OGG, OGA, Opus, AAC, or MKA. Default publication requires a compatible source positive under the requested models and a fully negative saved output. Force permits explicitly unverified results.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
allow_unverified | boolean | |
force | boolean | |
method | string | DAC and SNAC are explicit 44.1 kHz neural-codec profiles, not SynthID decoders. |
output | string | |
scheme | string | |
stream | integer | |
vendor | string | |
verify | boolean | |
vocoder_device | string |
video_audio
Process one selected audio track (stream=N) or all source-positive tracks (when stream is omitted) inside a video, copying other encoded streams. Outputs MKV/MOV/AVI with float PCM, MP4/M4V/FLV with AAC (target 192 kbps), or WebM with Opus. Visual marks and untouched audio tracks remain unchanged. Default publication requires compatible source-positive and final-mux-negative checks for the requested models.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
allow_unverified | boolean | |
force | boolean | |
method | string | DAC and SNAC are explicit 44.1 kHz neural-codec profiles, not SynthID decoders. |
output | string | |
scheme | string | |
stream | integer | |
vendor | string | |
verify | boolean | |
vocoder_device | string |
video_message_identify
Known-message correlation under pinned public VideoSeal, PixelSeal, or ChunkySeal models. Requires an independently known encoder message. Does not identify AI origin or unknown marks. Read-only, checks every decoded frame.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
reference * | string | Independent encoder message (64 hex digits for videoseal/pixelseal, 256 for chunkyseal). Never derive it from this input. |
scheme | string |
video_message_remove
Known-message correlation under pinned public VideoSeal, PixelSeal, or ChunkySeal models. Requires an independently known encoder message. Does not identify AI origin or unknown marks. Writes a processed video after saved-file checks; copies audio and reports delivered quality.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
reference * | string | Independent encoder message (64 hex digits for videoseal/pixelseal, 256 for chunkyseal). Never derive it from this input. |
device | string | |
force | boolean | |
long_side | integer | |
method | string | |
noise_std | number | |
output | string | |
scheme | string | |
verify | boolean |
cli_visible visible
Remove a known visible AI watermark from an image. Finds registered marks in their expected areas and removes them by localizing each mark to a mask, then filling that mask with the selected ``--backend``. ``--mark auto`` removes every detected registry entry in one pass. Run ``--help`` to see the current mark keys. For arbitrary logos and objects, use ``erase``.
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
backend | string | Fill backend for visible-mark removal (localize -> fill). auto: best available, LaMa > MI-GAN > cv2 (a learned backend needs the 'lama' or 'migan' extra; else cv2, with a warning). cv2: classical inpa… |
detect | boolean | Detect watermark before removal. |
mark | string | Which known visible mark to target (auto picks every detected mark). The fill backend is chosen by --backend (default auto). |
output | string | Output path (default: <source>_clean.<ext>). |
sensitivity | string | How hard to trust a borderline mark. auto: relax a mark only when metadata or a same-product sibling mark corroborates it (safe; clean images untouched). strict: high-precision visual gate only, never… |
strip_metadata | boolean | Strip AI metadata from output. |
cli_erase erase
Erase arbitrary region(s) from an image or video via inpainting. Universal and position-agnostic: removes any logo / watermark / object inside the boxes you pass, regardless of color or location. Runs on CPU. Use this for marks the dedicated ``visible`` registry does not cover.
| Parameter | Type | Description |
|---|---|---|
regions * | array | x,y,w,h box to erase (repeatable). |
source * | string | source |
as_json | boolean | Emit JSON output when erasing video. |
backend | string | Inpaint backend. auto: best installed (LaMa > MI-GAN > cv2). cv2: instant, no model download. migan: light ONNX MI-GAN, ~1 GB RAM (extra 'migan'). lama: big-LaMa, best quality, ~4.7 GB RAM (extra 'lam… |
dilate | integer | Grow the box by this many px before inpainting. |
frames | string | Inclusive 0-based START:END frame range when erasing a video clip. |
output | string | Output path (default: <source>_clean.<ext>). |
strip_metadata | boolean | Strip AI metadata from output. |
track | boolean | Track moving watermark/object box(es) across video frames from the starting frame. |
cli_invisible invisible
Attempt to disrupt invisible AI watermarks through pixel regeneration. Regenerates the pixels with the two-stage diffusion profile. CUDA-only: pip install 'remove-ai-watermarks[qwen-zimage]'
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
adaptive_polish | boolean | Restore the input's detail level after removal (capped unsharp + edge-masked grain targeting the input's sharpness, sparing text), countering the over-smoothed look. Unset follows the profile: ON for… |
controlnet_scale | number | Canny ControlNet conditioning scale on the global stage (structure/text preservation strength). Higher = closer to original structure. |
cpu_offload | boolean | Offload model components to CPU between CUDA calls instead of keeping the whole pipeline in VRAM, at the cost of speed. Forces the face stack to offload instead of using automatic residency, on every… |
force | boolean | Run the diffusion scrub even when no invisible AI watermark is locally detectable. Default: skip it (regeneration only degrades a clean image; a skip never claims the image is watermark-free -- this p… |
hf_token | string | Hugging Face API token. |
max_resolution | integer | Cap long side (px) before diffusion; 0 = native and preserves the most detail. Raise only on GPU OOM. |
output | string | Output path (default: <source>_clean.<ext>). |
pipeline | string | Pipeline profile. qwen-zimage (DEFAULT, Apache-2.0) = Qwen-Image-2512 + Lightning + Canny, followed by SAM-masked Z-Image face repair; qwen21-zimage (NON-COMMERCIAL / PERSONAL & RESEARCH USE ONLY unde… |
seed | integer | Random seed for reproducibility. Default 0: all profiles are certified at a fixed seed, because SynthID removal near the strength floor is seed-dependent. |
strength | number | Denoising strength (0.0-1.0). Default: profile-adaptive (qwen-zimage uses resolution-adaptive denoise, with flat OpenAI 0.15625 / Google 0.35 / Microsoft InvisMark 0.15 / Meta Content Seal 0.1 floors;… |
tile | boolean | Process large images in overlapping tiles instead of one forward pass. This keeps the input's native dimensions instead of applying --max-resolution, but still regenerates every tile. Engages only whe… |
tile_overlap | integer | Overlap between adjacent tiles in px (feather-blended, no seam). Default 128. |
tile_size | integer | Tile dimension in px for --tile. Default 1024. |
vendor | string | Strength cohort for the invisible-removal default, and it implies the scrub runs even without a local signal: naming the cohort asserts the pixel watermark is present. auto: derive from C2PA provenanc… |
cli_metadata metadata
Check or remove AI-generation metadata (images, video, and audio). Strips EXIF AI tags, PNG text chunks, C2PA provenance manifests, and the China TC260 AIGC label. Beyond images (PNG/JPEG/WebP/GIF/AVIF/HEIF/JXL/TIFF/DNG) it also strips provenance metadata from MP4/MOV/M4V/M4A containers and, via ffmpeg, from WebM/MKV/MKA/AVI/FLV/MP3/WAV/FLAC/OGG/OGA/Opus/AAC. The coded image, audio, and video data are left untouched.
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
check | boolean | Check for AI metadata (don't modify). |
keep_standard | boolean | Keep standard metadata (Author, Title, etc.). |
output | string | Output path (default: overwrite source). |
remove | boolean | Remove AI metadata. |
cli_audio_identify audio identify
Inspect a selected audio track with compatible optional decoders.
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
as_json | boolean | Emit the report as JSON. |
no_invisible | boolean | Inspect metadata and stream geometry without audio watermark models. |
scheme | string | Compatible public models to check; auto checks installed models, all requests every named model. |
stream | integer | Audio track ordinal, starting at zero. |
cli_audio_metadata audio metadata
Check or remove AI metadata without re-encoding audio samples.
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
as_json | boolean | Emit the report or result as JSON. |
check | boolean | Check for AI metadata (don't modify). |
keep_standard | boolean | Keep standard metadata. |
output | string | Output audio path (default: <source_stem>_clean<suffix>). |
remove | boolean | Remove AI metadata. |
cli_audio_invisible audio invisible
Apply an audio processing profile, keeping verification explicit.
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
allow_unverified | boolean | Process without a local source-positive decoder match (or with --no-verify), keeping the quality gate active. |
as_json | boolean | Emit the result as JSON. |
force | boolean | Force processing even without a local source-positive match or when final decoder/quality checks fail. |
low_memory | boolean | Evict cached neural audio models and empty GPU/MPS caches after processing. |
method | string | Select automatically, or choose spectral, EnCodec, combined, 44.1 kHz DAC, or 44.1 kHz SNAC (fast on Apple Silicon MPS). |
output | string | Output WAV, FLAC, MP3, M4A, OGG, OGA, Opus, AAC, or MKA, default SOURCE_processed.wav. |
scheme | string | Compatible public models to check; auto checks installed models, all requests every named model. |
stream | integer | Audio track ordinal, starting at zero. |
vendor | string | Known source vendor when metadata was stripped; selects a wideband profile (e.g. DAC) and authorizes scrubbing without --allow-unverified. |
verify | boolean | Check selected compatible models before and after; disabling requires --allow-unverified or --force. |
vocoder_device | string | Neural audio inference device for DAC, SNAC, EnCodec, and combined; spectral requires cpu. |
cli_audio_all audio all
Remove AI metadata and optionally clean compatible audio watermarks.
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
allow_unverified | boolean | Process without a local source-positive decoder match (or with --no-verify), keeping the quality gate active. |
as_json | boolean | Emit the result as JSON. |
force | boolean | Force audio processing when --invisible is set even if unverified or failing final decoder/quality checks. |
invisible | boolean | Opt into compatible audio-watermark inspection and removal. |
keep_standard | boolean | Keep standard metadata. |
low_memory | boolean | Evict cached neural audio models and empty GPU/MPS caches after processing. |
method | string | Select automatically, or choose spectral, EnCodec, combined, 44.1 kHz DAC, or 44.1 kHz SNAC (fast on Apple Silicon MPS). |
output | string | Output audio path (default: <source_stem>_clean<suffix>). |
scheme | string | Compatible public models to check; auto checks installed models, all requests every named model. |
stream | integer | Audio track ordinal, starting at zero. |
vendor | string | Known source vendor when metadata was stripped; selects a wideband profile (e.g. DAC) and authorizes scrubbing without --allow-unverified. |
verify | boolean | Check selected compatible models before and after when --invisible is set. |
vocoder_device | string | Neural audio inference device for DAC, SNAC, EnCodec, and combined; spectral requires cpu. |
cli_audio_batch audio batch
Process every supported audio file in a directory.
| Parameter | Type | Description |
|---|---|---|
directory * | string | directory |
allow_unverified | boolean | Process without a local source-positive decoder match (or with --no-verify), keeping the quality gate active. |
as_json | boolean | Emit the batch summary as JSON. |
force | boolean | Force audio processing when --invisible is set even if unverified or failing final decoder/quality checks. |
invisible | boolean | Opt into compatible audio-watermark inspection and removal in all mode. |
keep_standard | boolean | Keep standard metadata. |
low_memory | boolean | Evict cached neural audio models and empty GPU/MPS caches after each file. |
method | string | Select automatically, or choose spectral, EnCodec, combined, 44.1 kHz DAC, or 44.1 kHz SNAC (fast on Apple Silicon MPS). |
mode | string | Audio batch processing mode. |
output_dir | string | Output directory (default: <directory>_clean). |
scheme | string | Compatible public models to check; auto checks installed models, all requests every named model. |
vendor | string | Known source vendor when metadata was stripped; selects a wideband profile (e.g. DAC) and authorizes scrubbing without --allow-unverified. |
verify | boolean | Check selected compatible models before and after when --invisible is set. |
vocoder_device | string | Neural audio inference device for DAC, SNAC, EnCodec, and combined; spectral requires cpu. |
cli_video_message_identify video message identify
Compare all video frames with an independently known encoder message.
| Parameter | Type | Description |
|---|---|---|
reference * | string | Independent encoder message hex (64 hex digits for videoseal/pixelseal, 256 for chunkyseal). |
source * | string | source |
as_json | boolean | Emit hash-bound known-message evidence as JSON. |
scheme | string | scheme |
cli_video_message_detect video message detect
Check a video for blind VideoSeal, PixelSeal, or ChunkySeal presence without a known hex key.
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
as_json | boolean | Emit blind presence evidence as JSON. |
scheme | string | scheme |
cli_video_message_remove video message remove
Process a known target, verifying the delivered file before publication.
| Parameter | Type | Description |
|---|---|---|
reference * | string | Independent encoder message hex (64 hex digits for videoseal/pixelseal, 256 for chunkyseal). |
source * | string | source |
as_json | boolean | Emit the result and delivered-file quality as JSON. |
device | string | device |
force | boolean | Permit a final unverified or still-matching candidate. |
long_side | integer | long side |
method | string | method |
noise_std | number | Explicit VAE noise; requires --method vae. |
output | string | Output MP4, MOV, M4V, MKV, WebM, AVI, or FLV. |
scheme | string | scheme |
verify | boolean | Saved-file checks; disabling requires --force. |
cli_video_audio video audio
Process one or all audio tracks while preserving encoded video and untouched tracks.
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
allow_unverified | boolean | Process without a local source-positive decoder match (or with --no-verify), keeping the quality gate active. |
as_json | boolean | Emit the delivered-video report as JSON. |
force | boolean | Force processing even without a local source-positive match or when final decoder/quality checks fail. |
method | string | Select automatically, or choose spectral, EnCodec, combined, 44.1 kHz DAC, or 44.1 kHz SNAC (fast on Apple Silicon MPS). |
output | string | Output MKV/MOV/AVI with PCM, MP4 with AAC (also M4V/FLV), or WebM with Opus, default SOURCE_audio_processed.mkv. |
scheme | string | Compatible public models to check; auto checks installed models, all requests every named model. |
streams | array | Zero-based audio stream ordinal to inspect/clean (repeatable; default: inspect all tracks and clean every watermarked track). |
vendor | string | Known source vendor when metadata was stripped; selects a wideband profile (e.g. DAC) and authorizes scrubbing without --allow-unverified. |
verify | boolean | Verify selected compatible models; disabling requires --allow-unverified or --force. |
vocoder_device | string | Neural audio inference device for DAC, SNAC, EnCodec, and combined; spectral requires cpu. |
cli_video_identify video identify
Identify supported provenance and visible AI marks in video.
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
as_json | boolean | Emit the report as JSON. |
audio | boolean | Inspect audio streams with compatible public decoders. |
audio_scheme | string | Compatible public models to check; auto checks installed models, all requests every named model. |
no_visible | boolean | Skip visible-mark detection; inspect metadata only. |
cli_video_metadata video metadata
Check or remove AI metadata without transcoding video streams.
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
as_json | boolean | Emit the metadata report or strip result as JSON. |
check | boolean | Check for AI metadata (don't modify). |
keep_standard | boolean | Keep standard metadata. |
output | string | Output path (default: <source>_clean with the same container). |
remove | boolean | Remove AI metadata. |
cli_video_invisible video invisible
Regenerate video pixels with an explicitly selected profile.
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
as_json | boolean | Emit the regeneration result as JSON. |
audio_invisible | boolean | Clean SynthID or compatible audio watermarks on the output audio track(s) when present (automatic by default). |
audio_vendor | string | Known audio vendor when metadata was stripped. |
batch_size | integer | SynthID inference batch size; Seedance uses a fixed batch size. |
device | string | VAE inference device. |
encoder | string | FFmpeg video encoder backend (auto prefers nvenc or videotoolbox when available). |
fps | number | Optional SynthID output frame-rate cap (default: preserve source frame rate). |
low_memory | boolean | Evict cached neural models and empty GPU/MPS caches between stages and files. |
noise_std | number | SynthID shared latent-noise strength. Higher values change more detail. |
output | string | Output path (default: <source>_clean with the same container). |
profile | string | Video-pixel profile. 'auto' routes ByteDance/Seedance and SynthID clips automatically. |
quality | string | Output quality; master requires seedance, wan21-synthid, or wan21-seedance. |
seed | integer | SynthID noise seed. |
cli_video_visible video visible
Remove a temporally stable visible AI wordmark from video.
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
as_json | boolean | Emit the visible removal result as JSON. |
backend | string | Per-frame visible-fill backend. |
encoder | string | FFmpeg video encoder backend (auto prefers nvenc or videotoolbox when available). |
mark | string | Visible AI mark to remove. Auto scans every supported provider in one decode pass. |
output | string | Output path (default: <source>_clean with the same container). |
strip_metadata | boolean | Strip AI metadata from the transcoded output. |
temporal_consistency | boolean | Motion-align adjacent accepted fills to reduce frame-to-frame flicker. |
trim_bumper | boolean | Detect and trim a trailing full-screen static AI outro bumper. |
cli_video_erase video erase
Erase user-directed (x,y,w,h) region(s) from a video across all or selected frames.
| Parameter | Type | Description |
|---|---|---|
regions * | array | x,y,w,h box to erase (repeatable). |
source * | string | source |
as_json | boolean | Emit the result as JSON. |
backend | string | Inpaint backend for unrecovered core pixels. |
dilate | integer | Grow each box in pixels. |
frames | string | Inclusive 0-based START:END frame range (default: all frames). |
output | string | Output path (default: <source>_clean with the same container). |
strip_metadata | boolean | Strip AI metadata from the transcoded output. |
temporal_consistency | boolean | Enable multi-frame YCrCb unblending, optical-flow clean-plate recovery, and temporal stabilization. |
track | boolean | Track moving watermark/object box(es) across video frames from the starting frame. |
cli_video_all video all
Remove stable visible marks, AI metadata, and optional pixel/audio marks from video.
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
as_json | boolean | Emit the complete video cleaning result as JSON. |
audio_allow_unverified | boolean | Process without a local source-positive decoder match (or with --no-verify), keeping the quality gate active. |
audio_force | boolean | Force audio processing when --audio-invisible is set even if unverified or failing final decoder/quality checks. |
audio_invisible | boolean | Inspect and clean audio watermarks across all audio streams (automatic when --invisible is enabled). |
audio_method | string | Audio watermark removal method when --audio-invisible is enabled. |
audio_scheme | string | Compatible public models to check; auto checks installed models, all requests every named model. |
audio_streams | array | Restrict --audio-invisible inspection/processing to specific zero-based audio stream ordinals (repeatable). |
audio_vendor | string | Known audio vendor when metadata was stripped; enables wideband audio scrubbing. |
backend | string | Per-frame visible-fill backend. |
batch_size | integer | SynthID inference batch size; Seedance uses a fixed batch size. |
device | string | VAE inference device. |
encoder | string | FFmpeg video encoder backend (auto prefers nvenc or videotoolbox when available). |
fps | number | Optional SynthID output frame-rate cap (default: preserve source frame rate). |
invisible | boolean | Opt into lossy video-pixel regeneration with the selected profile. |
low_memory | boolean | Evict cached neural models and empty GPU/MPS caches between stages and files. |
mark | string | Visible AI mark to remove. Auto scans every supported provider in one decode pass. |
noise_std | number | SynthID shared latent-noise strength. Higher values change more detail. |
output | string | Output path (default: <source>_clean with the same container). |
profile | string | Video-pixel profile. 'auto' routes ByteDance/Seedance and SynthID clips automatically. |
quality | string | Output quality; master requires seedance, wan21-synthid, or wan21-seedance. |
seed | integer | SynthID noise seed. |
temporal_consistency | boolean | Motion-align adjacent accepted fills to reduce frame-to-frame flicker. |
trim_bumper | boolean | Detect and trim a trailing full-screen static AI outro bumper. |
cli_video_batch video batch
Process every supported video in a directory.
| Parameter | Type | Description |
|---|---|---|
directory * | string | directory |
as_json | boolean | Emit the video batch summary as JSON. |
audio_allow_unverified | boolean | Process without a local source-positive decoder match (or with --no-verify), keeping the quality gate active. |
audio_force | boolean | Force audio processing when --audio-invisible is set even if unverified or failing final decoder/quality checks. |
audio_invisible | boolean | Inspect and clean audio watermarks across all audio streams (automatic when --invisible is enabled). |
audio_method | string | Audio watermark removal method when --audio-invisible is enabled. |
audio_scheme | string | Compatible public models to check; auto checks installed models, all requests every named model. |
audio_streams | array | Restrict --audio-invisible inspection/processing to specific zero-based audio stream ordinals (repeatable). |
audio_vendor | string | Known audio vendor when metadata was stripped; enables wideband audio scrubbing. |
backend | string | Per-frame visible-fill backend. |
batch_size | integer | SynthID inference batch size; Seedance uses a fixed batch size. |
device | string | VAE inference device. |
encoder | string | FFmpeg video encoder backend (auto prefers nvenc or videotoolbox when available). |
fps | number | Optional SynthID output frame-rate cap (default: preserve source frame rate). |
invisible | boolean | Opt into lossy video-pixel regeneration with the selected profile in all mode. |
low_memory | boolean | Evict cached neural models and empty GPU/MPS caches between stages and files. |
mark | string | Visible AI mark to remove. Auto scans every supported provider in one decode pass. |
mode | string | Video processing mode. |
noise_std | number | SynthID shared latent-noise strength. Higher values change more detail. |
output_dir | string | Output directory (default: <directory>_clean). |
profile | string | Video-pixel profile. 'auto' routes ByteDance/Seedance and SynthID clips automatically. |
quality | string | Output quality; master requires seedance, wan21-synthid, or wan21-seedance. |
seed | integer | SynthID noise seed. |
temporal_consistency | boolean | Motion-align adjacent accepted fills to reduce frame-to-frame flicker. |
cli_text_identify text identify
Identify C2PA text/HTML wrappers, VSRMark soft bindings, and Unicode steganography in text.
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
as_json | boolean | Emit the report as JSON. |
cli_text_metadata text metadata
Check or remove C2PA text/HTML wrappers, VSRMark soft bindings, and Unicode steganography.
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
check | boolean | Check for AI text metadata and steganography (don't modify). |
output | string | Output path (default: <source>_clean.<ext>). |
remove | boolean | Remove AI text metadata and steganography. |
cli_text_invisible text invisible
Remove statistical token watermarks by regenerating unlocked prose spans.
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
allow_partial | boolean | Keep rejected prose unchanged and report partial regeneration. |
ollama_url | string | Local Ollama Chat Completions base URL (default: http://127.0.0.1:11434/v1). |
output | string | Output path (default: <source>_clean.<ext>). |
rewriter_backend | string | rewriter backend |
rewriter_model | string | Checkpoint path or model ID for the selected backend. |
seed | integer | seed |
strict_residual | boolean | With Ollama, regenerate retained sentences in a second pass. |
cli_text_all text all
Strip deterministic text provenance and optionally regenerate prose spans.
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
allow_partial | boolean | Keep rejected prose unchanged and report partial regeneration. |
invisible | boolean | Opt into span-protected local prose regeneration for statistical token watermarks. |
ollama_url | string | Local Ollama Chat Completions base URL (default: http://127.0.0.1:11434/v1). |
output | string | Output path (default: <source>_clean.<ext>). |
rewriter_backend | string | rewriter backend |
rewriter_model | string | Checkpoint path or model ID for the selected backend. |
seed | integer | seed |
strict_residual | boolean | With Ollama, regenerate retained sentences in a second pass. |
cli_identify identify
Identify where an image was made and what watermarks it carries. Aggregates supported C2PA, IPTC, EXIF, XMP, generator, visible-mark, and optional invisible-watermark signals into one provenance verdict. Absence of signals is reported as "unknown", never as "clean" because stripped metadata leaves no local proof.
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
as_json | boolean | Emit the report as JSON instead of a table. |
no_visible | boolean | Skip pixel-domain detectors (visible sparkle + invisible watermark); metadata-only. |
cli_classify_source classify-source
Classify an image's likely AI provider and model version from pixels. Runs the abstaining 10-provider source-pipeline classifier and stacked Stage-2 version head. This is not provenance and does not detect or verify SynthID. identify never starts this command. Install: pip install 'remove-ai-watermarks[source-classify]'
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
as_json | boolean | Emit the source classification as JSON. |
cli_all all
Remove ALL watermarks: visible + invisible + metadata. Runs the full pipeline in order: 1. Visible watermark removal (Gemini sparkle / text marks, localize -> fill) 2. Invisible watermark removal (SynthID etc., diffusion regeneration) 3. AI metadata stripping (EXIF, PNG text, C2PA) If invisible watermark deps are not installed, skips step 2 with a warning.
| Parameter | Type | Description |
|---|---|---|
source * | string | source |
adaptive_polish | boolean | Restore the input's detail level after removal (capped unsharp + edge-masked grain targeting the input's sharpness, sparing text), countering the over-smoothed look. Unset follows the profile: ON for… |
backend | string | Fill backend for visible-mark removal (localize -> fill). auto: best available, LaMa > MI-GAN > cv2 (a learned backend needs the 'lama' or 'migan' extra; else cv2, with a warning). cv2: classical inpa… |
controlnet_scale | number | Canny ControlNet conditioning scale on the global stage (structure/text preservation strength). Higher = closer to original structure. |
cpu_offload | boolean | Offload model components to CPU between CUDA calls instead of keeping the whole pipeline in VRAM, at the cost of speed. Forces the face stack to offload instead of using automatic residency, on every… |
force | boolean | Run the diffusion scrub even when no invisible AI watermark is locally detectable. Default: skip it (regeneration only degrades a clean image; a skip never claims the image is watermark-free -- this p… |
hf_token | string | Hugging Face API token. |
max_resolution | integer | Cap long side (px) before diffusion; 0 = native and preserves the most detail. Raise only on GPU OOM. |
output | string | Output path (default: <source>_clean.<ext>). |
pipeline | string | Pipeline profile. qwen-zimage (DEFAULT, Apache-2.0) = Qwen-Image-2512 + Lightning + Canny, followed by SAM-masked Z-Image face repair; qwen21-zimage (NON-COMMERCIAL / PERSONAL & RESEARCH USE ONLY unde… |
preset | string | Cleaning preset: lossless-fast (metadata + fast visible), balanced (auto backend + verified signals), or deep-clean (full studio pixel/audio regeneration). |
seed | integer | Random seed for reproducibility. Default 0: all profiles are certified at a fixed seed, because SynthID removal near the strength floor is seed-dependent. |
sensitivity | string | How hard to trust a borderline mark. auto: relax a mark only when metadata or a same-product sibling mark corroborates it (safe; clean images untouched). strict: high-precision visual gate only, never… |
strength | number | Denoising strength (0.0-1.0). Default: profile-adaptive (qwen-zimage uses resolution-adaptive denoise, with flat OpenAI 0.15625 / Google 0.35 / Microsoft InvisMark 0.15 / Meta Content Seal 0.1 floors;… |
tile | boolean | Process large images in overlapping tiles instead of one forward pass. This keeps the input's native dimensions instead of applying --max-resolution, but still regenerates every tile. Engages only whe… |
tile_overlap | integer | Overlap between adjacent tiles in px (feather-blended, no seam). Default 128. |
tile_size | integer | Tile dimension in px for --tile. Default 1024. |
vendor | string | Known AI generator cohort (image: openai, google, microsoft, meta; audio/video: google, elevenlabs, suno, udio, openai, cartesia, meta, resemble, microsoft). Naming the cohort asserts the invisible ma… |
cli_batch batch
Process all supported media files (images, videos, audio, text) in a directory.
| Parameter | Type | Description |
|---|---|---|
directory * | string | directory |
adaptive_polish | boolean | Restore the input's detail level after removal (capped unsharp + edge-masked grain targeting the input's sharpness, sparing text), countering the over-smoothed look. Unset follows the profile: ON for… |
backend | string | Fill backend for visible-mark removal (localize -> fill). auto: best available, LaMa > MI-GAN > cv2 (a learned backend needs the 'lama' or 'migan' extra; else cv2, with a warning). cv2: classical inpa… |
controlnet_scale | number | Canny ControlNet conditioning scale on the global stage (structure/text preservation strength). Higher = closer to original structure. |
cpu_offload | boolean | Offload model components to CPU between CUDA calls instead of keeping the whole pipeline in VRAM, at the cost of speed. Forces the face stack to offload instead of using automatic residency, on every… |
force | boolean | Run the diffusion scrub even when no invisible AI watermark is locally detectable. Default: skip it (regeneration only degrades a clean image; a skip never claims the image is watermark-free -- this p… |
hf_token | string | Hugging Face API token. |
max_resolution | integer | Cap long side (px) before diffusion; 0 = native and preserves the most detail. Raise only on GPU OOM. |
mode | string | Processing mode. |
output_dir | string | Output directory (default: <dir>_clean/). |
pipeline | string | Pipeline profile. qwen-zimage (DEFAULT, Apache-2.0) = Qwen-Image-2512 + Lightning + Canny, followed by SAM-masked Z-Image face repair; qwen21-zimage (NON-COMMERCIAL / PERSONAL & RESEARCH USE ONLY unde… |
preset | string | Cleaning preset: lossless-fast (metadata + fast visible), balanced (auto backend + verified signals), or deep-clean (full studio pixel/audio regeneration). |
seed | integer | Random seed for reproducibility. Default 0: all profiles are certified at a fixed seed, because SynthID removal near the strength floor is seed-dependent. |
sensitivity | string | How hard to trust a borderline mark. auto: relax a mark only when metadata or a same-product sibling mark corroborates it (safe; clean images untouched). strict: high-precision visual gate only, never… |
strength | number | Denoising strength (0.0-1.0). Default: profile-adaptive (qwen-zimage uses resolution-adaptive denoise, with flat OpenAI 0.15625 / Google 0.35 / Microsoft InvisMark 0.15 / Meta Content Seal 0.1 floors;… |
tile | boolean | Process large images in overlapping tiles instead of one forward pass. This keeps the input's native dimensions instead of applying --max-resolution, but still regenerates every tile. Engages only whe… |
tile_overlap | integer | Overlap between adjacent tiles in px (feather-blended, no seam). Default 128. |
tile_size | integer | Tile dimension in px for --tile. Default 1024. |
vendor | string | Known AI generator cohort (image: openai, google, microsoft, meta; audio/video: google, elevenlabs, suno, udio, openai, cartesia, meta, resemble, microsoft). Naming the cohort asserts the invisible ma… |
api_draft_text draft text for verification
Propose OCR manifest lines. Every accepted proposal still requires human verification.
| Parameter | Type | Description |
|---|---|---|
source * | string | Source image path |
min_score | number | |
stable | boolean |