@byokey/models
v0.2.0
Published
Model metadata registry for the BYOK Infrastructure Toolkit
Maintainers
Readme
@byokey/models
Model metadata registry for the BYOK Infrastructure Toolkit.
Contains up-to-date model information for OpenAI, Google, Anthropic, and Mistral — including context windows, pricing, and capability flags.
Installation
npm install @byokey/modelsUsage
import { ModelRegistry } from '@byokey/models';
const registry = new ModelRegistry();
// List all Google models
const models = registry.getModels('google');
models.forEach(m =>
console.log(`${m.displayName} — ${m.contextWindow} tokens — $${m.pricing?.inputPerMillion}/M input`)
);
// Get a specific model
const flash = registry.getModel('google', 'gemini-2.5-flash');
console.log(flash?.supportsVision); // true
// List all providers
const providers = registry.getProviders(); // ['openai', 'google', 'anthropic', 'mistral']Available Models (March 2026)
- Gemini 3.1 Pro (Preview), Gemini 3 Flash (Preview), Gemini 3.1 Flash Lite (Preview)
- Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.5 Flash Lite
- Gemini 2.0 Flash, Gemini 2.0 Flash Lite
OpenAI
- GPT-5.4, GPT-5.4 Mini, GPT-5.4 Nano
- GPT-4.1, GPT-4.1 Mini, GPT-4.1 Nano
- o3-mini, o1
Anthropic
- Claude Opus 4.6, Claude Sonnet 4.6, Claude Haiku 4.5
Mistral
- Mistral Small 4, Mistral Large 3, Mistral Medium 3.1
- Devstral 2, Magistral Medium/Small 1.2
- Ministral 8B, Ministral 3B
