Wild West API

OpenAI Python SDK with Wild West API

Wild West API speaks the OpenAI chat-completions dialect, so the official openai Python client works with a base URL change and nothing else.

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

base_url and api_key

Set base_url to https://wildwestapi.com/v1 (the /v1 is part of it) and api_key to your key. The client also reads OPENAI_BASE_URL and OPENAI_API_KEY from the environment.

Python
# pip install openai
from openai import OpenAI

client = OpenAI(
    base_url="https://wildwestapi.com/v1",
    api_key="sk-ww-...",
)

resp = client.chat.completions.create(
    model="outlaw-1-xploded",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
Chat completions only Wild West API serves /v1/chat/completions and /v1/models. It does not serve /v1/responses, /v1/completions or /v1/embeddings, so stay on the chat.completions call.

Related guides

Uncensored AI models on one key

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