Configure your remove.bg API key
mainThe CLI requires a remove.bg API key to process images. You can provide it in two ways:
1. Environment Variable (Recommended)
To avoid specifying the key in every command, export the REMOVE_BG_API_KEY variable in your shell profile (e.g., ~/.bashrc or ~/.zshrc):
export REMOVE_BG_API_KEY=xyz2. Per-command Flag
Pass the key directly using the --api-key flag:
removebg --api-key xyz images/image1.jpg