
Qwen Edit
- 666 installs
- 1.9k repo stars
- Updated July 6, 2026
- digitalsamba/claude-code-video-toolkit
qwen-edit is a Claude agent skill that documents Qwen-Image-Edit-2511 prompt patterns and RunPod image_edit.py commands for developers who need identity-preserving AI photo edits via natural language.
About
qwen-edit is a digitalsamba/claude-code-video-toolkit agent skill for AI image editing with Qwen-Image-Edit-2511 via RunPod serverless, listed on skills.sh with 519 installs. It provides prompt patterns, negative prompts, guidance and step tuning, and identity-preserving workflows for reframing cropped photos, clothing changes, pose adjustments, style transfers, and lighting edits. Developers invoke tools/image_edit.py with --prompt, --negative, --steps, and --guidance flags or multi-image composite anchors. Bundled references include prompting.md, examples.md, and parameters.md from production experiments. The skill explicitly warns against background replacement, face swapping, and outpainting where results fail reliably. Reach for qwen-edit when building media pipelines that need programmatic photo transforms with documented failure modes.
- Natural language video editing via Qwen2.5-VL vision-language model
- Supports trimming, cropping, text overlays, transitions and effects
- Processes local video files with frame-level understanding
- Returns edited video plus detailed operation log
- Designed as a Claude Code compatible agent skill
Qwen Edit by the numbers
- 666 all-time installs (skills.sh)
- Ranked #1,456 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/digitalsamba/claude-code-video-toolkit --skill qwen-editAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 666 |
|---|---|
| repo stars | ★ 1.9k |
| Last updated | July 6, 2026 |
| Repository | digitalsamba/claude-code-video-toolkit ↗ |
How do you prompt Qwen-Image-Edit for identity-preserving edits?
Enable precise video editing commands through natural language instructions to Qwen2.5-VL.
Who is it for?
Developers building media or video toolkits who need documented Qwen-Image-Edit prompt patterns with RunPod serverless integration.
Skip if: Developers needing reliable background replacement, face swapping, or canvas outpainting where the skill documents consistent failures.
When should I use this skill?
User asks to edit photos with Qwen, reframe cropped images, run style transfers, or tune image_edit.py RunPod parameters.
What you get
Edited image files, tuned prompt and negative-prompt recipes, and parameter settings for RunPod Qwen-Image-Edit-2511 jobs.
- Edited image outputs
- Prompt and parameter recipes
By the numbers
- 519 installs on skills.sh
- 3 bundled reference files: prompting.md, examples.md, parameters.md
Files
Qwen-Image-Edit Skill
AI-powered image editing using Qwen-Image-Edit-2511 via RunPod serverless.
Status: Evolving - learnings being captured as we experiment
When to Use This Skill
Use when the user wants to:
- Edit/transform photos while preserving identity
- Reframe cropped images (fix cut-off heads, etc.)
- Change clothing, add accessories
- Change pose (arm positions, hand placement)
- Apply style transfers (cyberpunk, anime, oil painting)
- Adjust lighting/color grading
- Add/remove objects
- Character transformations (Bond, Neo, etc.)
When NOT to Use
- Background replacement (single image) - creates cut-out artifacts, halos
- Face swapping - cannot preserve identity from reference
- Outpainting - can't extend canvas reliably
Use With Care
- Multi-image compositing - CAN work with explicit identity anchors (see examples.md for prompt patterns). Requires describing distinctive features (hair texture/color, ethnicity, outfit) and using guidance ~2.0
- Camera angle changes - Inconsistent results. Vertical angles (low/high) work better than rotational (three-quarter view)
Quick Reference
# Basic edit
python tools/image_edit.py --input photo.jpg --prompt "Add sunglasses"
# With negative prompt (recommended)
python tools/image_edit.py --input photo.jpg \
--prompt "Reframe as portrait with full head visible" \
--negative "blur, distortion, artifacts"
# Style transfer
python tools/image_edit.py --input photo.jpg --style cyberpunk
# Background (use cautiously - often fails)
python tools/image_edit.py --input photo.jpg --background office
# Higher quality
python tools/image_edit.py --input photo.jpg --prompt "..." --steps 16 --guidance 3.0
# Multi-image composite (identity-preserving)
python tools/image_edit.py --input person.jpg background.jpg \
--prompt "The [ethnicity] [gender] with [hair description] from first image is now in [scene] from second image. Same [features], [outfit]." \
--negative "different ethnicity, different hair color, different face shape, generic stock photo" \
--steps 16 --guidance 2.0Key Files
prompting.md- Prompt patterns and structureexamples.md- Good/bad examples from experimentsparameters.md- Tuning steps, guidance, negative prompts
Tool Location
tools/image_edit.py - CLI wrapper for RunPod endpoint
Related Docs
docs/qwen-edit-patterns.md- Character transformation patterns.ai_dev/qwen-edit-research.md- Research notes
Qwen-Edit Examples
Real results from experiments. This document will grow as we learn.
---
Reframing Cropped Images (2026-01-04)
Problem: Portrait photo with head cropped at top (missing hair/forehead)
What Failed
| Approach | Result |
|---|---|
| "Zoom out to show full scene" | Dark letterboxing borders around image |
--viewpoint three-quarter | Silhouette with no face, complete disaster |
| "Reframe as portrait..." (no negative) | Blurry ghostly face, nightmare fuel |
What Worked
Prompt:
Reframe this photo as a portrait composition with the woman's full head visible, positioned in the lower portion of the frame with sky aboveNegative:
blur, blurry, ghostly, distortion, abstract, haze, fog, out of focusResult: Clean portrait with full head, nice hair, clear face, professional look
Variations Tested
| Settings | Result |
|---|---|
| steps=8, guidance=1.0 | Good baseline |
| steps=16, guidance=1.0 | Cleaner detail, nice clouds |
| steps=8, guidance=3.0 | More dramatic/windswept, moodier |
| steps=16, guidance=3.0 | Most "zoomed out", sharp, shows more torso |
Conclusion: The negative prompt was the key differentiator. Parameter tuning gave variations but all were usable once negative prompt was added.
---
Character Transformations (2026-01-01)
From docs/qwen-edit-patterns.md:
| Transformation | Identity | Quality |
|---|---|---|
| James Bond (tux, casino) | Excellent | Excellent |
| Neo (Matrix, leather coat) | Good | Excellent |
| John Wick (tactical, neon) | Excellent | Excellent |
| Top Gun (flight suit) | Excellent | Excellent |
| Forrest Gump (running) | Good | Excellent |
| Indiana Jones (fedora, whip) | Good | Excellent |
| Peaky Blinders (flat cap) | Good | Excellent |
| Corporate headshot | Drifted | Good |
| Jedi (dark temple) | Lost | Poor |
Key insight: Dark scenes lose identity. Strong visual references (iconic costumes) work best.
---
Background Replacement (2026-01-03)
Status: Generally fails with single-image approach - use multi-image compositing instead
| Attempt | Result |
|---|---|
| "Place in cottage interior" | Black void |
| "Place in garden" | Flat green with halo around subject |
| Multi-image compositing (generic prompts) | Merged faces incorrectly |
Update (2026-01-04): Multi-image compositing CAN work - see "Identity-Preserving Composites" below.
---
Identity-Preserving Composites (2026-01-04)
Problem: Place a person into a new corporate/office scene while preserving their identity
What Failed
| Approach | Result |
|---|---|
| "Place woman from first image into office from second" | Different person entirely |
| Mood words: "serene", "wellness", "coach" | Generic stock-photo face, lost identity |
| Very low guidance (1.0) | Artifacts, weird results |
| "Keep same face" (vague) | Ignored by model |
| Walking poses | More identity drift than static poses |
What Worked
Prompt:
The Irish woman with shoulder-length wavy dark auburn hair from first image is now standing confidently in the open plan office from second image. Same warm friendly smile, same facial features, black blazer, professional.Negative:
different ethnicity, different hair color, straight hair, different face shape, generic stock photoSettings: steps=16, guidance=2.0
Result: Good identity preservation - hair, smile, pose, outfit all recognizable. Open plan office background integrated naturally.
Prompt Pattern for Composites
The [ethnicity/nationality] [gender] with [specific hair: length, texture, color] from first image
is now [pose/action] in the [scene type] from second image.
Same [distinctive feature 1], same [distinctive feature 2], [outfit description].Key Insights
1. Explicit identity anchors - "Irish woman with shoulder-length wavy dark auburn hair" beats vague "same woman" 2. Describe distinctive features - Hair texture, color, specific outfit items help anchor identity 3. Negative prompts for drift - "different ethnicity, different hair color, straight hair" prevents common failures 4. Mid guidance (2.0) - Sweet spot for composites. Too low = artifacts, too high = identity loss 5. Pose consistency - Matching the original pose (e.g., arms crossed) preserves identity better than new poses 6. Avoid mood words - "Serene", "wellness", "coach" trigger generic stock-photo aesthetics
Guidance Scale for Composites
| Guidance | Result |
|---|---|
| 1.0 | Artifacts, unpredictable |
| 1.5 | Better but still some drift |
| 2.0 | Best balance - identity preserved, good scene integration |
| 2.5 | Scene dominates, identity starts to drift |
---
Pose and Camera Angle Changes (2026-01-04)
Problem: Change a person's pose or camera angle while preserving identity and outfit
Pose Changes - What Worked
| Pose | Prompt Pattern | Result |
|---|---|---|
| Arms open/welcoming | "Same woman, same face, same [outfit], but with arms at her sides in a relaxed open pose, welcoming body language" | ✅ Worked well |
| Hands on hips | "Same woman, same face, same [outfit], hands on hips power pose, confident leadership stance" | ✅ Worked well |
Key: Use negative prompt to exclude original pose: "arms crossed, defensive pose"
Camera Angles - Mixed Results
| Angle | Prompt Pattern | Result |
|---|---|---|
| Three-quarter view | "three-quarter view angle, slightly turned to the right" | ❌ Minimal change |
| Low angle (looking up) | "camera angle from slightly below looking up, empowering perspective" | ✅ Worked |
Settings
- steps: 14
- guidance: 2.0 (same as composites)
Key Insights
1. Pose changes work - Arm positions, hand placement can be modified successfully 2. Camera angles are inconsistent - Vertical angle changes (low/high) work better than rotation (three-quarter) 3. Be explicit about what to remove - Negative prompt should exclude the original pose 4. Identity preserved well - Face and outfit remain consistent through pose changes
Prompt Pattern for Pose Changes
Same woman, same face, same [outfit description], [new pose description], [mood/context]Negative:
different person, different face, [original pose to remove]---
Template for Adding New Examples
## [Use Case Name] (YYYY-MM-DD)
**Problem:** [What were you trying to achieve]
### What Failed
| Approach | Result |
|----------|--------|
| ... | ... |
### What Worked
**Prompt:** ...
**Negative:** ...
**Settings:** steps=X, guidance=Y
**Result:** [Description]
### Key Insight
[What we learned]Qwen-Edit Parameters
Available Parameters
| Parameter | CLI Flag | Default | Range | Notes |
|---|---|---|---|---|
num_inference_steps | --steps | 8 | 4-50 | More = higher quality, slower |
guidance_scale | --guidance | 1.0 | 1.0-7.0 | Higher = follows prompt more strictly |
negative_prompt | --negative | "" | text | Things to avoid |
seed | --seed | random | int | For reproducibility |
Steps (--steps)
Controls number of denoising passes.
| Value | Use Case | Inference Time |
|---|---|---|
| 4 | Quick preview, Lightning LoRA | ~10s |
| 8 | Default, good balance | ~18s |
| 16 | Higher quality, finer detail | ~34s |
| 25+ | Diminishing returns | 45s+ |
Recommendation: Start with 8. Use 16 for final renders if detail matters.
Guidance Scale (--guidance)
Controls how strictly the model follows your prompt.
| Value | Behavior |
|---|---|
| 1.0 | Default, more creative freedom |
| 3.0 | Stronger adherence, more dramatic |
| 4-5 | Recommended max for Qwen-Edit |
| 7.0+ | Risk of artifacts, over-saturation |
Note: Qwen-Edit uses lower guidance than typical diffusion models. Don't go above 5-6.
Recommendation: Start with 1.0. Try 3.0 for more literal interpretation.
Negative Prompt (--negative)
Critical for avoiding artifacts. Always consider using one.
Common Negative Prompts
For portraits/reframing:
blur, blurry, ghostly, distortion, abstract, haze, fog, out of focusFor zoom/scale changes:
black borders, letterbox, vignette, dark edges, frames, croppedFor viewpoint changes:
silhouette, dark figure, no face, shadow, faceless, artifacts, distortion, blackGeneral quality:
deformed, disfigured, bad anatomy, extra limbs, blurry, low qualitySeed (--seed)
Use for reproducibility when iterating on prompts.
# First attempt
python tools/image_edit.py --input photo.jpg --prompt "..." --seed 12345
# Same seed, different prompt - compare results
python tools/image_edit.py --input photo.jpg --prompt "..." --seed 12345Cost vs Quality Tradeoffs
| Profile | Steps | Guidance | Time | Cost |
|---|---|---|---|---|
| Quick preview | 4 | 1.0 | ~10s | ~$0.001 |
| Default | 8 | 1.0 | ~18s | ~$0.002 |
| Quality | 16 | 1.0 | ~34s | ~$0.004 |
| Dramatic | 8 | 3.0 | ~18s | ~$0.002 |
| Best | 16 | 3.0 | ~34s | ~$0.004 |
(Costs based on L4 GPU @ $0.34/hr)
Experimental Parameters
These are supported by the handler but not yet exposed in the CLI:
| Parameter | Default | Notes |
|---|---|---|
use_fp8 | true | FP8 quantization (false = BF16 full quality) |
auto_resize | true | Auto-resize input for optimal processing |
true_cfg_scale | 4.0 | Internal CFG scale |
To expose these, edit tools/image_edit.py.
Qwen-Edit Prompting Guide
Prompt Structure
Optimal length: 50-200 characters (short and specific beats long and detailed)
Formula: [Action], [details], [constraints]
Always Include Constraints
Preservation constraints significantly improve results:
- "Keep face unchanged"
- "Maintain original pose"
- "Preserve facial features"
- "Keep expression the same"
- "Preserve the person's identity"
Prompt Patterns
Reframing (Fix Cropped Images)
When head/body is cropped out of frame:
Reframe this photo as a portrait composition with the woman's full head visible, positioned in the lower portion of the frame with sky aboveCritical: Pair with negative prompt to avoid artifacts:
--negative "blur, blurry, ghostly, distortion, abstract, haze, fog, out of focus"What doesn't work for cropped images:
- "Zoom out" - adds letterboxing/black borders
- "Viewpoint change" - destroys identity, creates silhouettes
- "Extend the image" - not an outpainting model
Character Transformations
"{Character name}, wearing {costume details}, {pose/action}, {background}, {lighting style}, {aesthetic keywords}"Examples:
"James Bond 007, wearing a tuxedo with bow tie, holding a martini glass, casino background, suave and sophisticated, cinematic lighting, spy thriller aesthetic""Neo from The Matrix, wearing long black leather trench coat, dark sunglasses, green digital rain code background, cyberpunk aesthetic"
Style Transfer
"Apply {style} style" or "Restyle as {style}"Examples:
"Apply Monet impressionist style, like Water Lilies""Restyle as cyberpunk with neon lighting""Make it look like a vintage 1970s photograph"
Clothing/Accessory Changes
"Change {item} to {new item}, maintain pose"Examples:
"Change blue t-shirt to red hoodie, maintain pose""Add sunglasses and a warm smile""Replace jacket with leather bomber jacket"
Lighting/Color
"{Lighting effect}, {mood keywords}"Examples:
"Add warm sunset tones, golden hour lighting""Cinematic dramatic lighting with shadows""Enhance lighting, studio portrait quality"
What Makes Prompts Fail
| Problem | Why |
|---|---|
| Too vague | "Make it better" - no specific direction |
| Too long | 350+ chars - model gets confused |
| Background replacement | "Place in X" creates halos/artifacts |
| Extreme changes | Fundamentally altering the scene |
| Dark scenes | Identity gets lost in shadows |
Negative Prompts
Always consider what to avoid:
| Use Case | Negative Prompt |
|---|---|
| Reframing | blur, blurry, ghostly, distortion, abstract, haze, fog, out of focus |
| Zoom out | black borders, letterbox, vignette, dark edges, frames, cropped |
| Portraits | deformed, disfigured, bad anatomy, extra limbs |
| Style transfer | photo-realistic (if you want artistic) |
Related skills
FAQ
What model does qwen-edit use for image editing?
qwen-edit targets Qwen-Image-Edit-2511 deployed via RunPod serverless. Developers call tools/image_edit.py with --input, --prompt, and optional --negative, --steps, and --guidance flags.
Which edits should qwen-edit avoid?
qwen-edit documents unreliable workflows: single-image background replacement, face swapping, and outpainting. Multi-image compositing and camera-angle changes require explicit identity anchors and careful tuning.
How many installs does qwen-edit have on skills.sh?
qwen-edit shows 519 installs on skills.sh from digitalsamba/claude-code-video-toolkit, with bundled prompting.md, examples.md, and parameters.md reference files.