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

  1. Request access via POST /token with your credentials
  2. 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
POST

GPT-OSS 120B Moderation

RECOMMENDED

Our most advanced moderation model. GPT-OSS 120B provides superior context understanding and nuanced content analysis with optional reasoning transparency.

POST /api/predict/gpt_oss_120b_moderation

Parameters

input_text
string, optional

Text content to moderate

image
file, optional

Image file to analyze

enable_thinking
boolean, default: false

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"
POST

Ollama Turbo Moderation

Fast and efficient moderation using optimized open source LLMs. Great balance of speed and accuracy for text and image content.

POST /api/predict/ollama_turbo_moderation

Parameters

input_text
string, optional

Text content to moderate

image
file, optional

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"}'
POST

CLIP Moderation

FAST

Multi-modal moderation using OpenAI CLIP. Best for high-throughput screening of images and text with low latency requirements.

POST /api/predict/clip_moderation

Parameters

input_text
string, optional

Text to analyze

image
file, optional

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"}'
POST

Profanity Detection

Specialized DistilBERT model for detecting offensive language, toxicity, hate speech, and threats.

POST /api/predict/profanity_detection

Query Parameters

input_text
string, required

Text to analyze for profanity

Labels Detected

toxic profane insult hate threat sexual offensive selfharm harassment

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}"
POST

PII Detection

Detect personally identifiable information (PII) using a specialized DistilBERT model trained on PII patterns.

POST /api/predict/personal_detection

Query Parameters

input_text
string, required

Text to analyze for PII

Labels Detected

EMAIL TEL STREET CITY DOB SOCIALNUMBER CARDISSUER ACCOUNTNUM DRIVERLICENSE IDCARD PASS USERNAME URL PERSON ORGANIZATION LOCATION

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}"
POST

NSFW Detection

Analyze images for nudity and explicit content using ONNX-optimized detection models.

POST /api/predict/nsfw_detection

Form Data

image
file, required

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"
POST

NSFW Classification

Get detailed classification of NSFW content type for more granular filtering decisions.

POST /api/predict/nsfw_type

Form Data

image
file, required

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.