Skill by Mage · Inpaint

Change one part of an image, keep the rest

Say what to change and what should be there instead. The skill paints the region with the app’s red mask, checks it covers the right thing, and has Mango 3 edit only inside it.

Try in Claude ↗
Requires the Mage connector ↓Prefer clicking? Open the Inpaint app →

Claude

A woman with long brown hair in a denim jacket holding a coffee cup in a bright cafe

Remove the coffee cup from her hands and keep everything else.

I’ll mask the cup in red and ask for her hands, empty and relaxed, in its place. Mango 3 at 2K, 135 Gems.

Using skill · Inpaint

Masking the cup in red, a little wider than it

Checking the mask covers the cup

Editing the masked area with Mango 3 at 2K

Done (Mango 3, 1792 × 2304, 135 Gems). The cup is gone, no red is left, and the jacket and cafe match the original.

The woman in the cafe with her hands together and no cup
The woman in the cafe with her hands together and no cup

Examples

One region changed

Only the masked area was regenerated. Everything outside it is the original photo.

The original photo with the cup
Before
The photo with the cup removed
Cup removed · Mango 3, 2K

How it works

How to use the Inpaint skill

  1. Say what to change

    Name the thing to change and what should be there instead, or share a mask of your own.

  2. Check the mask

    The skill paints the region red, looks at it, and tells you what it masked so you can correct it.

  3. Get the edit

    Mango 3 changes only the red area. If the join shows, the skill widens the mask and runs again.

Runs on

Mango 3Mango 3 Turbo

Setup

Set up Mage in your agent

1

Connect Mage

Add the Mage connector to Claude, ChatGPT, Claude Code, Grok, or Cursor, and sign in with your Mage account.

Open MCP setup →
2

Add the skills

In Claude Code, Codex, Cursor, and other agents, add every Mage skill with one command, or install the Claude Code plugin.

npx skills add mage-space/skills
/plugin marketplace add mage-space/skills
/plugin install mage@mage
3

Ask for it

Describe the job, or run /mage-inpaint.

Use Mage to remove the coffee cup from her hands in this photo and keep everything else: https://www.mage.space/skills/app-inputs/scene.jpg

FAQ

Frequently asked questions

Is it the same as the Inpaint app?

Yes. The skill sends the Inpaint app’s own prompt with the same models and defaults, so your agent gets the app’s results from a chat, and can run it on many images in one go.

Which agents can run it?

Agents that run commands and see images, like Claude Code, Codex, and Cursor, because the mask is painted with a short script. Without them, the skill offers Refine with the area named in words.

Can it change the whole composition?

No. Inpaint edits one region. For a new composition or angle, generate a new image or use the Angles skill.

Can I use a real person’s face?

Only with that person’s permission, and never to deceive, harass, or sexualize anyone. Harmful deepfakes are forbidden on Mage, and the skill states the rule with the price before it runs.

How much does it cost?

The skill is free and open source. Each generation it starts is paid in Gems from your Mage account at the model’s listed price, and your assistant quotes the total before it creates anything.

Try Inpaint in Claude

Change, remove, or add one thing in an image and leave every other pixel as it was.

Try in Claude ↗

More skills

Explore other skills

A platinum-haired portrait, a woman in a cafe, and the cafe photo with the platinum-haired face

Photo Edits

Face Swap

Put one face and hairstyle on the person in another photo, with the pose, outfit, and scene kept.

A man in a navy suit, a woman in a cafe, and the cafe photo with the man in her place

Photo Edits

Character Swap

Replace the whole person in a photo with another character, keeping the scene and the pose.

A flat lay of a red leather jacket, the woman in a denim jacket, and the woman in the red leather jacket

Photo Edits

Outfit Swap

Dress the person in a photo in the clothes from another image, keeping who they are and where they stand.

A close-up of the woman’s face before and after Add Detail

Photo Edits

Refine

Fix eyes, fix hands, or add detail to an image without changing what is in it.

The cafe photo in soft daylight and relit with warm golden backlight

Photo Edits

Relight

New light for a photo: the direction, hardness, brightness, and color you choose, nothing else changed.

The cafe photo from the front and from a low angle on her right side

Photo Edits

Angles

See a photo from a new camera angle: the same subject, pose, and scene, shot by a second camera.