Back to Docs
Quick Start
Get up and running with Bait Al-Aman in under 5 minutes.
1
Create an Account
Sign up for a free account to get started. No credit card required.
Create Account2
Get Your API Key
Navigate to Settings → API Keys and create a new API key. Keep this safe!
# Your API Key
ba_live_xxxxxxxxxxxxxxxxxxxx3
Make Your First Request
Use the gateway endpoint to proxy requests to any AI provider:
cURL
curl -X POST https://api.baitalaman.dev/v1/chat/completions \
-H "Authorization: Bearer ba_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'4
Create an Agent
Build an AI agent with tools and memory:
JavaScript
const agent = await fetch('/api/agents', {
method: 'POST',
headers: {
'Authorization': 'Bearer ba_live_xxx',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'My Assistant',
model: 'gpt-4o',
systemPrompt: 'You are a helpful assistant.',
tools: ['web_search', 'calculator']
})
});5
Monitor in Dashboard
View all your requests, agent runs, and security incidents in real-time.
Open Dashboard