Bleep API
Integrate Bleep's powerful AI-driven content moderation directly into your applications. Built for scale, designed for developers.
7+
Endpoints
<100ms
Avg Response
99.9%
Uptime
REST
Architecture
Base URL
https://api.bleep.stream
Authentication
All API requests require authentication using a Bearer token. Include your API key in the Authorization header.
Authorization: Bearer YOUR_API_TOKEN
Keep your API key secure
Never expose your API key in client-side code. Use environment variables and server-side requests.
Getting an API Token
- Request access via
POST /tokenwith your credentials - Use the returned token for all subsequent requests
curl -X POST https://api.bleep.stream/token \
-d "username=YOUR_USERNAME&password=YOUR_PASSWORD"
Response Format
All moderation endpoints return a consistent JSON structure for easy integration.
{
"id": "modr-abc123",
"model": "gpt-oss:120b",
"results": [{
"flagged": true,
"categories": {
"sexual": false,
"hate": true,
"violence": false
},
"category_scores": {
"sexual": 0.02,
"hate": 0.87,
"violence": 0.12
}
}]
}
Categories
Moderation endpoints detect the following content categories:
sexual
sexual/minors
harassment
harassment/threatening
hate
hate/threatening
illicit
illicit/violent
self-harm
self-harm/intent
self-harm/instructions
violence
violence/graphic
PII Categories
Additionally, PII detection categories include:
pii/email
pii/address
pii/bod
pii/username
pii/id
pii/technical
pii/time
GPT-OSS 120B Moderation
RECOMMENDEDOur most advanced moderation model. GPT-OSS 120B provides superior context understanding and nuanced content analysis with optional reasoning transparency.
/api/predict/gpt_oss_120b_moderation
Parameters
input_text
Text content to moderate
image
Image file to analyze
enable_thinking
Enable extended reasoning for detailed analysis
Example Request
curl -X POST https://api.bleep.stream/api/predict/gpt_oss_120b_moderation \
-H "Authorization: Bearer {token}" \
-H "Content-Type: multipart/form-data" \
-F "input_text=Content to moderate" \
-F "enable_thinking=true"
Ollama Turbo Moderation
Fast and efficient moderation using optimized open source LLMs. Great balance of speed and accuracy for text and image content.
/api/predict/ollama_turbo_moderation
Parameters
input_text
Text content to moderate
image
Image file to analyze
Note: At least one of input_text or image must be provided.
Example
curl -X POST https://api.bleep.stream/api/predict/ollama_turbo_moderation \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"input_text": "Content to analyze"}'
CLIP Moderation
FASTMulti-modal moderation using OpenAI CLIP. Best for high-throughput screening of images and text with low latency requirements.
/api/predict/clip_moderation
Parameters
input_text
Text to analyze
image
Image file to analyze
Example
curl -X POST https://api.bleep.stream/api/predict/clip_moderation \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"input_text": "Quick content check"}'
Profanity Detection
Specialized DistilBERT model for detecting offensive language, toxicity, hate speech, and threats.
/api/predict/profanity_detection
Query Parameters
input_text
Text to analyze for profanity
Labels Detected
Response Format
{
"text": "your input text",
"label_scores": {
"toxic": 0.92,
"profane": 0.85,
"insult": 0.12,
"hate": 0.05,
...
}
}
Example
curl -X POST "https://api.bleep.stream/api/predict/profanity_detection?input_text=test%20message" \
-H "Authorization: Bearer {token}"
PII Detection
Detect personally identifiable information (PII) using a specialized DistilBERT model trained on PII patterns.
/api/predict/personal_detection
Query Parameters
input_text
Text to analyze for PII
Labels Detected
Response Format
{
"text": "your input text",
"label_scores": {
"EMAIL": 0.95,
"PERSON": 0.82,
"TEL": 0.03,
...
}
}
Example
curl -X POST "https://api.bleep.stream/api/predict/personal_detection?input_text=Contact%20me%20at%20test@example.com" \
-H "Authorization: Bearer {token}"
NSFW Detection
Analyze images for nudity and explicit content using ONNX-optimized detection models.
/api/predict/nsfw_detection
Form Data
image
Image file to analyze (JPEG, PNG, WebP)
Example
curl -X POST https://api.bleep.stream/api/predict/nsfw_detection \
-H "Authorization: Bearer {token}" \
-F "image=@/path/to/image.jpg"
NSFW Classification
Get detailed classification of NSFW content type for more granular filtering decisions.
/api/predict/nsfw_type
Form Data
image
Image file to classify
Example
curl -X POST https://api.bleep.stream/api/predict/nsfw_type \
-H "Authorization: Bearer {token}" \
-F "image=@/path/to/image.jpg"
Need Help?
Have questions about the API or need integration support? Our team is here to help.