Introduction

Introduction

Welcome to Alura AI - a comprehensive cost tracking and monetization platform for AI agents. Track usage, monitor costs, and build sustainable AI businesses with automatic billing integration.

What is Alura AI?

Alura AI is a cost tracking and monetization API that enables you to:

  • Track AI usage and costs automatically from LLM calls
  • Monitor agent performance and resource consumption
  • Monetize your AI agents with built-in billing tools
  • Analyze usage patterns and optimize spending

Key Features

  • 🤖 Automatic LLM Tracking - Seamlessly track OpenAI and other LLM API calls
  • 📊 Real-time Cost Monitoring - Monitor costs as they happen
  • 💰 Monetization Tools - Built-in billing and revenue tracking
  • 📈 Usage Analytics - Detailed insights into agent performance
  • 🔐 API Key Authentication - Secure access with API keys
  • 🎯 Agent & Customer Tracking - Organize usage by agents and customers
  • 📡 Signal Tracking - Track custom events and outcomes

Quick Start

from alura import Alura, AluraOpenAI
from openai import OpenAI
 
# Initialize clients
alura = Alura(api_key="your-api-key")
openai_client = OpenAI(api_key="your-openai-key")
alura_openai = AluraOpenAI(openai_client, alura)
 
# All calls within trace() are automatically tracked
with alura.trace(customer_id="cust-123", agent_id="my-chatbot"):
    response = alura_openai.chat.completions.create(
        model="gpt-4",
        messages=[{"role": "user", "content": "Hello!"}]
    )

Next Steps