AI Model Router API - REST + MCP, Free Tier

Dev.to / 4/11/2026

💬 OpinionDeveloper Stack & InfrastructureTools & Practical UsageModels & Research

Key Points

  • The AI Model Router API provides intelligent routing across GPT-4, Claude, and Gemini to choose the cheapest model that satisfies task quality and cost thresholds.
  • It exposes core REST endpoints including /route for routing decisions, /compare for model comparisons, and /health for health checks.
  • The service offers a free tier ($0/month, 100 requests/day) with access to core endpoints, and a Pro tier ($29/month) that unlocks all endpoints including MCP.
  • The API supports Model Context Protocol (MCP) via JSON-RPC 2.0, enabling tool discovery such as tools/list through an /mcp endpoint.
  • Users can retrieve an API key via the provided Gumroad link, and the documentation includes quick-start curl commands for initial connectivity.

AI Model Router API

Intelligent routing between GPT-4, Claude, Gemini based on task complexity and cost threshold. Auto-selects cheapest model that meets quality bar.

Quick Start

# Health check
curl https://api.lazy-mac.com/ai-model-router/health

# API info
curl https://api.lazy-mac.com/ai-model-router

Endpoints

  • /route
  • /compare
  • /health

Pricing

Plan Price Features
Free $0/mo 100 req/day, core endpoints
Pro $29/mo Unlimited, all endpoints, MCP

MCP Integration

This API supports the Model Context Protocol (JSON-RPC 2.0):

curl -X POST https://api.lazy-mac.com/ai-model-router/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"tools/list","id":1}'

Get Your API Key

Get started on Gumroad — free tier available.

Built by lazymac | All APIs