Skip to main content
Classify Feature - Classify images into predefined categories

Overview

The Classify endpoint categorizes images into predefined categories. It supports zero-shot learning, meaning you can classify images into custom categories without training data.

How It Works

The Classify endpoint uses advanced AI models to understand image content and match it to your defined categories. You provide category names and descriptions, and the API returns the best match with confidence scores and reasoning.

Key Benefits

  • Organization: Automatically categorize and organize large image libraries
  • Efficiency: Reduce manual sorting by 90%
  • Flexibility: Use zero-shot learning to classify into any custom categories
  • Scalability: Process thousands of images quickly and consistently

Use Cases

Content Management

Automatically categorize and organize large image libraries into predefined categories, eliminating manual sorting and improving content management. Example:
# Using image URL
curl -X POST https://api.viscribe.ai/v1/images/classify \
  -H "VISCRIBE-APIKEY: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_url": "https://example.com/product.jpg",
    "classes": ["food", "fashion", "tech", "home"]
  }'

# Or using base64 encoded image
curl -X POST https://api.viscribe.ai/v1/images/classify \
  -H "VISCRIBE-APIKEY: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_base64": "data:image/jpeg;base64,/9j/4AAQSkZJRg...",
    "classes": ["food", "fashion", "tech", "home"]
  }'

Content Moderation

Classify images to identify inappropriate content, spam, or content that violates guidelines.

Product Categorization

Automatically categorize products in e-commerce platforms into the correct product categories.

API Reference

For detailed API documentation, see the Classify endpoint reference.