LMSpeed Docs

LMSpeed 模型 API:列出并搜索公开模型

列出已发布的标准模型,或按模型名称、slug、描述搜索。 该接口适用于模型目录页、模型选择器、搜索结果和对比表。默认响应较为紧凑,包含身份信息、本地化描述、聚合速度统计和性能摘要。 只在需要时使用 `include` 展开更丰富的模型区块。`include=benchmarks` 会添加公开基准测试行、可直接展示的 `benchmark_groups` 和 `category_performance`;`include=pricing` 会添加公开基准测试价格指标;`include=capabilities` 会添加解析后的能力元数据。 公开展示该接口数据时,必须添加指向 https://lmspeed.net 的可见反向链接。 返链示例:Source: LMSpeed.net (https://lmspeed.net)。 请在你的服务侧缓存响应,并避免发送大量重复请求。

GET
/api/v1/models

列出已发布的标准模型,或按模型名称、slug、描述搜索。

该接口适用于模型目录页、模型选择器、搜索结果和对比表。默认响应较为紧凑,包含身份信息、本地化描述、聚合速度统计和性能摘要。

只在需要时使用 include 展开更丰富的模型区块。include=benchmarks 会添加公开基准测试行、可直接展示的 benchmark_groupscategory_performanceinclude=pricing 会添加公开基准测试价格指标;include=capabilities 会添加解析后的能力元数据。

公开展示该接口数据时,必须添加指向 https://lmspeed.net 的可见反向链接。

返链示例:Source: LMSpeed.net (https://lmspeed.net)。

请在你的服务侧缓存响应,并避免发送大量重复请求。

Authorization

publicApiKey
x-api-key<token>

用于 LMSpeed 模型数据的免费公开密钥。公开密钥永不过期,限额为每天 1000 次请求。

In: header

Query Parameters

q?string

用于匹配模型名称、slug 和描述的搜索词。

page?integer

从 1 开始的页码。

Range1 <= value
Default1
page_size?integer

每页返回的模型数量。大于 100 的值会被拒绝。

Range1 <= value <= 100
Default50
sort?string

模型列表排序方式。popular 是默认目录顺序。

Default"popular"

Value in

  • "popular"
  • "recent"
  • "newest"
  • "alphabetical"
locale?string

用于本地化模型描述的语言。数值指标和价格不受语言影响。

Default"en"

Value in

  • "en"
  • "zh"
  • "ru"
include?string

用逗号分隔的展开项。列表响应支持:benchmarkspricingcapabilities

Header Parameters

x-api-key*string

在 LMSpeed 设置页创建的免费公开 API 密钥。请通过 x-api-key 请求头原样发送。

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/models?q=deepseek+v4+pro&include=" \  -H "x-api-key: string"
{  "tier": "free",  "locale": "en",  "attribution": {    "required": true,    "name": "LMSpeed",    "url": "https://lmspeed.net"  },  "data": {    "models": [      {        "id": 33442,        "slug": "deepseek-v4-pro",        "name": "DeepSeek V4 Pro",        "lmspeed_url": "https://lmspeed.net/model/deepseek-v4-pro",        "description": "DeepSeek V4 Pro 是 DeepSeek 系列的大语言模型,提供高级推理、代码生成和多模态能力。",        "developer": "DeepSeek",        "release_date": "2026-04-24T03:17:59.000Z",        "context_window_tokens": 1048576,        "max_output_tokens": 384000,        "documentation_url": null,        "huggingface_url": null,        "stats": {          "total_tests": 160,          "average_tokens_per_second": 49.85478210449219,          "average_first_token_latency": 7150.391125488281,          "last_test_at": "2026-05-18T13:13:55.186Z"        },        "performance_summary": {          "average_tokens_per_second": 49.85478210449219,          "average_first_token_latency": 7150.391125488281        }      }    ],    "pagination": {      "page": 1,      "page_size": 3,      "total": 1,      "total_pages": 1    }  }}
{  "error": {    "code": "string",    "message": "string",    "details": null  }}
{  "error": {    "code": "string",    "message": "string",    "details": null  }}
{  "error": {    "code": "string",    "message": "string",    "details": null  }}