SnapEditDocs
API Reference

SnapEdit - AI Image Processing API

v1.0.0

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!

Authentication
Include api-key: YOUR_API_KEY header
API Playground
Test endpoints live in your browser
Support
Need help? Reach out and our team will get back to you.

Quickstart — First API call in 60 seconds

3 steps
1

Get your API key

Sign up at the dashboard and create an API key. Takes 10 seconds.

2

Make your first API call

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"
3

Get your result

Every image endpoint returns OpenAI-compatible format. Your result URL is at data[0].url. No base64 decoding needed.

json
{
  "created": 1745827200,
  "data": [
    { "url": "https://outputs.snapapi.ai/outputs/abc123.png" }
  ]
}

More examples

# 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"

Rate Limits

60 requests/minute per API key. Check x-ratelimit-remaining-requests header to track usage. On 429, wait for retry-after seconds.

Image Input

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

LLM-Friendly Documentation

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:

  • llms.txt a lightweight sitemap that lists all documentation pages.
  • llms-full.txt the full documentation in markdown format. (Note: this may exceed your model’s context window.)

Additionally, any page can be accessed as Markdown by appending .md to the URL. For example: /en/docs/detectText /en/docs/detectText.md.