tokenx

Fast and lightweight token estimation for any LLM without requiring a full tokenizer

ollama-ai-provider-v2

Use Ollama with the Vercel AI SDK, implementing the official Ollama API. This provider has minimal dependencies and is web-compatible out of the box.