Getting Started
Installation
Install the PromptEval SDK and configure your environment.
Node.js / TypeScript
Requires Node.js 18 or later.
npm
yarn
pnpm
Python
Requires Python 3.9 or later.
pip
uv
API key
Create a key in the Dashboard under Project → API Keys. Keys are project-scoped — create one per environment (dev/staging/prod).
.env
Never commit your API key to version control. The SDK reads PROMPTEVAL_API_KEY from the environment automatically; you can also pass it explicitly.
Initializing the client
TypeScript
client.ts
Python
client.py
Version pinning
Pin the SDK version in production to avoid unexpected behavior from updates.
package.json
Custom base URL
If you're running PromptEval behind a corporate proxy or on a self-hosted deployment, you can override the base URL:
client.ts
Verify the setup
ping.ts