Skip to content

Welcome to SonnyLabs

SonnyLabs is an AI security platform that protects your AI applications from prompt injection attacks, PII exposure, and sensitive data leaks in real-time.

What SonnyLabs Protects Against

Threat Description Detection Type
Prompt Injection Malicious attempts to manipulate AI behavior < 200ms detection
PII Exposure Personal information in inputs/outputs Real-time identification
Sensitive Paths System file and config exposure 50+ pattern categories
Long Document Attacks Sophisticated attacks in large text Advanced analysis

Getting Started

1. Create Your Account

  1. Visit the registration page
  2. Confirm your email address

2. Get Your API Key

  1. Go to API Keys
  2. Click "Generate New API Key"
  3. Save your API key securely

3. Create an Analysis

An analysis groups API requests from your application for tracking and monitoring.

  1. Go to the Analysis Dashboard
  2. Click "Create New Analysis"
  3. Name it (e.g., "Customer Service Chatbot")
  4. Note the analysis ID from the URL or dashboard

4. Configure Environment Variables

Create a .env file:

SONNYLABS_API_TOKEN=your_api_token_here
SONNYLABS_ANALYSIS_ID=your_analysis_id_here

Choose Your SDK

Python

pip install sonnylabs
View Python Documentation →

Node.js

npm install sonnylabs-nodejs
View Node.js Documentation →

Direct API/cURL

curl -X POST "https://sonnylabs-service.onrender.com/v1/analysis/YOUR_ANALYSIS_ID" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: text/plain" \
  -d "Your text to analyze"
View API Reference →

Key Features

10,000 free requests/month
Sub-200ms response time
99.9% uptime SLA
Multi-language SDK support
GDPR/CCPA compliance tools
Real-time threat detection

Documentation Structure

Need Help?

Next Steps

  1. Try the Quick Start sample application
  2. Integrate using Python SDK or Node.js SDK
  3. Explore Detection Types for your use case
  4. Review Code Examples for common patterns