Dmotion
AI video studio- Image
- Video
- Chat
AI Flow · How a call travels
From the app to the model and back: its own key, its own budget, a relay on every box, and a backup path when the gateway is off.
Last 30 days through the gateway
01 · Per-app keys
Every app gets its own key on the LiteLLM gateway, with its own model list and its own budget. Nobody shares a key, so every token is booked to the app that spent it.
Last 30 days · Prompts and answers are never stored by the monitoring.
02 · The relay
Apps never call the gateway across the network themselves. They call the AILogic relay on their own machine. The relay tries the gateway first. If the gateway doesn't answer, it replays the request straight to the provider using its own backup key.
The app talks to the relay on the same machine.
Key, budget, routing and logging all happen at LiteLLM.
Gateway down, so the relay replays to the provider with its own backup key. The app's key never leaves the gateway path.
03 · Failure test
Gateway offline
69s
Gateway off. On purpose.
The relays notice and replay each request to the provider. The backup path takes 58 calls.
Gateway back. Every relay switches back by itself, with nobody touching anything.
156 of 156 answered. Nothing failed.
Nothing failed.
04 · Routing patterns
App · Relay · Gateway · Model
Default
Most apps work this way: relay, then gateway, with a backup path to the provider.
App · Gateway · Model
Pattern 02
Calls go straight to the gateway with a per-app key, for apps that live next to it.
App · Gateway or second URL · Model
Pattern 03
The app holds a second address of its own to fail over to.
App · Model, gateway skipped
Pattern 04
Some calls skip the gateway on purpose:
05 · The network
Four internet links come in through a dedicated firewall, then a managed gateway, switches and access points. The AI machines sit on their own isolated segment. Every server dials out to Cloudflare through its own outbound-only tunnel. People come in through Cloudflare Access single sign-on.
No addresses shown here, or anywhere on this site.
Designed, built and broken on purpose by DK.