Model Catalog
Query model specs, estimate costs, and find the right model.
Model Shortcuts
Section titled “Model Shortcuts”| Alias | Full Model |
|---|---|
gpt5 | openai:gpt-5.2 (latest flagship) |
gpt5.2 | openai:gpt-5.2 |
gpt5.1 | openai:gpt-5.1 |
gpt5-mini | openai:gpt-5-mini |
gpt5-nano | openai:gpt-5-nano |
o1 | openai:o1 |
o3 | openai:o3 |
sonnet | anthropic:claude-sonnet-4-5 |
haiku | anthropic:claude-haiku-4-5 |
opus | anthropic:claude-opus-4-5 |
flash | gemini:gemini-2.5-flash |
flash-lite | gemini:gemini-2.5-flash-lite |
pro | gemini:gemini-3-pro-preview |
Model Registry API
Section titled “Model Registry API”const client = new LLMist();const registry = client.modelRegistry;
// Get model specconst spec = registry.getModelSpec('gpt-5');console.log(spec.displayName); // "GPT-5"console.log(spec.contextWindow); // 272000console.log(spec.pricing.input); // 1.25 (per 1M tokens)
// List modelsconst all = registry.listModels();const openai = registry.listModels('openai');Cost Estimation
Section titled “Cost Estimation”const cost = registry.estimateCost('gpt-5', 10_000, 2_000);
console.log(cost.inputCost); // $0.0125console.log(cost.outputCost); // $0.020console.log(cost.totalCost); // $0.0325Token Counting
Section titled “Token Counting”const messages = [ { role: 'system', content: 'You are helpful' }, { role: 'user', content: 'Hello!' },];
const tokens = await client.countTokens('openai:gpt-5', messages);const cost = registry.estimateCost('gpt-5', tokens, 1000);Feature Queries
Section titled “Feature Queries”const hasVision = registry.supportsFeature('gpt-5', 'vision');const visionModels = registry.getModelsByFeature('vision');Available features: streaming, functionCalling, vision, reasoning, structuredOutputs, fineTuning
Find Cheapest Model
Section titled “Find Cheapest Model”const cheapest = registry.getCheapestModel(10_000, 2_000);console.log(cheapest.modelId);See Also
Section titled “See Also”- Custom Models - Register your own models
- Providers Guide - Provider configuration