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.
Quick Links¶
- 🚀 Quick Start Guide - Get started in minutes
- 🐍 Python SDK - Install:
pip install sonnylabs - 📦 Node.js SDK - Install:
npm install sonnylabs-nodejs - 📖 API Reference - Complete API documentation
- 🛡️ Detection Types - Learn about security features
- 💻 Code Examples - Ready-to-use code snippets
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¶
- Visit the registration page
- Confirm your email address
2. Get Your API Key¶
- Go to API Keys
- Click "Generate New API Key"
- Save your API key securely
3. Create an Analysis¶
An analysis groups API requests from your application for tracking and monitoring.
- Go to the Analysis Dashboard
- Click "Create New Analysis"
- Name it (e.g., "Customer Service Chatbot")
- Note the analysis ID from the URL or dashboard
4. Configure Environment Variables¶
Create a .env file:
Choose Your SDK¶
Python¶
View Python Documentation →Node.js¶
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"
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¶
- Quick Start - Sample chatbot walkthrough
- Python SDK - Complete Python integration guide
- Node.js SDK - Complete Node.js integration guide
- API Reference - REST API documentation
- Detection Types - Security feature details
- Code Examples - Ready-to-use code snippets
Need Help?¶
- 📧 Email: Support
- 🐛 Python Issues: GitHub
- 🐛 Node.js Issues: GitHub
- 🖥️ Dashboard: SonnyLabs Platform
Next Steps¶
- Try the Quick Start sample application
- Integrate using Python SDK or Node.js SDK
- Explore Detection Types for your use case
- Review Code Examples for common patterns