ForHosting KIT · Images

Classify images

Define the categories that matter to your product — not a generic taxonomy someone else picked — and this endpoint sorts every incoming image into one of them. It's the routing decision behind automated triage, not a list of loosely related keywords.

● StablePer request + per image$0.010
Use it from WebAPIEmailApp soonTelegram soon

Run this on our servers with your account. Free tools run in your browser; this one bills your KIT balance per the price above.

Sorting, not describing

There's a real difference between knowing what's in a photo and knowing which bucket it belongs to. A marketplace doesn't need to know an image contains 'wood, grain, brown, furniture' — it needs to know the listing belongs in 'Furniture > Tables', full stop, so it routes to the right review queue or the right storefront section. image.classify is built for that decision: one image in, one category label out, chosen from the set you define for your own catalog, workflow or moderation rules.

How you shape the categories

Call POST /image/classify with the image and your list of candidate categories — the labels can be as broad as 'indoor / outdoor' or as specific as your internal SKU taxonomy. The result comes back as the best-matching category along with how confident the match is, so downstream logic can auto-approve high-confidence calls and route the uncertain ones to a human.

Async by design, at any volume

A single product upload is one call; a catalog migration is tens of thousands. Either way the endpoint answers immediately with a task_id and classifies in the background, so your application never blocks on a slow image model. Results arrive by webhook the moment they're ready, or you pull them from a signed link that stays valid for 24 hours.

A discipline with a long lineage

Sorting images into predefined buckets is one of the oldest problems in computer vision, going back to early digit and object-recognition research decades before anyone called it 'machine learning'. What's changed is accessibility: what once required a research team and custom-trained models is now a single POST request with your own category list, no model training pipeline of your own required.

Fitting it into automation

Classification pairs naturally with a moderation or listing pipeline: classify on upload, auto-route by category, and escalate low-confidence results for manual review. Combine it with image.tag when you also want descriptive keywords alongside the category, or with image.quality upstream so garbled uploads never reach the classifier at all. Pricing is a small per-request base plus a per-image rate, both published; a failed request is retried up to three times and, if it still fails, costs nothing.

Marketplace listing routing

Classify seller photos into your category tree automatically so listings land in the right section without manual review.

Real estate photo sorting

Sort property photos into kitchen, bathroom, exterior and living room automatically to build organized listing galleries.

Insurance claim triage

Classify submitted damage photos into vehicle, property or document types to route each claim to the right queue.

Content pipeline routing

Sort incoming creative assets into your brand's own campaign categories before they reach a design or publishing team.

Can I define my own categories for image classification?

Yes — you send your own list of candidate categories with each request; the API isn't limited to a fixed generic taxonomy.

Is image classification free to use?

There's no free tier — free tiers get abused and slow everyone down. Access runs on a prepaid ForHosting KIT balance: top up from $10.00 (it never expires) and each request is charged at its published price, so a call with no balance returns HTTP 402. No subscription, no tokens, no invented credits, and a failed task is never charged.

How confident is the classification result?

Each result includes a confidence score for the chosen category, so you can set your own threshold for auto-approval versus human review.

How is image.classify priced?

A small fixed fee per request plus a per-image rate, both published on this page, with no invented tokens or credits.

What's the difference between classification and tagging?

Classification assigns one image to one category from your list; image.tag instead returns multiple descriptive keywords, ranked, with no fixed category set.

Can I classify a large batch of images?

Yes. Each call is an independent async task, so you can submit large batches and collect results as each one completes.

What happens if a classification request fails?

It's retried automatically up to three times; if it keeps failing you receive a clear error and are never billed for it.

How do results come back?

By signed webhook, which is recommended for pipelines, or through a signed result link that remains valid for 24 hours.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/image/classify

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, and soon from our app, email and Telegram.

curl -X POST https://api.kit.forhosting.com/image/classify \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image":"https://ejemplo.com/imagen.jpg"}'
{
  "image": "https://ejemplo.com/imagen.jpg"
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "image.classify",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.010
Per image$0.0575

Published price — no tokens, no invented credits. A failed task is never charged.

max_mb15
max_megapixels12
HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.
422task_failedThe task failed after 3 retries. You are never charged for it.

Read the full KIT documentation →