Track Anthropic Claude API costs with zero-code attribution in Python
Learn how to track Anthropic Claude API costs with LangSpend in Python. Works with Claude-4.5 Opus, Sonnet, and Haiku models and all the other Anthropic models.
💡 Custom Metadata: Use the meta property in customer and feature dictionaries to pass any custom properties for advanced tracking and analytics.