Caching is not a discount: the real cost structure of Claude and GPT prompt caching
Caching splits a prompt prefix into three prices — normal input, cache write, cache read. You only start saving on the second reuse, and one channel switch on a gateway can reset your hit rate to zero.
What is an AI API relay? The full path of one request to Claude and GPT
A relay is not just a proxy. Auth, routing, rewriting, retries, billing and logging — six gates per request. Here is why changing one base_url line is enough to switch models.