PulseAugur
EN
LIVE 02:18:09

Photoroom uses Bifrost gateway to control LLM costs and track usage

Photoroom implemented a self-hosted gateway, Bifrost, to manage escalating costs associated with their use of OpenAI's gpt-4o-mini and Anthropic's claude-haiku-4-5-20251001 models. The gateway allows for per-customer budget caps and attribution, which helped resolve an issue where a single enterprise customer's retries caused a significant cost spike. Additionally, Bifrost's semantic caching feature reduced costs by 34% for similar caption generation tasks, though it required careful tuning to avoid incorrect responses due to prompt variations. AI

IMPACT Provides a practical solution for managing and attributing LLM API costs, crucial for businesses scaling AI services.

RANK_REASON The article describes the implementation of a specific tool (Bifrost) to manage existing LLM services, rather than a new model release or core research.

Read on dev.to — LLM tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

Photoroom uses Bifrost gateway to control LLM costs and track usage

COVERAGE [1]

  1. dev.to — LLM tag TIER_1 English(EN) · Elise Moreau ·

    Per-customer budget caps on our caption pipeline: 3 weeks with virtual keys

    <p><strong>TL;DR: We were burning around €4,200/month in vision-LLM costs across roughly 80 customers, with zero way to tell who was responsible. Bifrost virtual keys plus per-customer budgets gave us hard caps and clean attribution in a couple of days. Semantic caching saved ano…