{"id":50474263,"url":"https://github.com/shnwazdeveloper/shnwazdev-rembgapi","last_synced_at":"2026-06-01T12:02:42.830Z","repository":{"id":356816439,"uuid":"1234180479","full_name":"shnwazdeveloper/shnwazdev-rembgapi","owner":"shnwazdeveloper","description":"Serverless background removal API powered by rembg, hosted on Vercel.","archived":false,"fork":false,"pushed_at":"2026-05-09T21:49:22.000Z","size":574,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-09T23:27:33.003Z","etag":null,"topics":["api","background-removal","image-processing","python","rembg","serverless","vercel"],"latest_commit_sha":null,"homepage":"https://shnwazdev-rembgapi.vercel.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shnwazdeveloper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-09T21:11:57.000Z","updated_at":"2026-05-09T21:49:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/shnwazdeveloper/shnwazdev-rembgapi","commit_stats":null,"previous_names":["shnwazdeveloper/rembg-api-vercel"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/shnwazdeveloper/shnwazdev-rembgapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shnwazdeveloper%2Fshnwazdev-rembgapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shnwazdeveloper%2Fshnwazdev-rembgapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shnwazdeveloper%2Fshnwazdev-rembgapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shnwazdeveloper%2Fshnwazdev-rembgapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shnwazdeveloper","download_url":"https://codeload.github.com/shnwazdeveloper/shnwazdev-rembgapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shnwazdeveloper%2Fshnwazdev-rembgapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33773782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","background-removal","image-processing","python","rembg","serverless","vercel"],"created_at":"2026-06-01T12:02:41.682Z","updated_at":"2026-06-01T12:02:42.819Z","avatar_url":"https://github.com/shnwazdeveloper.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shnwazdev-rembgapi\n\nServerless background removal API powered by [`danielgatis/rembg`](https://github.com/danielgatis/rembg).\n\nThe API is built for Vercel Python Functions and defaults to the lightweight `u2netp` model so cold starts and model downloads stay practical for serverless hosting.\n\n## Live\n\n- Website: https://shnwazdev-rembgapi.vercel.app\n- Docs: https://shnwazdev-rembgapi.vercel.app/docs/\n- Model metadata: https://shnwazdev-rembgapi.vercel.app/model\n\n## Endpoints\n\n- `GET /api` - usage and endpoint metadata\n- `GET /api/health` - health check\n- `GET /model` - model metadata and supported options\n- `GET /api/model` - model metadata and supported options\n- `POST /api/remove` - remove an image background\n- `GET /api/remove?url=https://example.com/input.jpg` - remove a background from a remote image URL\n\n## Upload an image\n\n```bash\ncurl -s -F file=@input.jpg https://shnwazdev-rembgapi.vercel.app/api/remove -o output.png\n```\n\n## Send a base64 image\n\n```bash\ncurl -s \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"image_base64\":\"data:image/png;base64,....\"}' \\\n  https://shnwazdev-rembgapi.vercel.app/api/remove \\\n  -o output.png\n```\n\n## Send an image URL\n\n```bash\ncurl -s \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"url\":\"https://example.com/input.jpg\"}' \\\n  https://shnwazdev-rembgapi.vercel.app/api/remove \\\n  -o output.png\n```\n\nFor `GET /api/remove?url=...`, URL-encode the image URL if it contains `?`, `\u0026`, spaces, or other special characters. The URL must be public and must return an `image/*` content type.\n\n## Send raw image bytes\n\n```bash\ncurl -s \\\n  -H \"Content-Type: image/png\" \\\n  --data-binary @input.png \\\n  https://shnwazdev-rembgapi.vercel.app/api/remove \\\n  -o output.png\n```\n\n## Options\n\nPass these as multipart fields, JSON keys, form fields, or query parameters:\n\n- `model`: `u2netp` or `silueta`\n- `alpha_matting`: `true` or `false`\n- `only_mask`: `true` or `false`\n- `post_process_mask`: `true` or `false`\n\n## Model metadata\n\n```bash\ncurl -s https://shnwazdev-rembgapi.vercel.app/model\n```\n\nThis returns the default model, allowed models, model descriptions, and supported processing options.\n\n## Environment variables\n\n- `REMBG_MODEL`: default model, defaults to `u2netp`\n- `ALLOWED_MODELS`: comma-separated allowed models, defaults to `u2netp,silueta`\n- `MAX_IMAGE_BYTES`: optional app-side max input image bytes; defaults to `0` which disables the app limit\n- `REQUEST_TIMEOUT_SECONDS`: remote image download timeout, defaults to `15`\n\nModels are cached in `/tmp/rembg-models` during warm function reuse.\n\n## Deploy\n\n```bash\nnpx vercel@latest\nnpx vercel@latest --prod\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshnwazdeveloper%2Fshnwazdev-rembgapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshnwazdeveloper%2Fshnwazdev-rembgapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshnwazdeveloper%2Fshnwazdev-rembgapi/lists"}