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
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 URL
https://api.impact-relay.comInstall the SDK package:
npm install @anthropic-ai/sdkConfigure the client and send your first request:
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://api.impact-relay.com",
apiKey: "sk-imp-…",
});
const message = await client.messages.create({
model: "claude-sonnet-5-5",
max_tokens: 1024,
messages: [{ role: "user", content: "Explain backpressure in two sentences." }],
});
for (const block of message.content) {
if (block.type === "text") console.log(block.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.