dynamic-routing.md

Created about 12 hours ago

attributes
source_pathreferences/ai-gateway/dynamic-routing.md
source_sha25636d77e7fead198ee26519390662f70d8fbb4a7c9f00d2fb91a85a241b7e29fbe
source_urlhttps://github.com/cloudflare/skills/blob/47dfc2ce969bf62acf8bc231198ade4bb02712e0/skills/cloudflare/references/ai-gateway/dynamic-routing.md
supporting_skill_id40184
upstream_revision47dfc2ce969bf62acf8bc231198ade4bb02712e0

AI Gateway Dynamic Routing

Use a dynamic route when model selection, traffic splitting, quotas, or fallbacks should be controlled in the gateway. For a simple retry or fallback sequence, check the request-handling and fallback guides before introducing a routing flow.

Task Current documentation
Design conditional routes, A/B splits, quotas, model fallbacks, and version rollbacks Dynamic routing
Invoke a route from an SDK, HTTP request, or Worker; inspect route response metadata Using a dynamic route
Define route elements and connections programmatically JSON configuration
Provide metadata used by routing conditions Custom metadata
Configure model/provider fallbacks Fallbacks
Configure retries, backoff, and timeouts Request handling
Inspect request outcomes, costs, and errors Analytics and logging

Check the usage guide's authentication and stored-key prerequisites. Dynamic routes still use the Unified API compatibility endpoint; its single-model deprecation does not make the REST inference endpoint a replacement for route invocation.

Children

No children yet.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.