Skip to main content

Classify

Classify text into your defined categories with per-category confidence scores

$0.01
per call
POST /classify AI Processing

Try It

curl Example

curl -X POST https://api.aipaygen.com/classify \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "text": "string",
  "categories": ["cat1", "cat2"]
}'

Python Example

import requests

resp = requests.post(
    "https://api.aipaygen.com/classify",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
    },
    json={
    "text": "string",
    "categories": [
        "cat1",
        "cat2"
    ]
}
)
print(resp.json())

Response Format

{
  "result": "<Classify output>",
  "_meta": {
    "endpoint": "/classify",
    "model": "claude-sonnet-4-20250514",
    "cost_usd": 0.01
  }
}

Related Tools

Sentiment
$0.01
Keywords
$0.01
Extract
$0.02

Get API Key — From $1

$0.25 trial credits free. ~40 AI calls. No subscription.

Get Started

Or install via MCP: pip install aipaygen-mcp