Connect an OpenAI-Compatible Service
Use OpenAI Compatible for OpenAI and for any provider that exposes an OpenAI-compatible chat API.
Add the service
- Open Settings and go to Services.
- Add a new service or edit an existing one.
- Set API Format to OpenAI.
- Enter a Name you will recognize.
- Keep the pre-filled Service Address for OpenAI, or replace it with your provider's address.
- Choose Address Type.
- Enter and save the Access Key.
- Add the Model ID your provider expects.
- Click Test Connection.
Opens the Service page in SpotAsk. If SpotAsk is not installed this link does nothing — open it by hand instead: SpotAsk menu bar icon → Settings... → Service, or press ⌘ + , to open Settings. Direct link: spotask://settings/provider
Address examples
Use Service Root when the provider gives you a base address:
https://api.openai.com/v1Use Full Request Address when the provider gives you the complete chat endpoint:
https://api.openai.com/v1/chat/completionsOther providers may use different paths. Copy the exact base address or full endpoint from your provider's documentation.
Get a key for OpenAI
SpotAsk pre-fills https://api.openai.com/v1. Create a key at platform.openai.com/api-keys, paste it into Access Key, and click Test Connection. The request and response fields are documented at platform.openai.com/docs/api-reference.
Add the model
The model list can be refreshed when the service uses Service Root and exposes a models endpoint. If discovery is not available, add the model manually:
- Under the service, select Add Model.
- Enter a Display Name for the model picker.
- Enter the exact Model ID the API expects.
- Choose whether answers should stream into the window.
- Select Use for Chat when ready.
After setup
Close Settings, press ⌥ + Space, and ask a question. If the connection test passes but a question fails, see Troubleshooting.
Related: Service Root vs Full Request Address, Providers & Models