# PixelMagic > All-in-one AI image studio: generate images from text, edit with AI, upscale to 4K, remove backgrounds, translate on-image text, and split images into object layers. Free to start, usage-based credits, and a public REST API. PixelMagic runs a mix of self-hosted (MageFlow, FLUX Schnell, Real-ESRGAN) and partner models. Public endpoints are under https://pixelmagic.studio/api/v1 and authenticate with a Bearer API key created from the dashboard. All API responses are PNG unless noted. Requests are rate-limited per API key per minute by plan: Free 5, Starter 20, Pro 60, Business 200 (HTTP 429 when exceeded). ## Tools - [Generate](https://pixelmagic.studio/generate): Text-to-image from a prompt. Models incl. Mage-Flow Turbo and FLUX. - [AI Edit](https://pixelmagic.studio/edit): Instruction-based image editing; brush a region, add text on the image, or attach reference images and combine them ("put the jacket from image 2 on the person in image 1"). - [Upscale](https://pixelmagic.studio/upscale): Enhance and upscale images up to 4K (Real-ESRGAN and partner models). - [Remove Background](https://pixelmagic.studio/remove-background): Pixel-perfect background removal, including hair, glass and text edges. - [Localize](https://pixelmagic.studio/localize): Detect and translate text baked into an image, then re-render it. - [Layers](https://pixelmagic.studio/layers): Split an image into separate object layers (SAM2-based). - [Remove Object](https://pixelmagic.studio/remove-object): Brush over an object to erase it; the background is rebuilt. - [Video Studio](https://pixelmagic.studio/video): Turn photos into videos with music, effects and text; karaoke lyric videos (with vocal removal), narrated explainers with AI voiceover and word-by-word captions, infographic and bar chart race videos from data/PDF/spreadsheets; ready-made templates; publish to YouTube, Instagram, TikTok and more. - [Bulk](https://pixelmagic.studio/bulk): Batch-process many images at once. - [Workflows](https://pixelmagic.studio/workflow): Chain generate, edit, remove background and upscale steps across many images. ## API Base URL: https://pixelmagic.studio. Authenticate with `Authorization: Bearer ` (create a key in the dashboard). These are API endpoints, not web pages. - `POST /api/v1/generate` — JSON { model?, prompt, ...params } -> image/png - `POST /api/v1/edit` — multipart { file | image_url, prompt, model? } -> image/png. Multi-reference: add repeated `refs` parts, or JSON { image_urls: [...] } — the first image is edited, the rest are references (+1 credit each) the prompt can call "image 2", "image 3". - `POST /api/v1/upscale` — multipart { file | image_url, model?, scale? } -> image/png - `POST /api/v1/remove` — multipart { file | image_url } -> image/png (background removal) - `POST /api/v1/remove-object` — multipart { file, mask } or JSON { image_url, mask_url } -> image/png. The mask marks the area to erase (white = remove); the model inpaints behind it. - `POST /api/v1/layers` — multipart { file | image_url } -> { layers: [dataURI], count, creditsUsed }. Splits an image into transparent object cutouts (SAM2), largest first. - `POST /api/v1/localize` — multipart { file | image_url, languages, prompt?, enhance? } -> { results: [{ language, image }], creditsUsed } - `POST /api/v1/enhance` — JSON { prompt, kind? } -> { prompt }. Rewrites a prompt for better results (kind = "generate" | "edit"). Free. - `GET /api/v1/me` — -> { ok, credits, plan } - `GET /api/v1/models` (no key) — -> { models: [{ id, name, category, credits, params, reference_images }], latest_aliases }. Pass any id as `model`, or a family alias such as latest:generate:flux / latest:edit:nano-banana that always resolves to the newest model of that family. Unknown models return 400. ## MCP server An MCP server exposes the toolkit to agents like Claude and Cursor. Every tool calls the REST API above, so it inherits the same API-key auth, credit metering and per-minute rate limits. Tools: generate, edit, upscale, remove_background, remove_object, layers, localize, enhance, list_models, account, health. Image tools accept image_url (public https) or image_base64. Install: published on PyPI as `pixelmagic-mcp`; run it with uv (`uvx pixelmagic-mcp`). Claude Desktop / Cursor config: { "mcpServers": { "pixelmagic": { "command": "uvx", "args": ["pixelmagic-mcp"], "env": { "PIXELMAGIC_API_KEY": "sk_live_..." } } } } Full setup: https://pixelmagic.studio/developers ## Docs - [Developers](https://pixelmagic.studio/developers): REST API reference, authentication, rate limits and MCP setup. - [Pricing](https://pixelmagic.studio/pricing): Plans, credits and pack pricing. - [Integrations](https://pixelmagic.studio/integrations): CLI, Zapier, Make, Figma, Photoshop, GIMP, Sketch, PowerPoint, Shopify. - [Knowledge](https://pixelmagic.studio/knowledge): Guides and comparisons on AI image workflows. - [AI image model news](https://pixelmagic.studio/knowledge/ai-image-model-news): Daily news on new AI image generation and editing models, with sources. - [All AI image models](https://pixelmagic.studio/knowledge/ai-image-models): Live directory of text-to-image and image editing models, updated daily. ## Use cases - [Remove backgrounds from product photos](https://pixelmagic.studio/use-cases/product-photo-background-remover): Remove backgrounds from product photos in seconds. Clean edges on glass, labels and fine detail, white or transparent output, and bulk for whole catalogs. - [Remove backgrounds without losing hair detail](https://pixelmagic.studio/use-cases/hair-background-remover): Cut out people and pets with every strand intact. AI background removal that keeps fine hair, fur and wispy edges instead of a hard, blocky outline. - [Make your logo background transparent](https://pixelmagic.studio/use-cases/logo-background-remover): Turn a logo or text image into a transparent PNG. Keeps soft drop shadows and anti-aliased edges, so it looks clean on any color. - [Remove people from your photos](https://pixelmagic.studio/use-cases/remove-people-from-photos): Erase tourists, photobombers and passers-by from your photos. Brush over them and AI rebuilds the background, shadows and reflections included. - [Remove text and watermarks from your own images](https://pixelmagic.studio/use-cases/remove-watermark-from-image): Clean date stamps, text overlays and old watermarks from images you own. Brush over them and AI rebuilds the background seamlessly. - [Redesign any room from a single photo](https://pixelmagic.studio/use-cases/ai-interior-design): Upload a photo of a room and describe the new look. Swap furniture, materials, colors and style with AI, and compare versions side by side. - [Make a karaoke lyric video from any song](https://pixelmagic.studio/use-cases/karaoke-lyric-video-maker): Make karaoke lyric videos online: upload a song, lyrics are timed word by word and light up as they're sung. Switch to an instrumental with vocals removed. - [Turn your photos into a video with music](https://pixelmagic.studio/use-cases/photo-to-video-maker): Turn photos into a video with music, transitions, effects and text. Templates for birthdays, weddings, travel and festivals; 16:9, 9:16 or 1:1 in 1080p. - [Make a Diwali greeting video from your photos](https://pixelmagic.studio/use-cases/diwali-video-maker): Make a Diwali greeting video from your photos in minutes: festive theme, music and a Happy Diwali greeting, ready for WhatsApp status, Reels and YouTube. - [Make a birthday video with photos and music](https://pixelmagic.studio/use-cases/birthday-video-maker): Make a birthday video from photos with music, effects and a personal message. Ready-made birthday template, 1080p, share on WhatsApp, Instagram or YouTube. - [Make a bar chart race or infographic video from your data](https://pixelmagic.studio/use-cases/bar-chart-race-maker): Turn data into a bar chart race or infographic video. Paste data or drop a spreadsheet or PDF and get charts, KPIs and timelines, animated and ready to post. - [Make narrated videos with an AI voiceover and captions](https://pixelmagic.studio/use-cases/ai-voiceover-video-maker): Make narrated explainer videos with an AI voiceover and word-by-word captions. Type a script in English, Hindi, Tamil, Telugu and other Indian languages. - [White-background product photos for Amazon, Flipkart and Meesho](https://pixelmagic.studio/use-cases/amazon-flipkart-product-photos): Marketplace-ready product photos for Amazon, Flipkart and Meesho sellers: pure white background, clean edges on glass and labels, bulk for whole catalogs. - [All use cases](https://pixelmagic.studio/use-cases) ## Switching from other tools - [A remove.bg alternative that does more than cutouts](https://pixelmagic.studio/alternatives/remove-bg-alternative): A remove.bg alternative with clean edges on hair and glass, bulk batches and a simple REST API, plus AI editing and upscaling. Free to start. - [A Photoroom alternative for product photos](https://pixelmagic.studio/alternatives/photoroom-alternative): A Photoroom alternative for product photos: background removal, AI scenes, editing, upscaling and bulk workflows on one credit balance. Free to start. - [A Pixelcut alternative with an API and bulk tools](https://pixelmagic.studio/alternatives/pixelcut-alternative): A Pixelcut alternative for creators: remove backgrounds, edit with AI, erase objects, upscale and make photo videos in your browser. Free to start. - [All alternatives](https://pixelmagic.studio/alternatives) ## Guides - [Remove the Background from Product Photos](https://pixelmagic.studio/knowledge/remove-background-from-product-photos): A practical workflow for clean e-commerce product cutouts: shooting tips, transparent vs white backgrounds, shadows, and batch processing a whole catalog. - [How to Upscale Images Without Losing Quality](https://pixelmagic.studio/knowledge/how-to-upscale-images-without-losing-quality): Why classic resizing blurs images, how AI upscalers add real detail, and how to pick the right scale and model for photos, art and product shots. - [Translate Text in Images Without Redesigning](https://pixelmagic.studio/knowledge/translate-text-in-images): Localize ads, packaging and social posts into many languages while keeping the original layout, fonts and colors — and what to check before publishing. - [Best AI Image Models in 2026, Ranked by Job](https://pixelmagic.studio/knowledge/best-ai-image-models-2026): GPT Image 2, FLUX.2, Nano Banana Pro, Seedream 5, Ideogram 4 and more — which AI image model wins for product shots, text, art, editing and upscaling. - [How to Write Better AI Image Prompts](https://pixelmagic.studio/knowledge/how-to-write-better-ai-image-prompts): A simple framework — subject, action, style, context — plus lighting, composition and camera tips to get better results from any AI image generator. - [What Makes a Perfect Background Removal](https://pixelmagic.studio/knowledge/perfect-background-removal): Why hair, glass, and text trip up most background removers — and how edge refinement and true alpha keep the details that matter. ## Optional - [Terms](https://pixelmagic.studio/terms) - [Privacy](https://pixelmagic.studio/privacy) - [Refund Policy](https://pixelmagic.studio/refund) - [About](https://pixelmagic.studio/about): Who builds PixelMagic and how the tools work. - [Contact](https://pixelmagic.studio/contact)