İçeriğe atla
Giriş yapÜcretsiz başlayın

Face swap

Where offered, and only with the consent of the person whose face it is.

Use it

Copy a skill into your assistant's skills folder. For Claude Code that is ~/.claude/skills/<name>/SKILL.md:

mkdir -p ~/.claude/skills/pickshot-face-swap
curl -L https://pickshot.ai/developers/skills/pickshot-face-swap/SKILL.md \
  -o ~/.claude/skills/pickshot-face-swap/SKILL.md

Download SKILL.md · MCP setup · All skills

The whole SKILL.md

---
name: pickshot-face-swap
description: Put the face from one picture onto the person in another picture with Pickshot's face swap app, only where Pickshot offers it to the account and only with the consent of the person whose face it is. Use it when the user asks to swap a face in a photo they have the right to edit.
---

# Face swap (only where it is offered)

This skill uses a feature that is not open everywhere. It needs the Pickshot MCP server (`list_apps`, `run_app`, `get_job`, `get_balance`). If those tools are missing, tell the user to connect it first (https://pickshot.ai/en/developers/mcp).

**First check that it exists.** Call `list_apps`. If there is no app with id `face-swap`, Pickshot does not offer face swap to this account or country. Say so, do not look for a way around it, and stop.

The spending rules of the `pickshot-generate` skill apply: say the price, wait for a yes, cap the charge with `max_credits`, one `idempotency_key` per request.

## Consent first

Face swap changes how a real person looks. Before anything else, ask the user, in plain words:

1. Whose face is going onto the other picture, and is it the user or a person who agreed?
2. Whose picture is it going onto, and may it be edited?

Go on only if both answers are yes. Never swap in the face of a public figure, of a child, or of anyone who has not agreed. Never help make a picture meant to mislead people about what a real person did or said. If the user cannot answer yes, stop and say why.

## Steps

1. Take two public https links: the face (clear, front on) and the target picture. Ask for better ones if the face is hidden or small.
2. Note the app's `credits` from `list_apps`. Tell the user the price of one run, and that the result stays private in their library. Wait for yes.
3. Call `run_app` with `app` `face-swap`, `image_url` set to the target picture (the person who keeps pose, clothes and background) and `image2_url` set to the picture of the face that goes onto them, `max_credits` equal to the price and a new `idempotency_key`.
4. The answer carries a `job` with an `id`. Call `get_job` every 10 to 20 seconds until it is `done` or `failed`. Give the user the link.
5. Do not post, share or publish the result for the user. If the user wants to share it, remind them to say it is edited.