Skip to main content
POST
Generate LLMs.txt for a website
LLMs.txt 生成端点为任何网站创建 LLMs.txt 和 LLMs-full.txt 文件。这些文件提供了网站内容的结构化、适合语言模型的格式,使语言模型更容易理解和处理信息。 寻找状态端点?请查看 LLMs.txt 状态 端点。

响应结构

响应包含:
  • success: 布尔值,指示请求是否成功
  • id: 生成作业的唯一标识符

输出格式

  1. LLMs.txt
    • 网站的简洁、结构化摘要
    • 包含关键链接和描述
    • 以 Markdown 格式编写,便于解析
    • 示例:
  2. LLMs-full.txt(当 showFullText 为 true 时)
    • 包含已处理页面的完整内容
    • 保持层次结构
    • 包括更详细的信息
    • 示例:

计费

计费基于 API 调用和处理的 URL:
  • 基础费用:每次 API 调用 1 积分
  • 额外费用:每个处理的 URL 1 积分
  • 使用 maxUrls 参数控制 URL 成本

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string<uri>
required

The URL to generate LLMs.txt from

maxUrls
integer
default:2

Maximum number of URLs to analyze

showFullText
boolean
default:false

Include full text content in the response

Response

LLMs.txt generation job started successfully

success
boolean
Example:

true

id
string<uuid>

ID of the LLMs.txt generation job