Get your first AI agent running in under 2 minutes.
Step 1: Get your API key
- Sign up at base.agentbase.sh/sign-up
- Generate your API key from the Overview page
- Add credits from the Billing page ($5 is plenty for testing)
Sign up with your work email to get free credits automatically!
Step 2: Make your first call
curl -X POST "https://api.agentbase.sh" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"message": "Write a Python function to calculate fibonacci numbers"}'
That’s it! Your agent will generate the code and explain how it works.
Step 3: Use in your application
JavaScript/Node.js
const response = await fetch('https://api.agentbase.sh', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
message: 'Generate a product description for an AI analytics tool'
})
});
const data = await response.json();
console.log(data);
Python
import requests
response = requests.post(
'https://api.agentbase.sh',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'message': 'Create a data analysis report from this CSV data'
}
)
data = response.json()
print(data)
What’s next?
Built-in Tools
Discover built-in tools: web search, file processing, code execution
API Examples
See more integration patterns and advanced usage
Streaming & Modes
Learn about real-time responses and different agent modes
API Reference
Complete endpoint documentation and parameters
Need help?