Glossary / Architecture
Edge function
An edge function runs small code close to the user, useful for streaming, key injection and rate limiting without a full server.
Definition
An edge function runs small code close to the user, useful for streaming, key injection and rate limiting without a full server.
What it changes in your bill
Edge functions cut latency but have short execution limits, so long generations must still stream from origin. They are best used to guard and route, not to hold open connections.
How to check it yourself
Measure time to first byte with and without the edge hop for users far from your origin.
Rule of thumb: compare providers on cost per completed task, not on the headline price per million tokens.
Related terms
Try it on Tapix AI
100+ models behind one OpenAI-compatible endpoint. Prepaid from $1, no monthly minimum, live prices per model.
Get a key and run one real call See live prices