DEV Community

2x lazymac
2x lazymac

Posted on

AI Model Router API - REST + MCP, Free Tier

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
Enter fullscreen mode Exit fullscreen mode

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}'
Enter fullscreen mode Exit fullscreen mode

Get Your API Key

Get started on Gumroad — free tier available.


Built by lazymac | All APIs

Top comments (0)