Count how many texts fall under each label
count_labelsClassify up to 1,000 texts and return only a histogram: how many landed on each label, and how many the model was unsure about. Use this when you want the shape of a corpus — what share of feedback is bugs vs praise, how many search results are relevant — without pulling a thousand individual answers into context. Use classify_texts when you need the answer per item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | 1 to 1,000 texts to classify. Results come back in the same order. | |
| labels | Yes | 2 to 100 category names. Descriptive names classify better: "urgent bug" beats "p0". Add a label like "none of these" when none-of-the-above is a real outcome. | |
| share_data | No | Synchronous classification request text, labels, instructions and model results are retained for model training and operator review in private Cloudflare storage by default. Shared requests receive double per-minute and daily classification quotas. Set share_data: false or X-Classifier-Share-Data: false to opt out and use standard limits. Share only data you have permission to contribute; do not include confidential or personal information. Redaction is best effort. Billing, spending caps and input-size limits still apply. | |
| instructions | No | Optional extra criteria, e.g. "judge only the service, ignore the food". | |
| unsure_below | No | Answers with confidence under this count as unsure. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | ||
| counts | Yes | Label -> how many texts, every label present. | |
| unsure | Yes | How many answers fell under unsure_below. | |
| unsure_below | No |