Skip to main content
Get your first AI agent running in under 2 minutes.

Step 1: Get your API key

  1. Sign up at base.agentbase.sh/sign-up
  2. Generate your API key from the Overview page
  3. 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?

Need help?