# Anthropic Models Count API — 模型计数 Source: https://ofox.io/zh/docs/api/anthropic/models-count 快速获取通过 Anthropic 协议可用的模型总数,无需拉取完整列表。 ## 端点 ```http GET https://api.ofox.io/anthropic/v1/models/count ``` ## 请求示例 **cURL** ```bash filename="Terminal" curl https://api.ofox.io/anthropic/v1/models/count ``` **Python** ```python filename="count.py" showLineNumbers import requests resp = requests.get("https://api.ofox.io/anthropic/v1/models/count") count = resp.json()["data"]["count"] print(f"Anthropic 协议可用模型: {count} 个") ``` **TypeScript** ```typescript filename="count.ts" showLineNumbers const resp = await fetch('https://api.ofox.io/anthropic/v1/models/count') const { data } = await resp.json() console.log(`Anthropic 协议可用模型: ${data.count} 个`) ``` ## 响应格式 ```json { "data": { "count": 26 } } ``` ## 响应字段说明 | 字段 | 类型 | 说明 | |------|------|------| | `data.count` | number | 通过 Anthropic 协议可用的模型总数 |