Model Mash

LLM model metadata API for OpenAI, Anthropic, and xAI

API Reference

Simple REST endpoints to query model metadata

GET /api/models
Returns all models grouped by provider.
// Response structure { "providers": { "openai": [...], "anthropic": [...], "xai": [...] } }
GET /api/{provider}/models
Returns all models for a specific provider.
Available providers: openai anthropic xai
// Example: GET /api/openai/models { "provider": "openai", "models": [...] }
GET /api/{provider}/models/{modelId}
Returns detailed information for a specific model.
// Example: GET /api/openai/models/gpt-4o { "id": "gpt-4o", "displayName": "GPT-4o", "provider": "openai", "contextWindow": 128000, "maxOutputTokens": 4096, "pricing": { "inputPerMillion": 5, "outputPerMillion": 15 }, "capabilities": { "text": true, "images": true, "audio": true, "video": false, "functionCalling": true }, "strengths": ["Multimodal", "Cost-efficient"], "weaknesses": ["Limited video"], "bestFor": ["Creative projects"], "releaseDate": "2024-05-13", "updatedAt": "2026-01-16 03:40:16" }