Connecting a Third-Party OpenAI-Compatible API Gateway in SillyTavern
SillyTavern's Chat Completion mode supports custom OpenAI-compatible endpoints. The 「树新在线」 gateway can be connected using the corresponding Base URL and API Key.
Configuration Steps
Click the connection settings (plug icon), then under API select Chat Completion. Set Chat Completion Source to Custom (OpenAI-compatible), fill in Custom Endpoint as https://api.treenew.online/v1, and enter the API Key created on the https://api.treenew.online「令牌」 page. After clicking Connect, choose or manually enter the model name in the model dropdown (e.g., gpt-5.6-luna). Interface versions may differ, so adjust according to what is actually displayed.
Notes
Do not select Text Completion mode, as the endpoint uses chat/completions. If the model list fails to load automatically, manually enter the model name; refer to https://treenew.online/models/ for the exact list. Long conversation contexts will quickly accumulate token usage, so control context length and the max tokens parameter accordingly.
Verification
Use curl to verify the connection:
curl https://api.treenew.online/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "gpt-5.6-luna",
"messages": [{"role": "user", "content": "test"}]
}'