Wild West API

Anthropic TypeScript SDK with Wild West API

The TypeScript Anthropic SDK mirrors the Python one: a configurable baseURL and an authToken that goes out as a bearer header.

Base URL
https://wildwestapi.com
API key
Get one free, starts sk-ww-
Example model
outlaw-1-xploded

baseURL and authToken

TypeScript
// npm install @anthropic-ai/sdk
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  baseURL: "https://wildwestapi.com",
  authToken: "sk-ww-...",
});

const msg = await client.messages.create({
  model: "outlaw-1-xploded",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Hello" }],
});
console.log(msg.content[0].text);

Use baseURL: "https://wildwestapi.com" (no /v1) and authToken for the key. The SDK can also read ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN from the environment if you prefer not to pass them in code.

Related guides

Uncensored AI models on one key

OpenAI and Anthropic compatible, pay as you go. New to it? Start with uncensored AI, explained.