> ## 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.

# Cost Tracking

> Monitor agent usage costs in real-time

> Every API response includes detailed cost information for real-time tracking.

<Note>
  **Looking for pricing information?** See our [Pricing Overview](/deploy/pricing) for cost ranges and monthly projections.
</Note>

## Cost Event Structure

Every API response includes an `agent_cost` event:

```json theme={null}
{
  "type": "agent_cost",
  "session": "sess_abc123",
  "cost": "0.0091",
  "balance": 49.99,
  "deductionSuccess": true,
  "lowBalance": false
}
```

## What's Next?

<CardGroup cols={3}>
  <Card title="Pricing Overview" icon="dollar-sign" href="/deploy/pricing">
    Understand cost ranges and monthly projections
  </Card>

  <Card title="API Reference" icon="code" href="/api/run-agent">
    Complete API documentation with cost parameters
  </Card>

  <Card title="System Prompts" icon="user" href="/build/system-prompts">
    Optimize agent behavior to control costs
  </Card>
</CardGroup>
