Skip to main content
Compare Feature - Compare two images side-by-side

Overview

The Compare endpoint analyzes two images side-by-side to identify similarities and differences. Perfect for quality control, change detection, and product variation analysis.

How It Works

The Compare endpoint uses AI to analyze both images and provide a detailed comparison, highlighting similarities, differences, and key changes between them.

Key Benefits

  • Change Detection: Identify differences between images quickly and accurately
  • Quality Control: Compare products, packaging, or outputs to verify consistency
  • Efficiency: Perform quality control 60% faster than manual comparison
  • Detail: Get comprehensive analysis of similarities and differences

Use Cases

Quality Control

Compare products, packaging, or outputs to verify quality standards and identify variations or defects. Example:
# Using image URLs
curl -X POST https://api.viscribe.ai/v1/images/compare \
  -H "VISCRIBE-APIKEY: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image1_url": "https://example.com/product1.jpg",
    "image2_url": "https://example.com/product2.jpg",
    "instruction": "Compare and highlight key differences"
  }'

# Or using base64 encoded images
curl -X POST https://api.viscribe.ai/v1/images/compare \
  -H "VISCRIBE-APIKEY: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image1_base64": "data:image/jpeg;base64,/9j/4AAQSkZJRg...",
    "image2_base64": "data:image/jpeg;base64,/9j/4AAQSkZJRg...",
    "instruction": "Compare and highlight key differences"
  }'

# Or mix and match (one URL, one base64)
curl -X POST https://api.viscribe.ai/v1/images/compare \
  -H "VISCRIBE-APIKEY: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image1_url": "https://example.com/product1.jpg",
    "image2_base64": "data:image/jpeg;base64,/9j/4AAQSkZJRg...",
    "instruction": "Compare and highlight key differences"
  }'

Before/After Analysis

Track changes over time, such as construction progress, product iterations, or environmental changes.

Product Variations

Compare different versions or variants of products to identify design differences.

Document Verification

Compare documents or forms to detect changes, modifications, or discrepancies.

API Reference

For detailed API documentation, see the Compare endpoint reference.