LLM model metadata API for OpenAI, Anthropic, and xAI
Simple REST endpoints to query model metadata
// Response structure
{
"providers": {
"openai": [...],
"anthropic": [...],
"xai": [...]
}
}
openai anthropic xai
// Example: GET /api/openai/models
{
"provider": "openai",
"models": [...]
}
// 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"
}