Skip to content
smol.Docs

    Open console

    Read costs and performance

    Interpret token costs, timing boundaries and incomplete measurements without mistaking them for savings.

    1. In Insights → Costs, select one endpoint or application, the same service group and a UTC period. Start with Estimated cost over time and Request volume. A doubling in cost with a doubling in volume is a different problem from rising cost per request.
    2. Open the underlying records. Check the number of priced and unpriced attempts and the model/pricing context before comparing periods. A known subtotal is the sum of what could be priced; an unknown complete total is not zero.
    3. Inspect the token categories: uncached input, cache writes, cache reads and output are different. A cache-read token is a unit reported by a provider, not an avoided generation. More reads can coincide with higher total cost if traffic or output grew.
    4. Compare like-for-like completed work and price coverage. These are token-cost estimates for observed activity, not your provider invoice, not EC2 instance charges, and not evidence of dollars saved by an optimization.

    Open Insights → Performance with the same filters. Elapsed p50 is the median measured duration; p95 describes the slow end of the measured distribution. First content p50 is the median time to the first content from a measured gateway stream. It is not “time to first network byte” or necessarily the moment the user’s browser painted its first word.

    The measurement boundary differs by service: gateway engine duration, context provider call or context workflow. Compare within the same boundary. Read Measured / requests before interpreting percentiles; a handful of timed requests need not represent the whole workload. A gap in a chart indicates no comparable measurement, not a zero-latency interval.

    Check that the request actually streamed, that the selected activity group records first content, and that timing was captured for that period. Non-streaming, older or unobserved requests may have no first-content measurement. You cannot reconstruct it from total duration.

    For a useful comparison, keep model, workload, output limits and concurrency comparable; separate cold from warm traffic and check answer quality. Track a change before modifying the endpoint so you retain a baseline.