Skip to content
Sign in

API and SDKs

SDKs

Use the official OpenAI SDK, Anthropic SDK, Google GenAI SDK, Vercel AI SDK, and LangChain in TypeScript and Python.

Impact works directly with official vendor and framework SDKs — no custom wrapper package needed. Point the client's Base URL at Impact, pass your sk-imp-… key, and call any model with the SDK you already know.

Choose an SDK

Language

Language

Which API key should it use?

Loading your keys

Quickstart

Requires Node.js 18+ (npm comes with it). Replace claude-sonnet-5-5 with any language model ID from Models.

Base URLhttps://api.impact-relay.com

Install the SDK package:

Terminal
npm install @google/genai

Configure the client and send your first request:

quickstart.ts
import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({
  apiKey: "sk-imp-…",
  httpOptions: { baseUrl: "https://api.impact-relay.com" },
});

const response = await ai.models.generateContent({
  model: "claude-sonnet-5-5",
  contents: "Explain backpressure in two sentences.",
});

console.log(response.text);

For the raw HTTP requests and responses of each wire format, see Chat Completions, Messages and generateContent, and browse Models for every model ID, context window, and price.