Skip to main content
Get per-account Serverless SLA metrics for traffic served through pass.wafer.ai. The response includes summary latency, TTFT, tokens-per-second, token counts, error counts, and a time series over the requested lookback window. Serverless metrics are scoped to the account that owns the Serverless API key. They do not expose fleet-wide backend identities, live backend gauges, or other customers’ traffic.

Run

Parameters

  • endpoint (required): pass.wafer.ai
  • range_minutes (optional): 5, 15, 30, 60, 360, 1440, 10080, 43200
  • model (optional): filter to one resolved model, such as GLM-5.1 (see GET /v1/models for live IDs)
  • default range_minutes: 60

Response Shape

Key Fields

  • rps: average requests per second across the full window
  • ttft_p50_ms, ttft_p90_ms, ttft_p95_ms, ttft_p99_ms: streaming time-to-first-token percentiles (null on non-streaming windows)
  • tps_p10, tps_p50, tps_p90, tps_p99: output tokens-per-second percentiles
  • latency_p50_ms, latency_p90_ms, latency_p99_ms: end-to-end latency percentiles
  • cache_hit_pct: cache-read prompt tokens divided by total input tokens
  • count_2xx, count_4xx, count_5xx: request count by status class
  • error_rate_pct: 4xx + 5xx divided by total requests
  • concurrent_requests: recent activity count for the scoped account
  • timeseries[*]: per-bucket requests, the full TPS / TTFT / latency percentile set, plus input_tokens, cache_read_tokens, and error_count. The two token sums let you render a “cached vs total input” overlay without a second query. Bin size is derived from range_minutes.

Serverless Scoping

  • Only Serverless API keys can query endpoint=pass.wafer.ai.
  • Results are scoped to the owning Serverless account for the bearer key.
  • model filters the resolved model that served the request.
  • backends is empty for Serverless because backend identities are fleet-level data.
  • Engine gauge fields and active_accounts are null for Serverless because they are fleet-level metrics.

Timeseries Bin Sizes

The timeseries bin width is derived from range_minutes:

Errors

  • 401: missing or invalid API key
  • 403: the API key is not a Serverless key for pass.wafer.ai
  • 422: invalid range_minutes, endpoint, or model
  • 502: upstream metrics query failed