Skip to content

Providers

Anthropic

Use the Anthropic SDK through the native path.

client.ts
import Anthropic from "@anthropic-ai/sdk" const client = new Anthropic({  baseURL: "https://gateway.ospin.dev/anthropic",  apiKey: process.env.OSPIN_KEY,})

Messages, streaming and prompt caching are supported. Cache reads are priced from the current Anthropic rate card.