Quickstart

Get started with the Limitry Python SDK

Get up and running with the Limitry Python SDK in minutes.

Basic Usage

import asyncio
from limitry import Client

async def main():
    async with Client(api_key="your-api-key") as client:
        # Track usage
        await client.track.track_usage(
            customer_id="customer_123",
            event_type="model_call",
            model="gpt-4",
            provider="openai",
            input_tokens=100,
            output_tokens=50,
            total_tokens=150,
        )

asyncio.run(main())

Next Steps

On this page