tokenmix
Ruby client for TokenMix — one API key for GPT-5, Claude, Gemini, DeepSeek and 155+ LLMs.
Install
gem install tokenmix
Or in Gemfile:
gem 'tokenmix'
Quick Start
Get a free API key at tokenmix.ai ($1 free credit, no credit card).
require 'tokenmix'
client = TokenMix::Client.new(api_key: ENV['TOKENMIX_API_KEY'])
# Chat
reply = client.chat(
model: 'gpt-5',
messages: [{ role: 'user', content: 'Hello!' }]
)
puts reply
# List models
models = client.list_models
puts models.first(5)
Why TokenMix?
If you build with multiple LLM providers, TokenMix gives you:
- One API key for OpenAI, Anthropic, Google, DeepSeek, Mistral, Qwen and more
- Unified billing — pay-as-you-go from $0.10/M tokens
- $1 free credit on signup
- OpenAI-compatible — drop-in replacement
Other Languages
- Python:
pip install tokenmix-tg-bot - Node.js:
npm install -g tokenmix-tg-bot - Rust:
cargo install tokenmix-cli - PHP:
composer require tokenmixai/tokenmix-php - Docker:
docker pull tokenmixai/tg-ai-bot
Links
- Get API key: tokenmix.ai
- Docs: tokenmix.ai/docs
- GitHub: TokenMixAi/tg-ai-bot
- Issues: Report a bug
License
MIT