What is BrainUs AI
Welcome to BrainUs AI - Educational content API with built-in citations for Sri Lankan curriculum
BrainUs AI is a documentation-powered educational API built for developers who need accurate, curriculum-aligned content with verifiable citations.
Philosophy
Create Your Account
Sign Up
Visit developers.brainus.lk/signup and create your free account. No credit card required.
Subscribe to a Plan
Go to Upgrade and subscribe to a Free or paid plan. The Free plan requires no credit card! You must have an active subscription before creating API keys.
Generate API Key Navigate to Dashboard → API Keys and click "Create API
Key". Copy it immediately - you won't see it again! The API key will match your current plan.
Make Your First Request
Test your API key with a simple curl command:
curl -X POST "https://api.brainus.lk/api/v1/query" \
-H "X-API-Key: $BRAINUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "What is photosynthesis?",
"store_id": "default"
}'Prefer a visual interface? Check out the API Playground to test queries interactively.
Install SDK (Optional)
For Python or JavaScript projects, install our official SDK:
# Python
pip install brainus-ai
# JavaScript/TypeScript
npm install @brainus/aiWhen to use BrainUs AI
BrainUs AI is designed for educational applications that need reliable, curriculum-aligned content.
Quick Example
Here's how simple it is to query BrainUs API:
from brainus_ai import BrainusAI
async with BrainusAI(api_key="your-api-key") as client:
result = await client.query(
query="Explain photosynthesis",
store_id="default"
)
print(result.answer)
print(result.citations)import { BrainusAI } from '@brainus/ai';
const client = new BrainusAI({ apiKey: 'your-api-key' });
const result = await client.query({
query: 'Explain photosynthesis',
storeId: 'default'
});
console.log(result.answer);
console.log(result.citations);curl -X POST "https://api.brainus.lk/api/v1/query" \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{"query": "Explain photosynthesis", "store_id": "default"}'Want to test the API instantly? Try our API Playground - no code required!
Ready to start building? Check out our Quick Start guide to make your first API call in under 5 minutes.
API Plans
Choose the plan that fits your needs:
| Feature | Free | Starter | Pro | Enterprise |
|---|---|---|---|---|
| Price | LKR 0 | LKR 999 | LKR 3,499 | LKR 14,999 |
| Requests/month | 300 | 2,000 | 10,000 | 50,000 |
| Requests/minute | 10 | 20 | 60 | 200 |
| Custom Knowledge Bases | ❌ | ❌ | ❌ | ✅ |
| Analytics | Basic | Standard | Advanced | Custom |
| Support | Community | Priority Email | Dedicated + SLA | |
| Webhooks | ❌ | ❌ | ✅ | ✅ |
All plans include the same features - only rate limits differ. Start with Free and upgrade as you grow!
Popular Resources
Quick Start
Make your first API call in under 5 minutes
Authentication
Learn how to securely manage API keys
API Reference
Complete endpoint documentation
Code Examples
Full examples in Python and JavaScript
SDKs
Official Python and JavaScript SDKs
Comparisons
How BrainUs AI compares to alternatives
Need Help?
New here? We welcome your questions and feedback!
- Browse our comprehensive documentation
- Join our Discord community
- Email us at developers@brainus.lk
- Report issues on GitHub
If you find anything confusing, please give your feedback!
Join our Discord community for real-time help and discussions with other developers!