Skip to main content

Single source of truth for AI model availability

Project description

AI Model Registry

Your single source of truth for AI model IDs across all major providers.

Stop your code from breaking when AI providers update, rename, or deprecate models. AI Model Registry tracks the latest model IDs so your applications and agents stay up-to-date automatically.

Python Package License: MIT


🎯 Why AI Model Registry?

AI providers constantly update their models:

  • New models released (GPT-4o, Claude Sonnet 4, Gemini 2.0)
  • ⚠️ Models renamed (gpt-4-turbo-preview → gpt-4-turbo)
  • 🔄 Models deprecated (gpt-3.5-turbo → gpt-4o-mini)
  • 📅 Model IDs change (claude-3-opus-20240229 → claude-opus-4-20250514)

Without AI Model Registry:

  • ❌ Your code breaks when providers update model IDs
  • ❌ You manually track which models are available
  • ❌ You hardcode model IDs that become outdated
  • ❌ Your AI agents use deprecated models

With AI Model Registry:

  • ✅ Always use the latest recommended model IDs
  • ✅ Get notified when models are deprecated
  • ✅ Track model status (active, legacy, deprecated)
  • ✅ Prevent breaking changes in production

🚀 Quick Start

Installation

Python Package

pip install ai-model-registry

REST API

No installation needed! Use the REST API directly:

curl https://ai-model-registry.vercel.app/latest/openai

📦 Usage

Python Package

from ai_model_registry import get_latest_model, get_all_models

# Get the recommended model for a provider
model = get_latest_model("anthropic")
print(model)  # claude-sonnet-4-20250514

# Get all models with status
models = get_all_models(provider="openai", status="active")

REST API

# Get recommended model for a provider
curl https://ai-model-registry.vercel.app/latest/anthropic

# Get all models
curl https://ai-model-registry.vercel.app/models

# Get OpenAI models only
curl https://ai-model-registry.vercel.app/models?provider=openai

# Get only active models
curl https://ai-model-registry.vercel.app/models?status=active

# Get specific model details
curl https://ai-model-registry.vercel.app/models/openai/gpt-4o

🌐 API Endpoints

Endpoint Description
GET / API info and available endpoints
GET /providers List all supported providers
GET /models Get all models (optional: ?provider= ?status=)
GET /models/{provider}/{model_id} Get specific model details
GET /latest/{provider} Get recommended model for provider
GET /health Health check

Response Example

{
  "provider": "anthropic",
  "model_id": "claude-sonnet-4-20250514",
  "status": "active",
  "context": 200000,
  "updated": "2025-01-24"
}

Status Values

Status Description
active Current, recommended for use
legacy Still works, but newer version available
deprecated Will be removed soon

🎨 Supported Providers

  • OpenAI - GPT-4o, GPT-4 Turbo, o1, o3-mini
  • Anthropic - Claude 4 (Opus, Sonnet, Haiku)
  • Google - Gemini 2.0 Flash, Gemini 1.5 Pro
  • Mistral - Mistral Large, Codestral
  • Groq - Llama 3.3, Mixtral

🎯 Integration with Cursor AI

Setup .cursorrules for Your Project

Create a .cursorrules file in your project root to ensure Cursor AI always uses the latest model IDs:

# AI Model Registry Integration
# This ensures all AI API calls use current model IDs

Before writing any code that calls AI provider APIs (OpenAI, Anthropic, Google, Mistral, Groq):
1. Check ai-model-registry for the latest model IDs
2. Use: curl https://ai-model-registry.vercel.app/latest/{provider}
3. Never hardcode model IDs - always verify they are current

Providers to check:
- OpenAI: https://ai-model-registry.vercel.app/latest/openai
- Anthropic: https://ai-model-registry.vercel.app/latest/anthropic
- Google: https://ai-model-registry.vercel.app/latest/google
- Mistral: https://ai-model-registry.vercel.app/latest/mistral
- Groq: https://ai-model-registry.vercel.app/latest/groq

🌟 Pro Tip: Website Integration

Add to your documentation site or developer portal:

Create a button: "Generate .cursorrules for my project"

This button generates a .cursorrules file that:

  • Automatically configures Cursor AI to check AI Model Registry
  • Ensures developers always use current model IDs
  • Prevents API errors from deprecated models
  • Works across all AI providers

Example Implementation:

// When button clicked, generate and download .cursorrules file
function generateCursorRules() {
  const content = `# AI Model Registry Integration
Before writing code with AI APIs, check: https://ai-model-registry.vercel.app/latest/{provider}`;
  
  const blob = new Blob([content], { type: 'text/plain' });
  const url = URL.createObjectURL(blob);
  const a = document.createElement('a');
  a.href = url;
  a.download = '.cursorrules';
  a.click();
}

🔧 Development

Run Locally

# Clone the repository
git clone https://github.com/Venkatesh188/ai_model_registry.git
cd ai_model_registry

# Install dependencies
pip install -r requirements.txt

# Run the API
uvicorn api.index:app --reload

Open http://localhost:8000/docs for interactive API documentation (Swagger UI).


🤝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

How to contribute:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

What to contribute:

  • Add new AI providers (Cohere, Perplexity, etc.)
  • Update model information (new releases, deprecations)
  • Improve documentation
  • Add client libraries (JavaScript, Go, Rust, etc.)

📄 License

MIT - See LICENSE for details.


🔗 Links


Made with ❤️ for the AI developer community

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_model_registry-0.1.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_model_registry-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file ai_model_registry-0.1.1.tar.gz.

File metadata

  • Download URL: ai_model_registry-0.1.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ai_model_registry-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ca8aa2d160264de68628e82a0bd6a4443b5aa8bc50455903e38e37ad5be15582
MD5 64bb72aab3e07b35915637826eb79baa
BLAKE2b-256 2d8d6b18155ec7549b8b6c2d5d55a5023fd7d0e9a6eff76feca0feb826474506

See more details on using hashes here.

File details

Details for the file ai_model_registry-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_model_registry-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c2b037dd22033993ecef5241e5b0c199bc9946da4ad198a669189546e3e19d3b
MD5 e12e25e7b469cb8998e6ee856870dffa
BLAKE2b-256 e5604836a72810096e7ac95ce7b8edd1f219a1372e0d296faf65688016271272

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page