docs / overview

Synthr Documentation

Everything you need to integrate, configure, and scale Synthr in your application. Browse by topic or start with the quickstart below.

Installation

terminal
$ npm install @synthr/sdk

Basic usage

index.ts
import { Synthr } from "@synthr/sdk"

const client = new Synthr({
  apiKey: process.env.SYNTHR_KEY
})

const result = await client.generate({
  model: "gpt-4o",
  prompt: "Explain semantic caching in one paragraph",
})

console.log(result.text)

Requirements

  • Node.js 18+ (or Deno / Bun)
  • A Synthr API key — get one free at synthr.dev
  • TypeScript 5+ recommended for full type inference