← Directory
Model gateways

OpenRouter

One API for every frontier model.


Overview

OpenRouter is the model gateway XeroHack uses by default. One key, every model, fallback routing, usage tracking. Day 0 of any project should be 'sign up for OpenRouter.'

Best for

  • Model-agnostic apps
  • Cost optimization
  • Fallback routing

Trade-offs

vs direct-apis
OpenRouter for portability; direct APIs for the last 5% of latency.

What XeroHack pre-wires

When you pick OpenRouter in the interview, the engine emits these files into your scaffold:

  • lib/ai/openrouter.ts

Coupon

No active coupon for this tool right now. Sign in to be notified when one is available.

Sign in