Use Wild West API through LiteLLM
LiteLLM reaches any OpenAI-compatible endpoint with an openai/ model prefix and an api_base. It splits the model string at the first slash only, so a Wild West API id with its own slash survives.
- Base URL
- https://wildwestapi.com/v1
- API key
- Get one free, starts sk-ww-
- Example model
- outlaw-1-xploded
The SDK
Python
# pip install litellm from litellm import completion resp = completion( model="openai/outlaw-1-xploded", api_key="sk-ww-...", api_base="https://wildwestapi.com/v1", messages=[{"role": "user", "content": "Hello"}], ) print(resp.choices[0].message.content)
The openai/ prefix tells LiteLLM to use the OpenAI-compatible path; the rest of the string, slash and all, is passed through as the model id.
The Proxy
In the LiteLLM Proxy config.yaml:
YAML
model_list: - model_name: deepseek-chat litellm_params: model: openai/outlaw-1-xploded api_base: https://wildwestapi.com/v1 api_key: os.environ/WILDWEST_API_KEY
api_base must end in /v1. Wild West API has no embeddings endpoint, so do not route embedding models through it.