Quick Start Guide

← Back to Home

Get started with LangSpend Python SDK in minutes

Get up and running with LangSpend in just a few minutes.

1. Install the SDK

Choose your package manager

Using pip (recommended):

terminal

Using uv (fast alternative):

terminal

Install uv first: pip install uv

2. Get Your API Key

Sign up at app.langspend.com to get your free API key.

Your API key will look something like lsp_your_api_key.

3. Wrap Your LLM Client

OpenAI Example

setup.py

4. Start Tracking

Make your first tracked call

example.py