Copyable examples for TokenLab native endpoint families beyond generic OpenAI-compatible chat.
cp .env.example .env
export TOKENLAB_API_KEY=sk-your-tokenlab-key
npm install
npm testexamples/chat-completions.mjsexamples/responses.mjsexamples/anthropic-messages.mjsexamples/gemini-generate-content.mjsexamples/list-models.mjs
npm run verify:contract checks the live OpenAPI document for Chat Completions, Responses, Anthropic Messages, Gemini generateContent, and model discovery, then verifies the example model IDs against the public catalog. GitHub Actions repeats this check daily.
- TokenLab docs: https://docs.tokenlab.sh
- API formats: https://docs.tokenlab.sh/guides/api-formats
- Model catalog: https://api.tokenlab.sh/v1/models