> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hitheo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 獲取基準數據

> 檢索指定時間窗口內的平台整體性能基準數據。

## 查詢參數

<ParamField query="window" type="string" optional>
  用於聚合的時間窗口。可選值：`24h`、`7d`、`30d`。默認值：`24h`。
</ParamField>

## 響應

<ResponseField name="window" type="string">
  所請求的時間窗口。
</ResponseField>

<ResponseField name="latency_by_mode" type="object">
  按模式統計的延遲數據：`{ [mode]: { p50, p95, p99, count } }`。
</ResponseField>

<ResponseField name="ttft_by_mode" type="object">
  按模式統計的首個令牌延遲數據（僅適用於流式）：`{ [mode]: { p50, p95, count } }`。
</ResponseField>

<ResponseField name="classification" type="object">
  意圖分類延遲：`{ p50, p95, count }`。若該時間窗口內沒有自動模式請求，則為 null。
</ResponseField>

<ResponseField name="counters" type="object">
  聚合計數器：`total`、`failover_count`、`routing_accuracy`、`total_tokens`、`total_cost_cents`、`by_mode`。
</ResponseField>

## 認證

需要提供 API 密鑰或儀表盤會話。

## 示例

```bash curl theme={null}
curl "https://www.hitheo.ai/api/v1/benchmarks?window=24h" \
  -H "Authorization: Bearer $THEO_API_KEY"
```

### 響應

```json theme={null}
{
  "window": "24h",
  "latency_by_mode": {
    "fast": { "p50": 450, "p95": 1200, "p99": 2100, "count": 1543 },
    "code": { "p50": 890, "p95": 2400, "p99": 4100, "count": 312 }
  },
  "ttft_by_mode": {
    "fast": { "p50": 180, "p95": 450, "count": 1200 }
  },
  "classification": { "p50": 12, "p95": 310, "count": 890 },
  "counters": {
    "total": 2847,
    "failover_count": 3,
    "routing_accuracy": 0.94,
    "total_tokens": 4520000,
    "total_cost_cents": 1250,
    "by_mode": { "fast": 1543, "code": 312, "image": 201 }
  },
  "bucket": "2026-04-16T05"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.