BrainUs LogoBrainUs AI

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/ai

When 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:

FeatureFreeStarterProEnterprise
PriceLKR 0LKR 999LKR 3,499LKR 14,999
Requests/month3002,00010,00050,000
Requests/minute102060200
Custom Knowledge Bases
AnalyticsBasicStandardAdvancedCustom
SupportCommunityEmailPriority EmailDedicated + SLA
Webhooks

All plans include the same features - only rate limits differ. Start with Free and upgrade as you grow!

Need Help?

New here? We welcome your questions and feedback!

If you find anything confusing, please give your feedback!

Join our Discord community for real-time help and discussions with other developers!

On this page