Remove AI Watermarks

v0.78.0
io.github.wiltodelta/remove-ai-watermarks Checked 3 hours ago Published 1 day ago

Identify 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.

ParameterTypeDescription
path *stringImage, video, audio, or text file to inspect.
check_audiobooleanInspect audio streams with compatible public decoders (overrides check_visible for audio files; adds --audio on video identify).
check_visiblebooleanRun 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…

ParameterTypeDescription
path *stringImage, video, audio, or text file to clean.
modestring
outputstringOutput file. Must differ from the source.
presetstringOptional 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).

ParameterTypeDescription
directory *stringDirectory of input files.
mediastring
modestring
output_dirstringOutput directory. Must differ from the input.
presetstringOptional high-level preset (lossless-fast, balanced, deep-clean) for multimodal batch.

audio_identify

Inspect audio metadata and named compatible public-model evidence. Read-only.

ParameterTypeDescription
path *string
check_invisibleboolean
schemestring
streaminteger

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.

ParameterTypeDescription
path *string
allow_unverifiedboolean
forceboolean
methodstringDAC and SNAC are explicit 44.1 kHz neural-codec profiles, not SynthID decoders.
outputstring
schemestring
streaminteger
vendorstring
verifyboolean
vocoder_devicestring

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.

ParameterTypeDescription
path *string
allow_unverifiedboolean
forceboolean
methodstringDAC and SNAC are explicit 44.1 kHz neural-codec profiles, not SynthID decoders.
outputstring
schemestring
streaminteger
vendorstring
verifyboolean
vocoder_devicestring

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.

ParameterTypeDescription
path *string
reference *stringIndependent encoder message (64 hex digits for videoseal/pixelseal, 256 for chunkyseal). Never derive it from this input.
schemestring

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.

ParameterTypeDescription
path *string
reference *stringIndependent encoder message (64 hex digits for videoseal/pixelseal, 256 for chunkyseal). Never derive it from this input.
devicestring
forceboolean
long_sideinteger
methodstring
noise_stdnumber
outputstring
schemestring
verifyboolean

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``.

ParameterTypeDescription
source *stringsource
backendstringFill 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…
detectbooleanDetect watermark before removal.
markstringWhich known visible mark to target (auto picks every detected mark). The fill backend is chosen by --backend (default auto).
outputstringOutput path (default: <source>_clean.<ext>).
sensitivitystringHow 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_metadatabooleanStrip 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.

ParameterTypeDescription
regions *arrayx,y,w,h box to erase (repeatable).
source *stringsource
as_jsonbooleanEmit JSON output when erasing video.
backendstringInpaint 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…
dilateintegerGrow the box by this many px before inpainting.
framesstringInclusive 0-based START:END frame range when erasing a video clip.
outputstringOutput path (default: <source>_clean.<ext>).
strip_metadatabooleanStrip AI metadata from output.
trackbooleanTrack 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]'

ParameterTypeDescription
source *stringsource
adaptive_polishbooleanRestore 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_scalenumberCanny ControlNet conditioning scale on the global stage (structure/text preservation strength). Higher = closer to original structure.
cpu_offloadbooleanOffload 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…
forcebooleanRun 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_tokenstringHugging Face API token.
max_resolutionintegerCap long side (px) before diffusion; 0 = native and preserves the most detail. Raise only on GPU OOM.
outputstringOutput path (default: <source>_clean.<ext>).
pipelinestringPipeline 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…
seedintegerRandom seed for reproducibility. Default 0: all profiles are certified at a fixed seed, because SynthID removal near the strength floor is seed-dependent.
strengthnumberDenoising 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;…
tilebooleanProcess 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_overlapintegerOverlap between adjacent tiles in px (feather-blended, no seam). Default 128.
tile_sizeintegerTile dimension in px for --tile. Default 1024.
vendorstringStrength 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.

ParameterTypeDescription
source *stringsource
checkbooleanCheck for AI metadata (don't modify).
keep_standardbooleanKeep standard metadata (Author, Title, etc.).
outputstringOutput path (default: overwrite source).
removebooleanRemove AI metadata.

cli_audio_identify audio identify

Inspect a selected audio track with compatible optional decoders.

ParameterTypeDescription
source *stringsource
as_jsonbooleanEmit the report as JSON.
no_invisiblebooleanInspect metadata and stream geometry without audio watermark models.
schemestringCompatible public models to check; auto checks installed models, all requests every named model.
streamintegerAudio track ordinal, starting at zero.

cli_audio_metadata audio metadata

Check or remove AI metadata without re-encoding audio samples.

ParameterTypeDescription
source *stringsource
as_jsonbooleanEmit the report or result as JSON.
checkbooleanCheck for AI metadata (don't modify).
keep_standardbooleanKeep standard metadata.
outputstringOutput audio path (default: <source_stem>_clean<suffix>).
removebooleanRemove AI metadata.

cli_audio_invisible audio invisible

Apply an audio processing profile, keeping verification explicit.

ParameterTypeDescription
source *stringsource
allow_unverifiedbooleanProcess without a local source-positive decoder match (or with --no-verify), keeping the quality gate active.
as_jsonbooleanEmit the result as JSON.
forcebooleanForce processing even without a local source-positive match or when final decoder/quality checks fail.
low_memorybooleanEvict cached neural audio models and empty GPU/MPS caches after processing.
methodstringSelect automatically, or choose spectral, EnCodec, combined, 44.1 kHz DAC, or 44.1 kHz SNAC (fast on Apple Silicon MPS).
outputstringOutput WAV, FLAC, MP3, M4A, OGG, OGA, Opus, AAC, or MKA, default SOURCE_processed.wav.
schemestringCompatible public models to check; auto checks installed models, all requests every named model.
streamintegerAudio track ordinal, starting at zero.
vendorstringKnown source vendor when metadata was stripped; selects a wideband profile (e.g. DAC) and authorizes scrubbing without --allow-unverified.
verifybooleanCheck selected compatible models before and after; disabling requires --allow-unverified or --force.
vocoder_devicestringNeural 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.

ParameterTypeDescription
source *stringsource
allow_unverifiedbooleanProcess without a local source-positive decoder match (or with --no-verify), keeping the quality gate active.
as_jsonbooleanEmit the result as JSON.
forcebooleanForce audio processing when --invisible is set even if unverified or failing final decoder/quality checks.
invisiblebooleanOpt into compatible audio-watermark inspection and removal.
keep_standardbooleanKeep standard metadata.
low_memorybooleanEvict cached neural audio models and empty GPU/MPS caches after processing.
methodstringSelect automatically, or choose spectral, EnCodec, combined, 44.1 kHz DAC, or 44.1 kHz SNAC (fast on Apple Silicon MPS).
outputstringOutput audio path (default: <source_stem>_clean<suffix>).
schemestringCompatible public models to check; auto checks installed models, all requests every named model.
streamintegerAudio track ordinal, starting at zero.
vendorstringKnown source vendor when metadata was stripped; selects a wideband profile (e.g. DAC) and authorizes scrubbing without --allow-unverified.
verifybooleanCheck selected compatible models before and after when --invisible is set.
vocoder_devicestringNeural 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.

ParameterTypeDescription
directory *stringdirectory
allow_unverifiedbooleanProcess without a local source-positive decoder match (or with --no-verify), keeping the quality gate active.
as_jsonbooleanEmit the batch summary as JSON.
forcebooleanForce audio processing when --invisible is set even if unverified or failing final decoder/quality checks.
invisiblebooleanOpt into compatible audio-watermark inspection and removal in all mode.
keep_standardbooleanKeep standard metadata.
low_memorybooleanEvict cached neural audio models and empty GPU/MPS caches after each file.
methodstringSelect automatically, or choose spectral, EnCodec, combined, 44.1 kHz DAC, or 44.1 kHz SNAC (fast on Apple Silicon MPS).
modestringAudio batch processing mode.
output_dirstringOutput directory (default: <directory>_clean).
schemestringCompatible public models to check; auto checks installed models, all requests every named model.
vendorstringKnown source vendor when metadata was stripped; selects a wideband profile (e.g. DAC) and authorizes scrubbing without --allow-unverified.
verifybooleanCheck selected compatible models before and after when --invisible is set.
vocoder_devicestringNeural 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.

ParameterTypeDescription
reference *stringIndependent encoder message hex (64 hex digits for videoseal/pixelseal, 256 for chunkyseal).
source *stringsource
as_jsonbooleanEmit hash-bound known-message evidence as JSON.
schemestringscheme

cli_video_message_detect video message detect

Check a video for blind VideoSeal, PixelSeal, or ChunkySeal presence without a known hex key.

ParameterTypeDescription
source *stringsource
as_jsonbooleanEmit blind presence evidence as JSON.
schemestringscheme

cli_video_message_remove video message remove

Process a known target, verifying the delivered file before publication.

ParameterTypeDescription
reference *stringIndependent encoder message hex (64 hex digits for videoseal/pixelseal, 256 for chunkyseal).
source *stringsource
as_jsonbooleanEmit the result and delivered-file quality as JSON.
devicestringdevice
forcebooleanPermit a final unverified or still-matching candidate.
long_sideintegerlong side
methodstringmethod
noise_stdnumberExplicit VAE noise; requires --method vae.
outputstringOutput MP4, MOV, M4V, MKV, WebM, AVI, or FLV.
schemestringscheme
verifybooleanSaved-file checks; disabling requires --force.

cli_video_audio video audio

Process one or all audio tracks while preserving encoded video and untouched tracks.

ParameterTypeDescription
source *stringsource
allow_unverifiedbooleanProcess without a local source-positive decoder match (or with --no-verify), keeping the quality gate active.
as_jsonbooleanEmit the delivered-video report as JSON.
forcebooleanForce processing even without a local source-positive match or when final decoder/quality checks fail.
methodstringSelect automatically, or choose spectral, EnCodec, combined, 44.1 kHz DAC, or 44.1 kHz SNAC (fast on Apple Silicon MPS).
outputstringOutput MKV/MOV/AVI with PCM, MP4 with AAC (also M4V/FLV), or WebM with Opus, default SOURCE_audio_processed.mkv.
schemestringCompatible public models to check; auto checks installed models, all requests every named model.
streamsarrayZero-based audio stream ordinal to inspect/clean (repeatable; default: inspect all tracks and clean every watermarked track).
vendorstringKnown source vendor when metadata was stripped; selects a wideband profile (e.g. DAC) and authorizes scrubbing without --allow-unverified.
verifybooleanVerify selected compatible models; disabling requires --allow-unverified or --force.
vocoder_devicestringNeural 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.

ParameterTypeDescription
source *stringsource
as_jsonbooleanEmit the report as JSON.
audiobooleanInspect audio streams with compatible public decoders.
audio_schemestringCompatible public models to check; auto checks installed models, all requests every named model.
no_visiblebooleanSkip visible-mark detection; inspect metadata only.

cli_video_metadata video metadata

Check or remove AI metadata without transcoding video streams.

ParameterTypeDescription
source *stringsource
as_jsonbooleanEmit the metadata report or strip result as JSON.
checkbooleanCheck for AI metadata (don't modify).
keep_standardbooleanKeep standard metadata.
outputstringOutput path (default: <source>_clean with the same container).
removebooleanRemove AI metadata.

cli_video_invisible video invisible

Regenerate video pixels with an explicitly selected profile.

ParameterTypeDescription
source *stringsource
as_jsonbooleanEmit the regeneration result as JSON.
audio_invisiblebooleanClean SynthID or compatible audio watermarks on the output audio track(s) when present (automatic by default).
audio_vendorstringKnown audio vendor when metadata was stripped.
batch_sizeintegerSynthID inference batch size; Seedance uses a fixed batch size.
devicestringVAE inference device.
encoderstringFFmpeg video encoder backend (auto prefers nvenc or videotoolbox when available).
fpsnumberOptional SynthID output frame-rate cap (default: preserve source frame rate).
low_memorybooleanEvict cached neural models and empty GPU/MPS caches between stages and files.
noise_stdnumberSynthID shared latent-noise strength. Higher values change more detail.
outputstringOutput path (default: <source>_clean with the same container).
profilestringVideo-pixel profile. 'auto' routes ByteDance/Seedance and SynthID clips automatically.
qualitystringOutput quality; master requires seedance, wan21-synthid, or wan21-seedance.
seedintegerSynthID noise seed.

cli_video_visible video visible

Remove a temporally stable visible AI wordmark from video.

ParameterTypeDescription
source *stringsource
as_jsonbooleanEmit the visible removal result as JSON.
backendstringPer-frame visible-fill backend.
encoderstringFFmpeg video encoder backend (auto prefers nvenc or videotoolbox when available).
markstringVisible AI mark to remove. Auto scans every supported provider in one decode pass.
outputstringOutput path (default: <source>_clean with the same container).
strip_metadatabooleanStrip AI metadata from the transcoded output.
temporal_consistencybooleanMotion-align adjacent accepted fills to reduce frame-to-frame flicker.
trim_bumperbooleanDetect 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.

ParameterTypeDescription
regions *arrayx,y,w,h box to erase (repeatable).
source *stringsource
as_jsonbooleanEmit the result as JSON.
backendstringInpaint backend for unrecovered core pixels.
dilateintegerGrow each box in pixels.
framesstringInclusive 0-based START:END frame range (default: all frames).
outputstringOutput path (default: <source>_clean with the same container).
strip_metadatabooleanStrip AI metadata from the transcoded output.
temporal_consistencybooleanEnable multi-frame YCrCb unblending, optical-flow clean-plate recovery, and temporal stabilization.
trackbooleanTrack 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.

ParameterTypeDescription
source *stringsource
as_jsonbooleanEmit the complete video cleaning result as JSON.
audio_allow_unverifiedbooleanProcess without a local source-positive decoder match (or with --no-verify), keeping the quality gate active.
audio_forcebooleanForce audio processing when --audio-invisible is set even if unverified or failing final decoder/quality checks.
audio_invisiblebooleanInspect and clean audio watermarks across all audio streams (automatic when --invisible is enabled).
audio_methodstringAudio watermark removal method when --audio-invisible is enabled.
audio_schemestringCompatible public models to check; auto checks installed models, all requests every named model.
audio_streamsarrayRestrict --audio-invisible inspection/processing to specific zero-based audio stream ordinals (repeatable).
audio_vendorstringKnown audio vendor when metadata was stripped; enables wideband audio scrubbing.
backendstringPer-frame visible-fill backend.
batch_sizeintegerSynthID inference batch size; Seedance uses a fixed batch size.
devicestringVAE inference device.
encoderstringFFmpeg video encoder backend (auto prefers nvenc or videotoolbox when available).
fpsnumberOptional SynthID output frame-rate cap (default: preserve source frame rate).
invisiblebooleanOpt into lossy video-pixel regeneration with the selected profile.
low_memorybooleanEvict cached neural models and empty GPU/MPS caches between stages and files.
markstringVisible AI mark to remove. Auto scans every supported provider in one decode pass.
noise_stdnumberSynthID shared latent-noise strength. Higher values change more detail.
outputstringOutput path (default: <source>_clean with the same container).
profilestringVideo-pixel profile. 'auto' routes ByteDance/Seedance and SynthID clips automatically.
qualitystringOutput quality; master requires seedance, wan21-synthid, or wan21-seedance.
seedintegerSynthID noise seed.
temporal_consistencybooleanMotion-align adjacent accepted fills to reduce frame-to-frame flicker.
trim_bumperbooleanDetect and trim a trailing full-screen static AI outro bumper.

cli_video_batch video batch

Process every supported video in a directory.

ParameterTypeDescription
directory *stringdirectory
as_jsonbooleanEmit the video batch summary as JSON.
audio_allow_unverifiedbooleanProcess without a local source-positive decoder match (or with --no-verify), keeping the quality gate active.
audio_forcebooleanForce audio processing when --audio-invisible is set even if unverified or failing final decoder/quality checks.
audio_invisiblebooleanInspect and clean audio watermarks across all audio streams (automatic when --invisible is enabled).
audio_methodstringAudio watermark removal method when --audio-invisible is enabled.
audio_schemestringCompatible public models to check; auto checks installed models, all requests every named model.
audio_streamsarrayRestrict --audio-invisible inspection/processing to specific zero-based audio stream ordinals (repeatable).
audio_vendorstringKnown audio vendor when metadata was stripped; enables wideband audio scrubbing.
backendstringPer-frame visible-fill backend.
batch_sizeintegerSynthID inference batch size; Seedance uses a fixed batch size.
devicestringVAE inference device.
encoderstringFFmpeg video encoder backend (auto prefers nvenc or videotoolbox when available).
fpsnumberOptional SynthID output frame-rate cap (default: preserve source frame rate).
invisiblebooleanOpt into lossy video-pixel regeneration with the selected profile in all mode.
low_memorybooleanEvict cached neural models and empty GPU/MPS caches between stages and files.
markstringVisible AI mark to remove. Auto scans every supported provider in one decode pass.
modestringVideo processing mode.
noise_stdnumberSynthID shared latent-noise strength. Higher values change more detail.
output_dirstringOutput directory (default: <directory>_clean).
profilestringVideo-pixel profile. 'auto' routes ByteDance/Seedance and SynthID clips automatically.
qualitystringOutput quality; master requires seedance, wan21-synthid, or wan21-seedance.
seedintegerSynthID noise seed.
temporal_consistencybooleanMotion-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.

ParameterTypeDescription
source *stringsource
as_jsonbooleanEmit the report as JSON.

cli_text_metadata text metadata

Check or remove C2PA text/HTML wrappers, VSRMark soft bindings, and Unicode steganography.

ParameterTypeDescription
source *stringsource
checkbooleanCheck for AI text metadata and steganography (don't modify).
outputstringOutput path (default: <source>_clean.<ext>).
removebooleanRemove AI text metadata and steganography.

cli_text_invisible text invisible

Remove statistical token watermarks by regenerating unlocked prose spans.

ParameterTypeDescription
source *stringsource
allow_partialbooleanKeep rejected prose unchanged and report partial regeneration.
ollama_urlstringLocal Ollama Chat Completions base URL (default: http://127.0.0.1:11434/v1).
outputstringOutput path (default: <source>_clean.<ext>).
rewriter_backendstringrewriter backend
rewriter_modelstringCheckpoint path or model ID for the selected backend.
seedintegerseed
strict_residualbooleanWith Ollama, regenerate retained sentences in a second pass.

cli_text_all text all

Strip deterministic text provenance and optionally regenerate prose spans.

ParameterTypeDescription
source *stringsource
allow_partialbooleanKeep rejected prose unchanged and report partial regeneration.
invisiblebooleanOpt into span-protected local prose regeneration for statistical token watermarks.
ollama_urlstringLocal Ollama Chat Completions base URL (default: http://127.0.0.1:11434/v1).
outputstringOutput path (default: <source>_clean.<ext>).
rewriter_backendstringrewriter backend
rewriter_modelstringCheckpoint path or model ID for the selected backend.
seedintegerseed
strict_residualbooleanWith 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.

ParameterTypeDescription
source *stringsource
as_jsonbooleanEmit the report as JSON instead of a table.
no_visiblebooleanSkip 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]'

ParameterTypeDescription
source *stringsource
as_jsonbooleanEmit 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.

ParameterTypeDescription
source *stringsource
adaptive_polishbooleanRestore 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…
backendstringFill 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_scalenumberCanny ControlNet conditioning scale on the global stage (structure/text preservation strength). Higher = closer to original structure.
cpu_offloadbooleanOffload 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…
forcebooleanRun 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_tokenstringHugging Face API token.
max_resolutionintegerCap long side (px) before diffusion; 0 = native and preserves the most detail. Raise only on GPU OOM.
outputstringOutput path (default: <source>_clean.<ext>).
pipelinestringPipeline 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…
presetstringCleaning preset: lossless-fast (metadata + fast visible), balanced (auto backend + verified signals), or deep-clean (full studio pixel/audio regeneration).
seedintegerRandom seed for reproducibility. Default 0: all profiles are certified at a fixed seed, because SynthID removal near the strength floor is seed-dependent.
sensitivitystringHow 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…
strengthnumberDenoising 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;…
tilebooleanProcess 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_overlapintegerOverlap between adjacent tiles in px (feather-blended, no seam). Default 128.
tile_sizeintegerTile dimension in px for --tile. Default 1024.
vendorstringKnown 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.

ParameterTypeDescription
directory *stringdirectory
adaptive_polishbooleanRestore 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…
backendstringFill 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_scalenumberCanny ControlNet conditioning scale on the global stage (structure/text preservation strength). Higher = closer to original structure.
cpu_offloadbooleanOffload 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…
forcebooleanRun 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_tokenstringHugging Face API token.
max_resolutionintegerCap long side (px) before diffusion; 0 = native and preserves the most detail. Raise only on GPU OOM.
modestringProcessing mode.
output_dirstringOutput directory (default: <dir>_clean/).
pipelinestringPipeline 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…
presetstringCleaning preset: lossless-fast (metadata + fast visible), balanced (auto backend + verified signals), or deep-clean (full studio pixel/audio regeneration).
seedintegerRandom seed for reproducibility. Default 0: all profiles are certified at a fixed seed, because SynthID removal near the strength floor is seed-dependent.
sensitivitystringHow 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…
strengthnumberDenoising 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;…
tilebooleanProcess 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_overlapintegerOverlap between adjacent tiles in px (feather-blended, no seam). Default 128.
tile_sizeintegerTile dimension in px for --tile. Default 1024.
vendorstringKnown 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.

ParameterTypeDescription
source *stringSource image path
min_scorenumber
stableboolean