Node.js SDK

← Back to Home

Track LLM costs in your Node.js applications with zero-code attribution

Installation

Install the LangSpend Node.js SDK to start tracking your LLM costs.

Install the Package

terminal

The SDK is published to npm and includes full TypeScript support.

Get Your API Key

LangSpend is a commercial SaaS product with a free tier available.

Get your LangSpend API key at app.langspend.com - Sign up here

Environment Variables

Set up your environment variables:

.env

TypeScript Support

The SDK is written in TypeScript and includes full type definitions:

types.ts