Documentation · API 2026-07-18
One contract for AI traffic your app can trust.
Weirgate is a BYOK LLM middle tier for consumer applications. Applications choose a stable X-Feature-Id; Weirgate owns provider routing, output ceilings, metering, allowances, and operational policy. The current public contract is frozen at Weirgate-Api-Version: 2026-07-18.
Stable capabilities
Applications choose a feature ID. Weirgate owns provider routing, output ceilings, and policy.
Mock-first proof
Exercise auth, reserve, settle, typed errors, and audit evidence before any live promotion.
Scoped automation
MCP and CLI grants bind tenant, apps, tool groups, environment, scope, and expiry.
User or developer funded
Use developer BYOK or Connect OpenRouter without handing model choice to the client.
Typed public contract
Every result carries request correlation and the frozen 2026-07-18 API version.
Append-only money truth
Corrections preserve original observations and restore confirmed direct overcharges.
Evaluate safely