Show HN: Drop-in replacement for the remove.bg API, which shuts down Dec 1 AirGallery launched a drop-in replacement for the remove.bg API ahead of remove.bg's December 1 shutdown, offering a remove-background endpoint at airgallery.com/functions/v1/remove-background authenticated with a Bearer developer key. AirGallery also shipped a stateless Streamable HTTP Model Context Protocol server at airgallery.com/functions/v1/mcp-server, listed in the official MCP Registry as com.airgallery/airgallery, exposing 60 tools including 27 AI image tools such as remove_background, upscale_image and text_to_image. Developer keys are scoped to read, write and ai, with AI calls deducting credits and missing-scope requests returning 403. Back to Docs https://airgallery.com/docs Developers AirGallery API & MCP Programmatic access to every AirGallery capability — image generation, gallery management, credits, and social — over both a REST API and a Model Context Protocol server. Quickstart 1. Sign in to AirGallery and visit /api-keys https://airgallery.com/api-keys to generate a developer key. Copy the ag … value — it's shown once. 2. Make sure you have credits at /credits https://airgallery.com/credits if you plan to call AI tools. 3. Call the REST API or wire the MCP server into your agent client. curl -X POST https://airgallery.com/functions/v1/remove-background \ -H "Authorization: Bearer ag YOUR API KEY" \ -H "Content-Type: application/json" \ -d '{ "image": "data:image/png;base64,iVBORw0KG…" }' Authentication Every authenticated endpoint accepts a Bearer token in the Authorization header. Two token types are supported, and both work for every protected REST endpoint and MCP tool creating, revoking and deleting API keys takes a JWT . Developer API Key Long-lived, scoped read , write , ai , revocable. Best for server-side integrations, automations, and MCP clients. Authorization: Bearer ag abc123… Supabase JWT Short-lived session token from supabase.auth . Best for first-party clients that already use Supabase Auth. Authorization: Bearer eyJhbGciOiJIUzI1NiIs… Scopes - read Browse public gallery, view profiles, read your own data. - write Save/delete artworks, update profile, follow/like. - ai Run AI tools deducts credits . Missing-scope calls return 403 with { "error": "API key missing required scope: …" } . JWT-authenticated callers always have all scopes. MCP Server AirGallery ships an MCP server Model Context Protocol over Streamable HTTP. Any MCP-compatible agent — Claude Desktop, Cursor, MCP Inspector, your own LLM app — can plug in and call the same tools that power the AirGallery UI. Listed in the official MCP Registry as com.airgallery/airgallery and on Glama: Endpoint https://airgallery.com/functions/v1/mcp-server Transport: stateless Streamable HTTP. Send JSON-RPC 2.0 messages with POST ; replies come back as JSON or a short SSE stream there is no standing GET stream . Also reachable at https://airgallery.com/mcp . Protocol versions 2025-03-26 and 2025-06-18; clients on newer versions are served 2025-06-18. Messages over 4.5 MB large base64 images, upscale image results need the same server at https://wgbduttegyrwiukjhubh.supabase.co/functions/v1/mcp-server . Available tools — 60 total Gallery 7 - list public artworks - search artworks - get artwork - list my artworks - save artwork - update artwork - delete artwork Credits 4 - get credit balance - get credit costs - get pricing tiers - buy credits Create 1 - create image AI Image Tools 27 - remove background - enhance image - upscale image - text to image - ai replace - ai expand - object remover - colorize image - cartoonize - style transfer - relight image - dslr transform - photo repair - old photo restore - ai filters - retro transform - polaroid transform - headshot generator - portrait retouch - avatar generator - meme generator - product studio - logo mockup - poster generator - aspect ratio change - generate tags - studio generate layout Profile & Social 7 - get my profile - update my profile - get user profile - follow user - unfollow user - like artwork - unlike artwork Portfolios 4 - list my portfolios - get portfolio - publish portfolio - get public portfolio White-Label 2 - list my white label galleries - get white label gallery Design Studio 8 - studio list documents - studio get document - studio create document - studio add frames - studio add elements - studio update objects - studio delete objects - studio add font List tools over raw HTTP Initialize an MCP session curl -X POST https://airgallery.com/functions/v1/mcp-server \ -H "Authorization: Bearer ag YOUR API KEY" \ -H "Content-Type: application/json" \ -H "Accept: application/json, text/event-stream" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "tools/list" }' Connect from an MCP client Add to ~/Library/Application Support/Claude/claude desktop config.json macOS or %APPDATA%\Claude\claude desktop config.json Windows , then restart Claude Desktop. { "mcpServers": { "airgallery": { "command": "npx", "args": "-y", "mcp-remote", "https://airgallery.com/functions/v1/mcp-server", "--header", "Authorization: Bearer ag YOUR API KEY" } } } REST: AI Tool Endpoints Each AI tool is its own edge function under https://airgallery.com/functions/v1/