Anthropic API

Use the Anthropic Messages format through the compatible /v1/messages route.

Base URL

https://www.llmtap.dev/api

SDK setup

typescript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: process.env.LLMTAP_API_KEY,
  baseURL: "https://www.llmtap.dev/api",
});

Errors

The Anthropic-shaped response uses type and error fields. Check the API key, balance, rate limit, and model ID before retrying.