codingdudecom/flux-kontext-stencil-lora 🔢📝❓🖼️✓ → 🖼️

▶️ 3.3K runs 📅 Sep 2025 ⚙️ Cog 0.16.0
image-editing image-to-image stencil

About

Stencil maker - create a black and white stencil image from any photo

Example Output

Prompt:

"render this image as a black and white stencil, white background"

Output

Example output

Performance Metrics

11.12s Prediction Time
17.36s Total Time
All Input Parameters
{
  "prompt": "render this image as a black and white stencil, white background",
  "guidance": 2.5,
  "megapixels": "1",
  "input_image": "https://replicate.delivery/pbxt/NnYv2cVIS08DPlrqM2h3bxfewZwRYdV0XAnoCWgXlWSZaJWC/gemini-2.5-flash-image-preview%20%28nano-banana%29_fill_in_the_red_area.png",
  "aspect_ratio": "match_input_image",
  "lora_strength": 1,
  "output_format": "webp",
  "output_quality": 80,
  "num_inference_steps": 30
}
Input Parameters
seed Type: integer
Random seed for reproducible generation. Leave blank for random.
prompt (required) Type: string
Text description of what you want to generate, or the instruction on how to edit the given image.
guidance Type: numberDefault: 2.5Range: 0 - 10
Guidance scale for generation
megapixels Default: 1
Approximate number of megapixels for generated image
input_image (required) Type: string
Image to use as reference. Must be jpeg, png, gif, or webp.
aspect_ratio Default: match_input_image
Aspect ratio of the generated image. Use 'match_input_image' to match the aspect ratio of the input image.
lora_strength Type: numberDefault: 1
Strength of the lora
output_format Default: webp
Output image format
output_quality Type: integerDefault: 80Range: 0 - 100
Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs
replicate_weights Type: string
Path to the lora weights
num_inference_steps Type: integerDefault: 30Range: 4 - 50
Number of inference steps
disable_safety_checker Type: booleanDefault: false
Disable NSFW safety checker
Output Schema

Output

Type: stringFormat: uri

Example Execution Logs
Unloaded 304 layers
LoRAs unloaded in 0.0037s
Loading LoRA weights for /src/weights-cache/7f3b709b6bae129e
LoRA weights loaded
Extracting keys
Keys extracted
Applying LoRA:   0%|          | 0/304 [00:00<?, ?it/s]
Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 3478.66it/s]
Loading LoRA in bf16
LoRA applied in 0.16s
Using seed: 36730
Target dimensions: NonexNone
Total safe images: 1 out of 1
Version Details
Version ID
dc53a7c298a863367b2521476026ee42e929a425b89218276e8a4f254e81f8c2
Version Created
September 29, 2025
Run on Replicate →