Complete technical documentation for integrating Safora.io content moderation APIs into your applications.
Get up and running with Safora.io APIs in minutes
Create your account and get your API key from the dashboard
Test the API with a simple NSFW detection request
Use our SDKs or direct API calls to add content moderation
All API requests require authentication using your API key
Include your API key in the Authorization header of every request:
Security Note
Never expose your API key in client-side code. Always make API calls from your backend server.
Detect inappropriate visual content with high accuracy
Image file or URL to analyze
Confidence threshold (0.0-1.0)
Return detailed labels
Classify content type and appropriateness level
Image file or URL to analyze
Return detailed analysis
Measure content sensitivity with granular scoring
Image file or URL to analyze
Specific metrics to analyze
Multi-layered video content analysis
Video file or URL to analyze
Include audio analysis
Seconds between frame analysis
Real-time audio content moderation
Audio file or URL to analyze
Audio language (auto-detect if not specified)
Detect violence, self-harm, and dangerous content
Image file or URL to analyze
Specific harm categories to check
Official SDKs and libraries to integrate Safora.io APIs into your preferred programming language.
import { SaforaClient } from '@safora/sdk';
const client = new SaforaClient({
apiKey: 'your-api-key'
});
const result = await client.detectNSFW({
image: 'https://example.com/image.jpg'
});
console.log(result);from safora import SaforaClient
client = SaforaClient(api_key='your-api-key')
result = client.detect_nsfw(
image='https://example.com/image.jpg'
)
print(result)<?php
require_once 'vendor/autoload.php';
use Safora\SaforaClient;
$client = new SaforaClient('your-api-key');
$result = $client->detectNSFW([
'image' => 'https://example.com/image.jpg'
]);
var_dump($result);curl -X POST https://api.safora.io/v1/detect/nsfw \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"image": "https://example.com/image.jpg",
"threshold": 0.8
}'Understanding request limits and best practices
Best Practices
Standard HTTP status codes returned by the API
{
"error": {
"code": "INVALID_IMAGE",
"message": "The provided image URL is not accessible",
"details": "Please ensure the image URL is publicly accessible"
}
}Receive real-time notifications for content analysis results
{
"event": "content.analyzed",
"timestamp": "2024-01-15T10:30:00Z",
"data": {
"id": "analysis_123456",
"content_url": "https://example.com/image.jpg",
"result": {
"nsfw_probability": 0.85,
"is_nsfw": true,
"confidence": 0.92
}
}
}Our team is here to help you integrate successfully