Python SDK for Vettly content moderation API
Project description
vettly
Content moderation that just works. One API for text, images, and video.
Installation
pip install vettly
Quick Start
from vettly import Vettly
client = Vettly('sk_live_...')
result = client.check(
content='User-generated text',
policy='community-safe'
)
if result.action == 'block':
# Content blocked
pass
Get Your API Key
- Sign up at vettly.dev
- Go to Dashboard → API Keys
- Create and copy your key
Features
- Text, images, video - One unified API for all content types
- Custom policies - Define thresholds in YAML
- Webhooks - Get notified when content is flagged
- Dashboard - Monitor decisions and export logs
- Deterministic - Same input, same output, every time
Response Format
{
"action": "block",
"categories": {
"hate": 0.91,
"harassment": 0.08,
"violence": 0.12
},
"flags": ["hate"],
"latency_ms": 147
}
Image Moderation
result = client.check_image(
url='https://example.com/image.jpg',
policy='strict'
)
Async Support
from vettly import AsyncVettly
async with AsyncVettly('sk_live_...') as client:
result = await client.check(
content='User content',
policy='community-safe'
)
FastAPI Example
from fastapi import FastAPI, HTTPException
from vettly import AsyncVettly
app = FastAPI()
client = AsyncVettly('sk_live_...')
@app.post("/comments")
async def create_comment(content: str):
result = await client.check(content=content, policy='community-safe')
if result.action == 'block':
raise HTTPException(403, "Content blocked")
return {"status": "ok"}
Pricing
| Plan | Price | Text | Images | Videos |
|---|---|---|---|---|
| Developer | Free | 10,000/mo | 250/mo | 100/mo |
| Starter | $29/mo | Unlimited | 5,000/mo | 2,000/mo |
| Pro | $79/mo | Unlimited | 20,000/mo | 10,000/mo |
| Enterprise | $499/mo | Unlimited | Unlimited | Unlimited |
Links
- vettly.dev - Sign up
- docs.vettly.dev - Documentation
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vettly-0.1.2.tar.gz
(7.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vettly-0.1.2.tar.gz.
File metadata
- Download URL: vettly-0.1.2.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf35ae4889f726f51de7d9e16a03456959abedcff946ec8ba2442f28d8d31299
|
|
| MD5 |
fc4b442b1d42e30203ec3fa8da94f74d
|
|
| BLAKE2b-256 |
f9ed27a8edf373bdb37e1f2aeeb28edc9712d9d3e30292e78f967dbb92a46673
|
File details
Details for the file vettly-0.1.2-py3-none-any.whl.
File metadata
- Download URL: vettly-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4ef866b37231bba6de8437f1b2649de3f369136cfd9ad860f87d93c6692d753
|
|
| MD5 |
5987fc45f6822592015dfc07644c5e28
|
|
| BLAKE2b-256 |
33e6eb0235e1a3d762a7a1e7ea81e31bcf397fc9a8572785242a422fbd751c5f
|