AI Pill Counter API

AI Pill Counter API for dispensing workflows.

Automate tablet and capsule counting from a tray or dispensing image. The API returns a detected count and an annotated image your application can display for review.

POST /v2/pill-counter

14-day free trial. Up to 100 API requests. No charge today.

Counting tray of cream tablets, each marked with a green detection dot, used to illustrate the AI Pill Counter API.

Quick facts

Product
AI Pill Counter
Endpoint
POST /v2/pill-counter
Auth headers
x-api-key (customer key) and x-user-uuid (stable end-user UUID) on every Cloud call
Audience
Pharmacy and healthcare software teams embedding APIs—not a consumer patient app
Trial
14-day free trial with up to 100 API requests; no charge today

Tray and dispensing images

Count from the images your pharmacy or healthcare workflow already captures.

Count + annotation

Receive numberOfPillsDetected and a predicted image with markers on detected pills.

Same Cloud key

Use your BuildLoop Cloud API key across identifier, counter, bottle, and drug details endpoints.

Counting that fits behind your UI

Counting APIs work best when your application owns the operator experience—capture guidance, confirmation, and exception handling. BuildLoop Cloud returns machine-readable results you can show beside the source image.

The counter is designed for pharmacy and healthcare software teams embedding assistive counting into existing tools, not as a standalone consumer app.

Pair with identification when you need both

Many workflows count and identify at different steps. Use the Pill Counter API for quantity, and the Pill Identifier API when you need match candidates and a DrugID for drug information retrieval.

Frequently asked questions

What does the Pill Counter API return?

A success status, the number of pills detected, and an annotated image payload as documented in the counter query guide.

Can I use the same credentials as Pill Identifier?

Yes. BuildLoop Cloud plans include the medication image APIs on the shared /v2/ endpoint with your customer API key.

How do teams use the count in their product?

Show the detected count beside the annotated image in your dispensing or verification UI so operators can confirm quickly. Use the same Cloud API key as Pill Identifier on the shared /v2/ endpoint—no separate credentials.

AI-assisted results: BuildLoop Cloud provides assistive medication image analysis and drug information. Results should be independently validated before use in clinical, dispensing, or other consequential workflows. Medical / AI Disclaimer · AI / Pill Identification Notice