Not Diamond

API gatewaynot-diamond

Model router API that recommends the best LLM for each prompt; the client then calls that provider.

Provider
default
Category
Edge
Properties · 4 set by this component
propertytypevaluesrequiredkind defaultthis component
authenumnone | api-key | jwt | oauth2 | mtlsnonone▸ api-key
concurrencyLimitboolean—nofalseinherited
customRouter · component propertyboolean—nofalseinherited
idempotencyKeys · advancedboolean—nofalseinherited
instancesinteger—no—inherited
keyTtlHours · advancedinteger—no—inherited
managedboolean—nofalse▸ true
protocolenumhttp | grpc | websocket | fix | ouchnohttp▸ http
proxiesRequests · component propertyboolean—nofalseinherited
rateLimitingboolean—nofalse▸ true
requestsPerSecond · component propertyinteger—no50inherited
tlsboolean—notrueinherited
tradeoff · component propertyenumquality | cost | latencynoqualityinherited
Rules that apply · 1

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
Use it in a design
nodes:
  - { id: "not-diamond", component: "not-diamond" }
Other API gateway products · 40
API Gatewayalibaba-api-gatewayalibabacloudapi-gatewayAmazon API Gatewayaws-api-gatewayawsapi-gatewayAWS AppSync GraphQL APIaws-appsyncawsapi-gatewayAzure API Managementazure-api-managementazureapi-gatewayAI Gatewaycloudflare-ai-gatewaycloudflareapi-gatewayCloudflare API Shieldcloudflare-api-shieldcloudflareapi-gatewayMCP Server Portalcloudflare-mcp-portalcloudflareapi-gatewayCloudflare Privacy Gatewaycloudflare-privacy-gatewaycloudflareapi-gatewayGeneric API gatewayapi-gatewayapi-gatewayApache APISIXapisixapi-gatewayApollo GraphOSapollo-graphosapi-gatewayEasegresseasegressapi-gatewayEmissary-ingressemissaryapi-gatewayEnvoy Gatewayenvoy-gatewayapi-gatewayGloo Gatewayglooapi-gatewayHasurahasuraapi-gatewayHelicone AI Gatewayhelicone-gatewayapi-gatewayHigresshigressapi-gatewayKong Gatewaykongapi-gatewayKong AI Gatewaykong-ai-gatewayapi-gatewayKong Konnectkong-konnectapi-gatewayKrakenDkrakendapi-gatewayLiteLLM Proxylitellmapi-gatewayMartian Gatewaymartianapi-gatewayPortkey AI Gatewayportkeyapi-gatewayRequestyrequestyapi-gatewaySpring Cloud Gatewayspring-cloud-gatewayapi-gatewayTyk Gatewaytykapi-gatewayUnifyunify-aiapi-gatewayVercel AI Gatewayvercel-ai-gatewayapi-gatewayWSO2 API Managerwso2-api-managerapi-gatewayZuulzuulapi-gatewayApigeeapigeegcpapi-gatewayAgent Gatewaygoogle-agent-gatewaygcpapi-gatewayAPI Gatewaygoogle-api-gatewaygcpapi-gatewayApigee hybridgoogle-apigee-hybridgcpapi-gatewayCloud Endpointsgoogle-cloud-endpointsgcpapi-gatewayFirebase Data Connectgoogle-firebase-data-connectgcpapi-gatewayIBM API Connectibm-api-connectibmapi-gatewayOCI API Gatewayoci-api-gatewayociapi-gateway
Source
# yaml-language-server: $schema=../../schema/component.schema.json
# Not Diamond: model router that recommends which LLM should answer each prompt; the client then calls
# the provider itself, so prompts are not proxied. Per "Pre-trained router: Chat", the tradeoff defaults
# to quality (cost or latency are opt-in) and auth is a Not Diamond API key; per "Rate limits", every
# plan is capped at 50 requests per second.
schemaVersion: "1"
type: "component"
id: "not-diamond"
kind: "api-gateway"
provider: "default"
docs: "https://docs.notdiamond.ai/docs/quickstart-routing"
defaults:
  managed: true
  auth: "api-key"
  protocol: "http"
  rateLimiting: true
properties:
  tradeoff:
    type: "enum"
    values: ["quality", "cost", "latency"]
    default: "quality"
  proxiesRequests:
    type: "boolean"
    default: false
  requestsPerSecond:
    type: "integer"
    default: 50
  customRouter:
    type: "boolean"
    default: false

The same page as markdown, for an agent: /catalogue/components/not-diamond.md