Provider routing
Route every AI request through one operational control plane.
Map model aliases to OpenAI, Anthropic, Google, OpenRouter, or internal adapters without rewriting product code.
Unified AI API gateway for SaaS teams
One OpenAI-compatible edge for provider routing, failover, model discovery, usage telemetry, and cost control across product teams.
Routing surface
Provider routing
Map model aliases to OpenAI, Anthropic, Google, OpenRouter, or internal adapters without rewriting product code.
Failover
Centralize retry policy, timeout boundaries, provider health, and fallback choices outside the application layer.
Model discovery
Publish only the models your teams should use, with context windows, capabilities, and cost posture attached.
Cost visibility
Track model, provider, latency, and usage data where engineering teams already inspect service behavior.
Developer workflow
Register providers and model aliases in gateway configuration.
Point SDKs or backend services at the MF Gateway base URL.
Inspect health, usage, and routing behavior from one surface.
API shape
curl https://gateway.example.com/v1/chat/completions \
--header "Authorization: Bearer $MF_GATEWAY_KEY" \
--header "Content-Type: application/json" \
--data '{
"model": "fast-coder",
"messages": [
{ "role": "user", "content": "Design a provider failover policy" }
]
}' Cloudflare deployment
Build output lands in dist. The included wrangler.jsonc points Cloudflare assets at that directory for CLI deployment.
FAQ
It is a gateway layer in front of provider APIs. Teams can keep OpenAI-compatible client code while centralizing routing, credentials, and observability.
No. This site is a static Astro build designed for Cloudflare deployment. Product APIs remain in the existing services workspace.
Yes. The gateway model catalog can present stable public ids while upstream provider and model ids stay behind the routing layer.