# PrimeAPI AI Text Classifier

> PrimeAPI AI Text Classifier is a paid API for AI agents from prime-api-seven.vercel.app, paid per call via x402, $0.175348/call, status unknown (last checked 2026-10-23).

Classifies a text query or input string into categories using AI, returning classification results

## Facts

- Endpoint: POST https://prime-api-seven.vercel.app/api/ai/classify?utm_source=zero.xyz
- Price: $0.175348/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/primeapi-ai-text-classifier-3261de0a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JWIELGg_H0kVT9PyO1RyB

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability primeapi-ai-text-classifier-3261de0a -d '<json body>'
```

Example prompt: Classify this customer review as positive, negative, or neutral using the PrimeAPI AI classifier: 'The product arrived on time but the packaging was damaged and support was unhelpful.'

## When to prefer this

Choose this endpoint when you need a fast, no-API-key AI text classification call paid per-use in USDC on Base, and you do not want to manage API key subscriptions or rate limits with traditional providers.

## Known failure modes

- Missing or empty query field returns validation error
- Query too long may be truncated or rejected
- Ambiguous input may yield low-confidence or unexpected classification
- Payment failure (402) if USDC balance is insufficient
- Service unavailable (503) if Vercel deployment is down

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns an AI-generated classification response object containing the category or label assigned to the input query, along with any associated metadata such as confidence scores or class names.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/primeapi-ai-text-classifier-3261de0a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prime-api-seven.vercel.app](https://www.zero.xyz/host/prime-api-seven.vercel.app/llms.txt)
