Skip to main content
JavaScript and TypeScript SDK for TypeSafe AI.

Quickstart

Install the SDK (Node.js 20 or newer):
Set TYPESAFE_API_KEY in your environment, then create and use the client:
Answer types are inferred from your questions. The package includes ESM, CommonJS, and TypeScript declarations.

Documentation

Learn what TypeSafe can do in the TypeSafe docs. See the SDK’s client and types for API options and defaults.