Prerequisites
- Node.js 18+ — verify with
node --version - A KiosAPI API key (starts with
sk-) from the Dashboard → Token Management
Usage
Troubleshooting
Authentication error
- Verify
OPENAI_API_KEYis set correctly:echo $OPENAI_API_KEY - Ensure the key starts with
sk- - Check that
apiBasein the config file matches theOPENAI_BASE_URLenvironment variable
Model not found
- Check the model name is valid on the KiosAPI models page
- Ensure the model is included in your token group