The Pezzo client is an NPM package that allows you to easily integrate your application with Pezzo. The client was built with TypeScript and is type-safe.
You only need to initialize the Pezzo client once, and then you can use it throughout your application.
Pezzo automatically looks for the following environment variables:
PEZZO_API_KEY: Your Pezzo API key
PEZZO_PROJECT_ID: Your Pezzo project ID
PEZZO_ENVIRONMENT: The environment you want to use (e.g. Production, which is the default environment created by Pezzo)
Variables found will be used automatically for configuration.
Copy
Ask AI
import { Pezzo, PezzoOpenAI } from "@pezzo/client";// Initialize the Pezzo client and export itexport const pezzo = new Pezzo();// Initialize PezzoOpenAI and export itexport const openai = new PezzoOpenAI(pezzo);