remove-background

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

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.
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>
使用Pilio CLI,文件上传和任务创建将由官方SDK处理。
环境中需要配置
PILIO_API_KEY
。请勿要求用户在对话中粘贴API密钥。
运行:
bash
pnpm dlx @pilio/cli remove-background --input ./portrait.png
该命令会返回任务负载。如果任务仍处于待处理或处理中状态,请等待:
bash
pnpm dlx @pilio/cli task wait <task_id>