Wild West API

Set up the Vercel AI SDK with uncensored AI models

The Vercel AI SDK reaches a custom endpoint through @ai-sdk/openai-compatible. Use it rather than the plain openai provider, whose default path is the Responses API that Wild West API does not serve.

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

createOpenAICompatible

TypeScript
// npm install ai @ai-sdk/openai-compatible
import { createOpenAICompatible } from "@ai-sdk/openai-compatible";
import { generateText } from "ai";

const wildwest = createOpenAICompatible({
  name: "wildwest",
  baseURL: "https://wildwestapi.com/v1",
  apiKey: process.env.WILDWEST_API_KEY,
  includeUsage: true,
});

const { text } = await generateText({
  model: wildwest("outlaw-1-xploded"),
  prompt: "Hello",
});
console.log(text);
Why not @ai-sdk/openai The plain openai provider defaults to the Responses API, which 404s on Wild West API. If you must use it, call wildwest.chat("id") to force chat completions. The openai-compatible provider is the one to reach for.

Related guides

Uncensored AI models on one key

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