Skip to main content

Overview

Agno can use TokenLab as an OpenAI-compatible model provider for agents and workflows.
Type: Agent FrameworkPrimary Path: OpenAI-compatible chat completionsSupport Confidence: Supported path

Environment

export TOKENLAB_API_KEY="sk-your-tokenlab-key"

TokenLab Model Wrapper

If your Agno version includes the TokenLab model wrapper:
from agno.agent import Agent
from agno.models.tokenlab import TokenLab

agent = Agent(model=TokenLab(id="gpt-5.4-mini"))
agent.print_response("Give me a concise project risk checklist.")
Some Agno builds also support model strings:
agent = Agent(model="tokenlab:gpt-5.4-mini")

OpenAI-Compatible Fallback

If your version does not include TokenLab yet, use Agno’s OpenAI-compatible model path with:
  • Base URL: https://api.tokenlab.sh/v1
  • API key: TOKENLAB_API_KEY
  • Model: gpt-5.4-mini

Model Suggestions

Use gpt-5.4-mini for default agents, gpt-5.4 or claude-sonnet-5 for deeper reasoning, and deepseek-v4-flash for faster loops.