Frameworks & Platforms
Langflow
Use TokenLab models from Langflow's OpenAI component
Overview
Langflow's OpenAI component includes an OpenAI API Base field. Point that field at TokenLab's OpenAI-compatible /v1 endpoint and use TokenLab model IDs.
OpenAI Component
- Add an OpenAI language model component.
- Set OpenAI API Key to your TokenLab key.
- Expand advanced settings.
- Set OpenAI API Base to
https://api.tokenlab.sh/v1. - Set Model Name to a TokenLab model ID.
- Connect the model output to your agent, chain, or workflow.
Values
| Field | Value |
|---|---|
| OpenAI API Base | https://api.tokenlab.sh/v1 |
| OpenAI API Key | sk-your-tokenlab-key |
| Model Name | gpt-5.4-mini |
Choose a model
Copy a current chat model ID from the Models page. The selected component must use an API format supported by that model.
If your application already uses LiteLLM Proxy, connect TokenLab through Langflow's LiteLLM Proxy component instead.