VerifyAI Python SDK

Add AI-powered photo verification to your Python application. Full async support, type hints throughout, and ready-made integrations for Flask and Django.

Quick Start

1. Install

bash
pip install verifyai

2. Use

python
from verifyai import VerifyAI

client = VerifyAI(api_key="vi_live_...")

result = client.verify(
    image_path="photo.jpg",
    policy="scooter_parking",
)

if result.is_compliant:
    print(f"Verified: {result.verification_id}")
else:
    print(f"Issue: {result.feedback}")
    for violation in result.violations:
        print(f"  - {violation.type}: {violation.description}")

Features

Async Support

Full async/await API with AsyncVerifyAI client. Works with asyncio, FastAPI, and any ASGI framework.

Type Hints

Complete type annotations for all methods and response models. Full compatibility with mypy and pyright.

Flask & Django

Pre-built integrations for Flask and Django. Middleware, decorators, and view helpers included.

Batch Processing

Verify multiple images in a single call with automatic concurrency management and progress callbacks.

Automatic Retries

Built-in retry logic with exponential backoff for transient failures. Configurable retry policies.

Streaming Results

Stream verification results as they complete for large batches. Ideal for pipeline processing.

Code Examples

Requirements

  • Python 3.9 or higher
  • VerifyAI API key (free sandbox available)
  • httpx (installed automatically as dependency)
  • Pillow (optional, for local image preprocessing)

Frequently Asked Questions

Start Building with Python

Install the SDK and verify your first image in under a minute.

Get in Touch

Questions about pricing, integrations, or custom deployments? We'd love to hear from you.