Track LLM costs in your Python applications with zero-code attribution
Install the LangSpend Python SDK to start tracking your LLM costs in Python applications. The SDK is published to PyPI and includes full type hints support.
uv is a fast Python package manager. Install it with: pip install uv
Get your LangSpend API key at app.langspend.com - Sign up here
The SDK is written in Python with full type hints support:
The LangSpend Python SDK includes a command-line interface for testing and debugging.
Perfect for building APIs with automatic request tracking.
Integrate with Django views and middleware for comprehensive tracking.
Lightweight integration with Flask applications and decorators.