Call Wild West API with curl
No SDK needed. Wild West API's chat completions endpoint takes an ordinary POST with a bearer key, so curl is enough to test a key or a model.
- Base URL
- https://wildwestapi.com/v1
- API key
- Get one free, starts sk-ww-
- Example model
- outlaw-1-xploded
POST /v1/chat/completions
Shell
curl https://wildwestapi.com/v1/chat/completions \ -H "Authorization: Bearer sk-ww-..." \ -H "Content-Type: application/json" \ -d '{ "model": "outlaw-1-xploded", "messages": [{"role": "user", "content": "Hello"}] }'
Add "stream": true to the body for a server-sent event stream.