Loading...
Loading...
Compare original and translation side by side
/background-remover --image <image file or URL> [options]/background-remover --image <图片文件或URL> [选项]| Option | Short | Description | Default |
|---|---|---|---|
| --image | -i | Target image file path or URL | Required |
| --api-key | -k | Your API Key | VERGING_API_KEY env |
| --output | -o | Result save path | Current directory |
| --download | -d | Auto download result to local | false |
| 选项 | 缩写 | 说明 | 默认值 |
|---|---|---|---|
| --image | -i | 目标图片文件路径或URL | 必填 |
| --api-key | -k | 您的API Key | 环境变量VERGING_API_KEY |
| --output | -o | 结果保存路径 | 当前目录 |
| --download | -d | 自动将结果下载到本地 | false |
| Variable | Description |
|---|---|
| VERGING_API_KEY | Your API Key |
| VERGING_API_URL | API base URL (default: https://verging.ai/api/v1) |
| 变量名 | 说明 |
|---|---|
| VERGING_API_KEY | 您的API Key |
| VERGING_API_URL | API基础地址(默认:https://verging.ai/api/v1) |
| Endpoint | Method | Format | Purpose |
|---|---|---|---|
| /api/v1/auth/me | GET | - | Get user info (including credits) |
| /api/v1/upload-video | POST | Form Data | Get R2 presigned upload URL |
| /api/v1/background-removal/create-job | POST | Form Data | Create background removal job |
| /api/v1/background-removal/jobs | GET | - | Query job status |
| 端点 | 请求方法 | 格式 | 用途 |
|---|---|---|---|
| /api/v1/auth/me | GET | - | 获取用户信息(包含可用信用额度) |
| /api/v1/upload-video | POST | 表单数据 | 获取R2预签名上传地址 |
| /api/v1/background-removal/create-job | POST | 表单数据 | 创建背景移除任务 |
| /api/v1/background-removal/jobs | GET | - | 查询任务状态 |
AuthorizationAuthorization: ApiKey <your_api_key>undefinedAuthorizationAuthorization: ApiKey <您的API密钥>undefined
You can get your API key from https://verging.ai (Login → Click avatar → API Keys).
您可以从https://verging.ai获取API密钥(登录 → 点击头像 → API Keys)。undefinedundefined
**Important:**
- Replace `$VERGING_API_KEY` with your actual API key or set it as an environment variable
- The `Authorization` header uses format: `ApiKey <key>` (not `Bearer <key>`)
**重要提示:**
- 请将`$VERGING_API_KEY`替换为您的实际API密钥,或设置为环境变量
- `Authorization`头的格式为:`ApiKey <密钥>`(不是`Bearer <密钥>`)/api/v1/upload-videovideo_file_namejob_typepublic_url/api/v1/upload-videovideo_file_namejob_typepublic_url/api/v1/background-removal/create-jobimagefile_namejob_type/api/v1/background-removal/create-jobimagefile_namejob_type/api/v1/background-removal/jobs?job_ids=xxx/api/v1/background-removal/jobs?job_ids=xxx| Operation | Credits |
|---|---|
| Background Removal (per image) | 1 credit |
| 操作 | 信用点 |
|---|---|
| 单张图片背景移除 | 1个信用点 |
export VERGING_API_KEY="your_key"export VERGING_API_KEY="您的密钥"/tmp/verging-bg-removal//tmp/verging-bg-removal/