Skip to main content

1. Get your API key

1

Create an account

Sign up at classer.ai with Google
2

Generate API key

Go to API Keys and create a new key
3

Copy the key

Save it somewhere safe — you’ll only see it once

2. Install the SDK

pip install classer

3. Make your first call

import classer
import os

# Set your API key
os.environ["CLASSER_API_KEY"] = "your-api-key"

# Classify text
result = classer.classify(
    source="I need help resetting my password",
    labels=["billing", "technical", "sales"]
)

print(f"Label: {result.label}")
print(f"Confidence: {result.confidence}")

4. Try other endpoints

Multi-label tagging

result = classer.tag(
    source="Breaking: Tech stocks surge amid AI boom",
    labels=["politics", "technology", "finance", "sports"],
    threshold=0.3
)

print(result.tags)  # ["technology", "finance"]

RAG relevance scoring

result = classer.match(
    source="Our return policy allows refunds within 30 days.",
    query="Can I get a refund?"
)

print(result.score)  # 0.95

Attribute scoring

result = classer.score(
    source="This is URGENT! System is down!",
    attribute="urgency"
)

print(result.score)  # 0.92

Next steps