AI Inpainting API — Object Removal for Your Pipeline

The HappyHorse REST API exposes the same LaMa-powered object removal used in the editor: submit an image and mask, receive the cleaned result. Per-image credits, no subscription, about $0.0003 per call at Enterprise volume.

Why integrate object removal via API

Catalog pipelines, listing platforms and DAM workflows need cleanup to happen inline — not in a browser tab. The API gives your backend the same 1-2 second inpainting the editor uses, so cleanup becomes just another step in your processing chain.

How the API works

  1. Authenticate with an API key generated from your dashboard.
  2. Submit your image and mask to the removal endpoint.
  3. Receive the cleaned image, rebuilt by the LaMa model.
  4. Manage usage from the dashboard — remaining credits and per-call history.

Built for developers

  • Simple REST — standard HTTP + JSON, any language, any platform
  • Per-image billing — 1 credit per processed image, no monthly minimum
  • Volume pricing — about $0.0003 per image at Enterprise pack volume
  • Credits never expire — buy in bulk, consume at your own pace
  • Rate limiting — fair-use limits protect stability for every integrator

Get API access

API access is available on paid accounts. Generate keys in your dashboard, or contact us for volume commitments and custom integration support. Batch pipelines are a common starting point — see batch processing for the editor-side equivalent.

Frequently asked questions

Which model powers the API?

The same LaMa (Large Mask Inpainting) model used in the editor — an open-source model by Samsung AI Center, specialized in large-area background reconstruction.

How is API usage billed?

Per image: 1 credit per processed image. Credits come from the same packs as the editor ($0.50-$30.00) and never expire. No subscription, no monthly minimum.

Is there a free trial for the API?

New accounts get 100 free credits that work for both editor and API calls, so you can test the endpoint before purchasing credits.

What formats does the API accept?

JPG, PNG and WebP images up to 2048px, with a mask marking the areas to remove.

Try it free — 100 credits included

No subscription. No credit card required. Credits never expire.

Start Free