Skip to main content

Qwen Image 2.1 Artifacts: Cleaner Skin and Fabric Without Losing Character Detail

Remove distracting Qwen Image 2.1 grids and noise while protecting faces and fabric. Choose source cleanup, masked edits or local community fixes.

Published
Read
14 min read
Updated
Add SpicyAPI to your favorites on Google
A macro editorial still life of a fashion portrait, satin and wool samples under a magnifying glass.

To remove Qwen Image 2.1 grids, gritty shadows, or crosshatched fabric without erasing a character's face, inspect the untouched original at 100% zoom first and match the fix to the exact stage that created the defect. Do not apply global blur or heavy sharpening, and do not repaint the entire portrait for a localized cheek or sleeve flaw.

Observed symptom at 100% zoomRoot causeBest fix on Hosted API (SpicyAPI)Best fix on Local setup (ComfyUI / sd.cpp)What to avoid
Grid appears only in browser preview, absent in downloaded PNGDisplay resampling / gallery downscaling moiréNone—export at exact delivery width and apply light post-resize sharpeningSame; inspect raw decoded PNG at 100% before changing nodesRegenerating a clean master
Regular 8 px (with 4 px sub-grid) lattice across skin, cloth, and background at 2KResolution-dependent flow schedule / final sigma mismatch in local buildsRun topaz/denoise-sharpen/edit (denoise_normal, $0.12) or localized mask_url edit on alibaba/qwen-image-2.1/editUpdate past stable-diffusion.cpp PR #2048; verify official schedule and 40-step baselineAdding more diffusion steps on a broken schedule
Fine 2 px periodic lattice across all decoded surfacesVAE reconstruction artifactUse topaz/denoise-sharpen/edit (denoise_normal) to keep exact geometry, or selective masked editInsert ComfyUI-DeGrid immediately after VAE Decode (before resize/upscale), or test madebyollin texture-fix VAE on saved latentsRunning DeGrid after resizing or re-encoding an exported PNG
Localized rough patch on one cheek or one garment panel; rest of portrait is cleanLocalized diffusion texture errorSingle-source masked edit on alibaba/qwen-image-2.1/edit (mask_url, enable_prompt_expansion: false, png, 1k/2k)Local masked inpaint over the single affected panel onlyMasking the whole head or combining skin + satin + wool in one mask
Soft or slightly smeared eyes/face while clothes and backdrop are cleanLow facial detail density or compression softeningspicyapi/face-enhancer-v1/edit ($0.012 flat, same resolution, untouched background)Fidelity-weighted local face pass blended on a separate layerRunning a full-frame generative edit that shifts jawline or expression
Whole unapproved composition looks noisy or messy throughoutPrompt/LoRA clutter or noisy base passRe-roll fresh 1K candidates ($0.024 each) with simpler texture wording, or test a native 2.1 repair LoRA on alibaba/qwen-image-2.1-lora/text-to-imageTest e-n-v-y Fix v2.0 (layout-preserving) or Opinionated v1.0 (fresh look)Spending multiple edits trying to rescue an unapproved pose
Four abstract swatches distinguish repeating grids, random speckles, sharpening halos and smooth texture.

Periodic grids, random color noise, edge-sharpening halos, and smooth skin require separate interventions.

Step 1: Isolate where the artifact entered the pipeline

Compare three files side by side at 100% zoom: the source input (if editing), the untouched Qwen Image 2.1 output, and your resized delivery export.

  • Periodic grid vs. real fabric weave: real wool, knit, or twill follows garment folds and stops at seams and collars. An inference or VAE grid stays locked to the image's horizontal/vertical pixel axes and crosses seamlessly from a cheek onto a jacket lapel and a flat painted wall. Compare a cheek crop and an adjacent clothing crop at identical scale—if both share the same pixel spacing and orientation, treat it as a periodic lattice rather than "bad skin."
  • Color speckles vs. edge halos vs. invented pore noise: colored dots in dark hair or shadows are chroma noise; bright rims paired with dark lines along jawlines and collars are oversharpening halos; exaggerated uniform pores across a forehead are generative texture artifacts. Adobe's noise and JPEG correction guide separates luminance noise, chroma noise, and compression blocks—applying one heavy blur to all three turns textured skin into wax.
  • Verify viewing scale: check at 100% and at your real delivery width. Never flatten subtle natural skin texture because it looks busy at 400%, and never ship a 2K master with a visible full-frame grid just because a small thumbnail hides it.

Documented technical causes behind Qwen Image 2.1 grids

Community and upstream diagnostics show at least two distinct local artifact paths—neither of which can be fixed by writing "use a better VAE" into a hosted prompt:

  1. Resolution-dependent flow schedule at 2K (stable-diffusion.cpp #2041 / PR #2048): issue #2041 documented an 8-pixel grid (with a 4-pixel sub-component) appearing at native 2K sizes across multiple quantizations while 1024×1024 stayed largely clean; disabling VAE tiling did not remove it. PR #2048 closed the issue by aligning resolution-dependent flow shift settings with official defaults and adjusting the final denoising sigma. Update any older local build before altering prompts or post-processing.
  2. VAE decoding reconstruction (Hugging Face Qwen Image 2.1 Discussion #12): passing an image through the VAE encode/decode cycle without diffusion still reproduced periodic texture patterns. The unofficial madebyollin texture-fix VAE improves perceptual smoothness on the same generated latents at the cost of slightly lower pixel-reconstruction accuracy—meaning tiny identifying marks or printed fabric motifs can shift slightly. Note that swapping VAEs only recovers original diffusion latents; re-encoding a finished PNG introduces a second lossy reconstruction pass.

What SpicyAPI's hosted Qwen Image 2.1 endpoints actually expose

Hosted API requests do not expose custom VAE selection, sampler choice, CFG/guidance scale, or inference step counts. Putting sampler names or step counts inside prompt has no effect. Instead, control the exact parameters the schema provides:

Parameteralibaba/qwen-image-2.1/editalibaba/qwen-image-2.1-lora/editWhy it matters for artifact cleanup
promptUp to 5,000 chars (no negative_prompt field)Up to 5,000 chars (no negative_prompt field)Put exclusions directly in clear positive/negative prose
enable_prompt_expansionBoolean (default true)Not exposedSet false for repairs so the rewriter does not invent extra skin/fabric adjectives
mask_urlSupported (white = repaint, black = keep)Not supportedRequires 1 image in image_urls, background: "opaque", output_format: "png", resolution: "1k" or "2k" (not 1.5k)
image_urls1–10 images (max 10 MB each)1–10 images (max 10 MB each)Use 1 source image for surface cleanup so extra references do not alter identity
lorasNot supportedUp to 3 {path, scale} (scale 0–4, default 1)Requires plain public HTTPS .safetensors URLs (gated links fail HTTP 401 before billing)
resolution1k, 1.5k, 2k1k, 1.5k, 2kOn standard edit, 2k ($0.048) is cheaper than 1.5k ($0.072)
output_formatjpeg (default), png, webpjpeg (default), png, webpUse png for lossless intermediate cleanup passes
seed0–21474836470–2147483647Lock seed when tuning repair wording or mask edges

Both endpoints carry the Unrestricted content tier. In our September 24, 2026 content-ladder runs, Qwen Image 2.1 passed 34 of 35 runs across both endpoints (18 of 18 on edit with zero refusals; 1 softened run on text-to-image), and Qwen Image 2.1 LoRA passed 32 of 32 runs across both endpoints.

Hosted Route A: Localized masked repair on alibaba/qwen-image-2.1/edit

When an approved portrait has a clean face overall but shows a repeating grid across one cheek or gritty artifacts on a jacket panel, isolate the defect with mask_url rather than redrawing the entire person.

One character illustration has callouts for face shape, cheek mark, smile and garment seams.

Separate structural identity markers (eye shape, facial marks, smile line, garment seams) from surface texture before painting a repair mask.

Mask preparation rules that prevent identity drift

  1. Match the source aspect ratio exactly. Export the black-and-white mask from the exact same canvas dimensions as the source portrait; mismatched ratios get scaled to fit and can shift the repaint zone onto an eye or collar.
  2. Paint one coherent region per material. Never combine skin, satin, and wool inside one broad white mask. Skin needs subtle irregular tonal variation; satin needs continuous flowing specular highlights; wool needs directional weave along seams.
  3. Keep eyes, lips, hairline, jaw silhouette, and signature marks strictly black. Use a slight feather on the mask edge so the repaired cheek blends into surrounding skin without a sharp seam, and avoid scattering tiny white specks over individual pixels.
  4. Always branch retries from the untouched original. Chaining cleanup edit → cleanup edit → cleanup edit compounds facial drift.
A source portrait is followed by a black mask with a white cheek patch and another with a white jacket patch.

Run separate masked passes for skin and fabric so each surface receives material-specific texture direction.

Working masked-repair API call

bash
curl -X POST https://api.spicyapi.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SPICY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "alibaba/qwen-image-2.1/edit",
    "input": {
      "image_urls": ["https://example.com/approved-portrait-2k.png"],
      "mask_url": "https://example.com/cheek-patch-mask.png",
      "prompt": "In the white masked area on the near cheek, remove the fine repeating grid pattern and replace it with restrained, irregular natural skin texture matching the surrounding complexion and soft window light. Keep the same apparent age, facial contours, and transition into unmasked skin with no waxy smoothing, sharp border, or added marks. Change nothing outside the mask.",
      "resolution": "2k",
      "output_format": "png",
      "background": "opaque",
      "enable_prompt_expansion": false,
      "seed": 4096
    }
  }'

For a separate garment-panel pass, describe the material behavior specifically:

  • Satin / silk: "Repair only the masked blouse panel. Remove the crosshatched grid while keeping the exact fold geometry, color, and broad continuous specular highlights. Keep the neckline and unmasked seams unchanged; do not add rough weave or flatten the sheen."
  • Wool / tailored jacket: "Repair only the masked jacket panel. Remove the gritty repeating pattern and retain a subtle fine wool weave following the panel direction. Keep lapels, stitching, seam boundaries, and shadows unchanged."

Never use "beauty," "flawless," or "smooth detailed skin" in cleanup prompts—those words push the model toward younger, more symmetrical, airbrushed features. If exact pixel preservation outside the mask is mandatory, composite the aligned repaired patch over the original PNG as a masked layer in a conventional editor. See the mask and inpainting guide for mask feathering details and the realistic skin texture guide when the problem is overly waxy skin rather than a periodic grid.

Hosted Route B: Non-generative cleanup when the whole frame is gridded

When a fine grid or grain covers the entire frame, painting 90% of the canvas white defeats masking. Use a dedicated same-resolution restoration endpoint instead of asking a generative editor to repaint the whole portrait:

  • Topaz Denoise & Sharpen (topaz/denoise-sharpen/edit, $0.12 flat, up to 24 MP, preserves exact width and height):
  • preset: "denoise_normal" runs Topaz Denoise Max to strip heavy grain and pattern noise while rebuilding clean detail.
  • preset: "sharpen_portrait" or "sharpen_natural" tightens soft facial/fabric focus without creating crunchy edge halos; preset: "sharpen_super_focus" targets severely defocused stills.
  • Always set output_format: "png" when you plan to inspect or composite the cleaned layer over the original.
  • Face Enhancer (spicyapi/face-enhancer-v1/edit, $0.012 flat, preserves exact resolution): restores up to three faces (largest first) and leaves the clothing and background untouched. In our October 25, 2026 Face Enhancer review, a 720×404 portrait returned at 720×404 in ~9 seconds with sharper eyes and brows while keeping background pixels completely unchanged.

Note that both topaz/denoise-sharpen/edit and spicyapi/face-enhancer-v1/edit currently list policyTier: unspecified in the catalog (unlike Qwen Image 2.1's verified Unrestricted tier). Test one representative frame before batching, and keep your original PNG to mask back any over-smoothed cheek skin.

Local fixes and repair LoRAs: matching the tool to the defect

e-n-v-y Fix v2.0 vs. Fix Opinionated v1.0

The community's native Qwen Image 2.1 repair LoRAs solve two different jobs (per the author's release notes):

LoRA fileDesign targetWhen to useRisk for recurring characters
e-n-v-y Fix v2.0Reduces noisy/messy generation with minimal composition driftLayout and character are close; you want cleaner base generationsStill influences diffusion—can shift eyelids, hair strands, or highlights
e-n-v-y Opinionated v1.0Stronger aesthetic polish; willing to alter framingEarly look development before locking a character masterCan change crop, lighting mood, or pose emphasis

To run native Qwen Image 2.1 .safetensors weights on SpicyAPI, use Qwen Image 2.1 LoRA (loras: [{path, scale}], up to 3 weights, scale 0–4). Keep any existing character LoRA at its locked strength while testing a repair LoRA, and do not substitute older Qwen-Image-2512 LoRAs—architecture mismatches load silently with poor results (see the Qwen 2.1 LoRA compatibility guide). Remember that alibaba/qwen-image-2.1-lora/edit has no mask_url, so it is for full-frame generation or restyling rather than local cheek patching.

Local ComfyUI DeGrid and step counts

  • ComfyUI-DeGrid: place it immediately after VAE Decode, before any resize, sharpen, or upscale node. Start in auto mode with skip_when_clean enabled, and inspect the removed_grid preview at 4×–8× zoom. A faint subject outline in removed_grid is acceptable; if recognizable facial marks, eyelashes, or jacket stitching show up in removed_grid, switch to manual mode and lower limit (or bypass if the detector reports clean).
  • Inference steps and samplers: the official Qwen Image 2.1 model card uses 40 steps for standard generation and editing. Do not push step counts higher to cure a decoder grid—verify your build includes the flow-schedule fix (sd.cpp PR #2048) and return from accelerated/turbo recipes to the 40-step baseline before debugging texture.

Live cost comparison: fresh roll vs. repair route

Check pricing carefully before choosing between fresh generations, standard masked edits, LoRA edits, and post-processing endpoints:

Route / Endpoint ID1K price1.5K price2K priceNotes that affect budget
alibaba/qwen-image-2.1/text-to-image$0.024$0.048$0.0484 fresh 1K drafts cost $0.096; re-roll here if the face/pose is not yet approved
alibaba/qwen-image-2.1/edit (1 ref, mask-ready)$0.036$0.072$0.048Skip 1.5k: 2k costs less ($0.048 vs. $0.072) and supports mask_url (1.5k does not). At 2k, 1–3 refs all quote $0.048
alibaba/qwen-image-2.1-lora/edit (1 ref, no mask)$0.042$0.078$0.150Over 3× more expensive at 2k than standard masked edit ($0.150 vs. $0.048); use only when loading custom .safetensors
topaz/denoise-sharpen/edit (same size, ≤24 MP)$0.120 flat$0.120 flat$0.120 flatAll 11 presets (denoise_normal / sharpen_*) share one flat price; preserves exact geometry
spicyapi/face-enhancer-v1/edit (same size)$0.012 flat$0.012 flat$0.012 flatRestores up to 3 largest faces; leaves garments and background untouched

Delivery export hygiene

Keep one lossless PNG master before resizing for web galleries or downstream video generation. Never pass a gridded or double-sharpened portrait into an image-to-video model—animation models amplify high-frequency grids into shimmering skin and strobing fabric. Export each delivery size directly from the clean master, apply conservative final sharpening only after resizing, and stop as soon as the periodic lattice disappears at 100% viewing scale while natural skin variation and fabric weaves remain intact.

About this article

Who writes
Written by SpicyAPI Engineering and published by SpicyAPI.
How we test
Our model reviews test each model through the public SpicyAPI API with default settings, the way a customer would call it. Methodology v3.3Model reviews
Disclosure
We sell API access to the models in this article; review scores ignore price. Conflict-of-interest statement
Corrections
Spotted an error? Tell us on the contact page

Also in 日本語 · 한국어 · Deutsch · Français · Español · Português (Brasil) · Русский · Italiano · Polski