Skip to main content

Overview

Most chat apps can connect through their OpenAI-compatible settings. Enter https://api.tokenlab.sh/v1 as the Base URL, paste a TokenLab API key, and choose a current chat model ID.
These settings use Chat Completions. Coding tools that require Responses or another API format have separate integration guides.

Supported Applications

Default Connection Values

If an app asks for a full endpoint URL instead of a base URL, use:
  • Chat Completions: https://api.tokenlab.sh/v1/chat/completions

Example App Setups

Self-hosted LobeChat
LobeChat Cloud
  1. Open SettingsAI Service Provider
  2. Select OpenAI
  3. Enter your TokenLab API key
  4. Set the custom endpoint to https://api.tokenlab.sh/v1

Choose a Model

Copy a current chat model ID from the Models page. Capabilities, context limits, and prices can change, so do not keep a static model list in setup instructions.

Tips

Most apps are easier to configure and less fragile when you provide https://api.tokenlab.sh/v1 as a base URL instead of a full endpoint URL.
Compare a few current models on the same conversations before choosing a default.
General chat apps and coding agents often need different endpoint behavior. Keep Codex/Cursor-style tools on their dedicated integration pages.

Troubleshooting

  • Verify the base URL is exactly https://api.tokenlab.sh/v1
  • Remove trailing slashes if the app auto-appends paths
  • If the app wants a full endpoint URL, use https://api.tokenlab.sh/v1/chat/completions
  • Double-check your API key
  • Confirm the key is active in TokenLab dashboard
  • Make sure there are no extra spaces or line breaks
  • Verify the model name exactly
  • Copy the exact model ID from the TokenLab Models page
  • Check that the model supports Chat Completions