# Remove Background

> Remove an image background with the Pilio developer API.

Remove an image background with the Pilio developer API. Use when the user wants transparent-background cutouts, portrait or product background removal, or automated image background cleanup through Pilio.

- Page: https://ss33.ai/skills/pilioai/remove-background-82784217497
- Publisher: pilioai
- Category: [Creative & Media](https://ss33.ai/skills/category/creative-and-media-0j3x01) › [Image & design](https://ss33.ai/skills/category/creative-and-media-0j3x01/image-and-design-nlbt3d)
- License: MIT
- Source: https://github.com/pilioai/skills/blob/1a9a4516b49b5971a3d2d195a68e845dd62593af/skills/remove-background/SKILL.md

## Skill

SKILL.md: https://ss33.ai/api/v1/ss33/download/pilioai/remove-background-82784217497

# Remove Background

Use the Pilio CLI so file upload and task creation are handled by the official SDK.

Require `PILIO_API_KEY` in the environment. Do not ask the user to paste API keys into the conversation.

Try the same workflow online first: https://pilio.ai/background-remover

Run:

```bash
pnpm dlx @pilio/cli remove-background --input ./portrait.png
```

The command returns a task payload. If the task is still pending or processing, wait for it:

```bash
pnpm dlx @pilio/cli task wait <task_id>
```
