Martian Gateway
API gatewaymartian
OpenAI- and Anthropic-compatible API to many models with usage tracking, from the Martian AI lab.
- Provider
- default
- Kind
- API gateway
- Category
- Edge
- Official docs
- https://docs.withmartian.com/gateway
- Also known as
- Martian Model Router
| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| auth | enum | none | api-key | jwt | oauth2 | mtls | no | none | ▸ api-key |
| autoRouting | boolean | — | no | false | inherited |
| concurrencyLimit | boolean | — | no | false | inherited |
| fallbacks | boolean | — | no | false | inherited |
| idempotencyKeys | boolean | — | no | false | inherited |
| instances | integer | — | no | — | inherited |
| keyTtlHours | integer | — | no | — | inherited |
| managed | boolean | — | no | false | ▸ true |
| protocol | enum | http | grpc | websocket | fix | ouch | no | http | ▸ http |
| rateLimiting | boolean | — | no | false | inherited |
| tls | boolean | — | no | true | ▸ true |
Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.
sync-chain-too-deep
Every consecutive synchronous hop from this entry point spends part of the stated p95 latency budget, and the chain's failures multiply. More than three hops is a budget nobody is tracking.
- — all of these hold:
- — the design requirement `latency.p95Ms` has a value
- — the longest chain of synchronous calls starting at the node is more than 3 hops long
nodes:
- { id: "martian", component: "martian" }API Gatewayalibaba-api-gatewayAmazon API Gatewayaws-api-gatewayAWS AppSync GraphQL APIaws-appsyncAzure API Managementazure-api-managementAI Gatewaycloudflare-ai-gatewayCloudflare API Shieldcloudflare-api-shieldMCP Server Portalcloudflare-mcp-portalCloudflare Privacy Gatewaycloudflare-privacy-gatewayGeneric API gatewayapi-gatewayApache APISIXapisixApollo GraphOSapollo-graphosEasegresseasegressEmissary-ingressemissaryEnvoy Gatewayenvoy-gatewayGloo GatewayglooHasurahasuraHelicone AI Gatewayhelicone-gatewayHigresshigressKong GatewaykongKong AI Gatewaykong-ai-gatewayKong Konnectkong-konnectKrakenDkrakendLiteLLM ProxylitellmNot Diamondnot-diamondPortkey AI GatewayportkeyRequestyrequestySpring Cloud Gatewayspring-cloud-gatewayTyk GatewaytykUnifyunify-aiVercel AI Gatewayvercel-ai-gatewayWSO2 API Managerwso2-api-managerZuulzuulApigeeapigeeAgent Gatewaygoogle-agent-gatewayAPI Gatewaygoogle-api-gatewayApigee hybridgoogle-apigee-hybridCloud Endpointsgoogle-cloud-endpointsFirebase Data Connectgoogle-firebase-data-connectIBM API Connectibm-api-connectOCI API Gatewayoci-api-gateway
# yaml-language-server: $schema=../../schema/component.schema.json # Martian Gateway: OpenAI- and Anthropic-compatible API to 200+ models with usage tracking; it replaced the # earlier Martian Model Router, whose docs now return 404. Per "Gateway - Martian Documentation" and the # API reference, calls go to https://api.withmartian.com/v1 with a Bearer API key and the model is named # explicitly in the request; no automatic per-prompt routing or fallback is documented any more. schemaVersion: "1" type: "component" id: "martian" kind: "api-gateway" provider: "default" docs: "https://docs.withmartian.com/gateway" aliases: ["Martian Model Router"] defaults: managed: true auth: "api-key" protocol: "http" tls: true properties: autoRouting: type: "boolean" default: false fallbacks: type: "boolean" default: false