
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
Generate images with transparent backgrounds using AI. Uses chroma key compositing — instructs the model to render on a solid green screen background, then replaces it with transparency using sharp.
Set your API key:
export GEMINI_API_KEY=your-key-here
bunx nobg [options] <prompt>
bunx nobg 'a red apple'
bunx nobg -a 16:9 -r 2k 'app icon of a banana'
bunx nobg -i photo.jpg 'remove the background from this image'
bunx nobg -i ref.png 'recreate this in pixel art style'
bunx nobg -o logo.png 'minimalist logo'
| Flag | Description | Default |
|---|---|---|
-a, --aspect-ratio | Aspect ratio (e.g. 1:1, 16:9) | 1:1 |
-r, --resolution | Resolution: 1k, 2k, 4k | 1k |
-t, --temperature | Temperature 0.0-2.0 | 1.0 |
-i, --input | Input image(s) to include with the prompt (repeatable) | None |
-o, --output | Output filename | Auto-generated from prompt |
-d, --debug | Log full prompt and API details | Off |
-c, --chroma-color | Chroma key color in hex | #00FF00 |
-m, --model | Provider/model | gemini/gemini-3-pro-image-preview |
Built entirely with Claude Code.
FAQs
Generate images with transparent backgrounds using AI
We found that nobg demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.