> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentbase.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Get started with Agentbase's AI agents in under 2 minutes.

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](https://base.agentbase.sh/sign-up)
2. Generate your API key from the [Overview page](https://base.agentbase.sh/overview)
3. Add credits from the [Billing page](https://base.agentbase.sh/credits) (\$5 is plenty for testing)

<Tip>Sign up with your work email to get free credits automatically!</Tip>

## Step 2: Make your first call

```bash theme={null}
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

```javascript theme={null}
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

```python theme={null}
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?

<CardGroup cols={2}>
  <Card title="Built-in Tools" icon="tools" href="/build/tools">
    Discover built-in tools: web search, file processing, code execution
  </Card>

  <Card title="API Examples" icon="code" href="/api/example">
    See more integration patterns and advanced usage
  </Card>

  <Card title="Streaming & Modes" icon="bolt" href="/api/message-events">
    Learn about real-time responses and different agent modes
  </Card>

  <Card title="API Reference" icon="book" href="/api/run-agent">
    Complete endpoint documentation and parameters
  </Card>
</CardGroup>

## Need help?

* Join our [Discord community](https://discord.com/invite/KFtqf7j9fs) for support
* Check out [API examples](/api/example) for more patterns
* Visit [agentbase.sh](https://agentbase.sh) for additional resources
