Hi developers, welcome to the SnapEdit API! SnapEdit gives you a comprehensive suite of AI-powered image processing endpoints — object removal, image enhancement, background removal, virtual try-on, image editing, and more — all behind one simple, consistent REST interface. The guides below walk you through authentication, your first request, and each endpoint in detail. We hope you find the right AI capabilities for your product here. Thanks for building with us!
api-key: YOUR_API_KEY headerSign up at the dashboard and create an API key. Takes 10 seconds.
All endpoints use input_image for image input and return output_image_url — one consistent pattern.
# Option A: api-key header
curl -X POST "https://api.snapapi.ai/v1/images/remove-background" \
-H "api-key: sk-snap-xxxxx" \
-F "input_image=@photo.jpg"
# Option B: Bearer token (OpenAI-compatible)
curl -X POST "https://api.snapapi.ai/v1/images/remove-background" \
-H "Authorization: Bearer sk-snap-xxxxx" \
-F "input_image=@photo.jpg"Every image endpoint returns OpenAI-compatible format. Your result URL is at data[0].url. No base64 decoding needed.
{
"created": 1745827200,
"data": [
{ "url": "https://outputs.snapapi.ai/outputs/abc123.png" }
]
}# Edit an image with AI prompt
curl -X POST "https://api.snapapi.ai/v1/images/edits" \
-H "api-key: YOUR_API_KEY" \
-F "input_image=@photo.jpg" \
-F "prompt=Transform to anime style" \
-F "mode=editing"60 requests/minute per API key. Check x-ratelimit-remaining-requests header to track usage. On 429, wait for retry-after seconds.
Most endpoints accept image files or image URLs through fields such as `input_image`, `model_image`, and `cloth_image`. Mask inputs use `input_mask`.
Need help? SnapAPI Support
Our documentation is also available in an LLM-friendly format, making it easy to integrate with large language models and AI tools. You can access it in two ways:
Additionally, any page can be accessed as Markdown by appending .md to the URL. For example: /en/docs/detectText → /en/docs/detectText.md.