Skip to main content
Curtly provides an official TypeScript and Node.js SDK (curtly) for automated two-stage token optimization: dynamic input prompt compression and Output Brevity Governor directive injection.

1. Official TypeScript / Node.js SDK

Install the package via your preferred package manager:

Quickstart Example


2. Drop-In OpenAI Client Wrapper

Optimize all OpenAI SDK calls with zero changes to your existing application code:

3. Vercel AI SDK Integration

Integrate Curtly directly into Next.js App Router route handlers:

4. Python SDK & Requests Integration

For Python backends, use the direct Curtly API client: