# Snapedit - AI Image Processing API > Snapedit provides a comprehensive suite of AI-powered image processing endpoints including object removal, image enhancement, background removal, virtual try-on, image editing, and more. Base URL: `https://api.snapedit.app` · API version: 1.0.0 ## Docs - [Introduction & Quickstart](https://developer.snapedit.app/en/docs): Getting started, authentication, and your first request. - [Changelog & Versioning](https://developer.snapedit.app/en/docs/changelog): API changes, releases, and deprecations. - [Full reference (Markdown)](https://developer.snapedit.app/llms-full.txt): The entire API reference inlined as one document. ## Detection - [Detect objects in image](https://developer.snapedit.app/en/docs/detect-objects): Automatically detect removable objects in an image. Use the optional `lang` parameter to choose the language of returned object class names. - [Detect text in image](https://developer.snapedit.app/en/docs/detect-text): Detect text regions and return a mask. The returned `mask` can be used as `input_mask` in the [Remove Text API](#removeText), with optional manual modifications. - [Detect wires/lines in image](https://developer.snapedit.app/en/docs/detect-wires): Detect wire, cable, and line regions and return a mask. The returned `mask` can be used as `input_mask` in the [Remove Wires API](#removeWires), with optional manual modifications. ## Removal - [Erase objects from image](https://developer.snapedit.app/en/docs/remove-objects): Remove objects from an image using a manual mask, selected detected objects, or both. To erase detected objects, first call the [Detect Objects API](#detectObjects), then provide `original_session_id` plus `mask_objects`. - [Erase text from image](https://developer.snapedit.app/en/docs/remove-text): Remove text from an image using a text mask. `input_mask` can come from the [Detect Text API](#detectText) and may be manually modified before removal. - [Erase wires/lines from image](https://developer.snapedit.app/en/docs/remove-wires): Remove wires, cables, and line objects from an image using a mask. `input_mask` can come from the [Detect Wires API](#detectWires) and may be manually modified before removal. - [Remove background from image](https://developer.snapedit.app/en/docs/remove-background): Remove the background from an image. By default, returns the foreground as an RGBA image. Set `output_type` to `mask` to return the foreground mask instead. - [Remove background from graphic image](https://developer.snapedit.app/en/docs/remove-background-graphic): Remove the background from a graphic image. This endpoint is tailored for logos, stickers, anime, cartoons, illustrations, and other non-photographic artwork. By default, returns the foreground as an RGBA image. Set `output_type` to `mask` to return the foreground mask instead. - [Remove reflection from image](https://developer.snapedit.app/en/docs/remove-reflection): Remove the reflection effect in the image to highlight the scene and main subject. - [Clean mirror in image](https://developer.snapedit.app/en/docs/clean-mirror): Clean the mirror dirty blobs and remove flash lights in the mirror. ## Enhance & Restore - [Enhance and upscale image](https://developer.snapedit.app/en/docs/enhance-pro): Upscale and enhance image resolution using AI. Supports input images with maximum width and height <= 1500 px. - [Enhance and upscale image (Pro)](https://developer.snapedit.app/en/docs/enhance-image-pro): Upscale and enhance image resolution using the strongest Snapedit enhancement model, working especially well for **person images**. Supports input images with maximum width and height <= 1500 px. - [Enhance art/cartoon image](https://developer.snapedit.app/en/docs/enhance-art-pro): Upscale and enhance art, anime, or cartoon images. Supports input images with maximum width and height <= 1500 px. - [Restore old images (Normal)](https://developer.snapedit.app/en/docs/restore-image): Restore and enhance old images, remove the scratches. - [Restore old images (Pro)](https://developer.snapedit.app/en/docs/restore-image-pro): Restore old or degraded images using Qwen-Image-Edit. This endpoint uses restore mode internally, so users do not need to provide a mode. - [Colorize old images (Normal)](https://developer.snapedit.app/en/docs/colorize-image): Colorize old images. - [Colorize old images (Pro)](https://developer.snapedit.app/en/docs/colorize-image-pro): Add color to black-and-white images using Qwen-Image-Edit. This endpoint uses colorize mode internally, so users do not need to provide a mode. - [Light restoration](https://developer.snapedit.app/en/docs/light-restore): Fix lighting issues such as underexposure, overexposure, and backlighting using Qwen-Image-Edit. This endpoint uses light restoration mode internally, so users do not need to provide a mode. - [Fix lighting for backlit images](https://developer.snapedit.app/en/docs/backlit-fix): Fix underexposed and backlit images using the Qwen image edit pipeline. - [Add flash lighting to night images](https://developer.snapedit.app/en/docs/night-flash): Add realistic flash lighting to a dark or night image while preserving image details. ## Generation - [Generate AI art from image](https://developer.snapedit.app/en/docs/generate-art-from-image): Transform a photo into AI-generated art using various styles. The style list and preview images are in this [link](https://storage.googleapis.com/assets.snapedit.app/fairyai/anime_styles_6mar25.json). - [Generate background for RGBA image](https://developer.snapedit.app/en/docs/generate-background): Generate a new background for a single RGBA input image using a text prompt. The RGB channels contain the source image and the alpha channel is used as the foreground mask. - [Generate professional headshot from image](https://developer.snapedit.app/en/docs/generate-headshot): Generate a professional headshot from a person image using Qwen-Image-Edit. An example for the prompt is "Professional headshot image of the reference subject in a studio". - [Generate cartoon or sticker from image](https://developer.snapedit.app/en/docs/generate-sticker): Generate a cartoon or sticker-style image from an input image using Qwen-Image-Edit. An example for the prompt is "Turn the characters in the image into Apple iOS-style 3D avatars". ## Editing - [Edit image with AI prompt](https://developer.snapedit.app/en/docs/edit-image): Edit an image using natural language prompts powered by the Qwen-Image-Edit model. Use `editing` for general image edits and `inpaint` when editing a selected masked region. - [Edit based on multiple input images with AI prompt](https://developer.snapedit.app/en/docs/edit-image-multi): Edit based on multiple images (up to 3) using natural language prompts powered by the Qwen-Image-Edit model. Supports multiple editing modes:
ModeDescriptionExample
editingGeneral editing promptPut the man and the dog in a stadium
## Beauty & Style - [Skin retouching](https://developer.snapedit.app/en/docs/retouch-skin): Apply natural skin retouching and enhancement to **all faces** in the image. - [Makeup transfer](https://developer.snapedit.app/en/docs/transfer-makeup): Apply makeup styles to **all faces** in the image. The style list and preview images are in this [link](https://storage.googleapis.com/assets.snapedit.app/makeup/makeup_v1_1.json). - [Change hair color](https://developer.snapedit.app/en/docs/change-hair-color): Change a person's hair color using one of 19 supported colors. Provide an RGB image and a color; no mask is required. The result is an RGB image with the same dimensions as the input. Each processed image costs 7 credits. - [Generate hairstyle](https://developer.snapedit.app/en/docs/hairstyle): Change the hairstyle in a face photo using one of the preset IDs listed in the style parameter below. - [Generate hairstyle (Pro)](https://developer.snapedit.app/en/docs/hairstyle-pro): Generate hairstyle (Pro) uses a more powerful model than Generate hairstyle to produce more realistic, visually appealing hairstyles. Choose a preset hairstyle or use a portrait reference image to guide the result. ## Virtual Try-On - [Create virtual try-on task](https://developer.snapedit.app/en/docs/create-try-on-task): Create an asynchronous virtual try-on task. Upload a model (person) image and one or two clothing images to generate the try-on result. - [Get virtual try-on task status](https://developer.snapedit.app/en/docs/get-try-on-task-status): Get the status and result URL for a virtual try-on task. - [Cancel virtual try-on task](https://developer.snapedit.app/en/docs/cancel-try-on-task): Cancel a queued or processing virtual try-on task. ## Videos - [Create remove-background video upload URL](https://developer.snapedit.app/en/docs/remove-background-video-upload): Create a upload URL for a source video. Upload the files to provided URLs with HTTP PUT before creating the task. - [Create remove-background video task](https://developer.snapedit.app/en/docs/remove-background-video-create-task): Remove the background from a video. The default `foreground` output is a transparent WebM; set `output_type=mask` for an MP4 mask. - [Get remove-background video task status](https://developer.snapedit.app/en/docs/remove-background-video-task-status): Poll until `COMPLETED` or `FAILED`; completed tasks include a signed `download_url` for the selected output type. - [Create enhance-video upload URL](https://developer.snapedit.app/en/docs/enhance-video-upload): Create a signed upload URL. Upload the file to `upload_url` with HTTP PUT before creating the task. - [Create enhance-video task](https://developer.snapedit.app/en/docs/enhance-video-create-task): Create the processing task after uploading the source file. - [Get enhance-video task status](https://developer.snapedit.app/en/docs/enhance-video-task-status): Get async task status. When complete, the response includes `download_url`. - [Create enhance-video-pro upload URL](https://developer.snapedit.app/en/docs/enhance-video-pro-upload): Create a signed upload URL for Enhance Video Pro. Upload the source video with HTTP PUT before creating a task. - [Create Enhance Video Pro task](https://developer.snapedit.app/en/docs/enhance-video-pro-create-task): Enhance and upscale a video to 2K or 4K. Set `is_preview=true` to process only the first three seconds. - [Get Enhance Video Pro task status](https://developer.snapedit.app/en/docs/enhance-video-pro-task-status): Poll until `COMPLETED` or `FAILED`; completed tasks include `download_url`. - [Create image-to-video upload URL](https://developer.snapedit.app/en/docs/image-to-video-upload): Create an image upload URL. Upload the file to provided URL with HTTP PUT before creating the task. - [Create image-to-video task](https://developer.snapedit.app/en/docs/image-to-video-create-task): Generate a video from an image and motion prompt. The output video preserves the input aspect ratio, with the longest edge limited to 1024 pixels. - [Get image-to-video task status](https://developer.snapedit.app/en/docs/image-to-video-task-status): Poll until `COMPLETED` or `FAILED`; completed tasks include `download_url`. - [Create talking-head upload URLs](https://developer.snapedit.app/en/docs/talking-head-upload): Create image and audio upload URLs. Upload the files to provided URLs with HTTP PUT before creating the task. - [Create talking-head task](https://developer.snapedit.app/en/docs/talking-head-create-task): Generate a talking-head video from a portrait image and audio file. The output video is rendered at up to 1024 pixels on the longest edge. - [Get talking-head task status](https://developer.snapedit.app/en/docs/talking-head-task-status): Poll until `COMPLETED` or `FAILED`; completed tasks include `download_url`. - [Create object-tracking video upload URL](https://developer.snapedit.app/en/docs/object-track-video-upload): Create an upload task, then upload the source video to `upload_signed_url` using HTTP PUT with `Content-Type: application/octet-stream`. The signed URL is temporary. Submit selections using [Create object-tracking video task](#objectTrackVideoCreateTask). - [Create object-tracking video task](https://developer.snapedit.app/en/docs/object-track-video-create-task): Track 1–64 selected objects through the uploaded source video to produce an aligned mask video. - [Get object-tracking video task status](https://developer.snapedit.app/en/docs/object-track-video-task-status): Poll until `COMPLETED` or `FAILED`. Status progresses from `CREATED` to `PROCESSING`, then `COMPLETED` or `FAILED`. - [Create remove-object video task inputs](https://developer.snapedit.app/en/docs/remove-object-video-upload): Create inputs for standard video object removal using either mode: - [Create remove-object video task](https://developer.snapedit.app/en/docs/remove-object-video-create-task): Remove objects from a source video using an aligned mask video. First create task inputs by reusing both tracking storage IDs or uploading source and mask videos with [Create remove-object video task inputs](#removeObjectVideoUpload). - [Get remove-object video task status](https://developer.snapedit.app/en/docs/remove-object-video-task-status): Poll until `COMPLETED` or `FAILED`. Status progresses from `CREATED` to `PROCESSING`, then `COMPLETED` or `FAILED`. Completed tasks include `download_signed_url`, a temporary signed URL for the processed video. Download or copy the result before the URL expires. Clients should tolerate additional task metadata. - [Create remove-object-pro video upload URLs](https://developer.snapedit.app/en/docs/remove-object-video-pro-upload): Prepare a source video and an aligned mask video for Pro object removal. A mask created by object tracking can be used to identify the objects to remove. - [Create remove-object-pro video task](https://developer.snapedit.app/en/docs/remove-object-video-pro-create-task): Remove masked objects from a video with high quality output. The mask video must be frame-aligned with the source video: white regions identify content to remove and black regions are preserved. - [Get remove-object-pro video task status](https://developer.snapedit.app/en/docs/remove-object-video-pro-task-status): Poll until `COMPLETED` or `FAILED`; completed tasks include `download_url`. ## Utility - [Expand image (outpaint)](https://developer.snapedit.app/en/docs/outpaint): Expand an image beyond its original boundaries. Requires both the source image and a mask indicating the expansion area. - [Get pose suggestions](https://developer.snapedit.app/en/docs/pose-suggest): Generate AI pose suggestions for a reference scene image. The input image must have a maximum edge length of **512 pixels** to achieve the best output quality.. - [Health check](https://developer.snapedit.app/en/docs/health-check): Returns the health status of all Snapedit services. No authentication required. ## Content Moderation - [Detect AI-generated image](https://developer.snapedit.app/en/docs/ai-detect): Detect whether an image is likely AI-generated. ## OpenAI SDK - [Edit/process image (OpenAI SDK)](https://developer.snapedit.app/en/docs/openai-edit): Process images using the OpenAI SDK `client.images.edit()` method. The `model` parameter determines which AI processing is applied. Use `extra_body` for model-specific fields that are not part of the standard OpenAI image edit signature.