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

# 生成 LLMs.txt

LLMs.txt 生成端点为任何网站创建 LLMs.txt 和 LLMs-full.txt 文件。这些文件提供了网站内容的结构化、适合语言模型的格式，使语言模型更容易理解和处理信息。

寻找状态端点？请查看 [LLMs.txt 状态](/api-reference/endpoint/llmstxt-get) 端点。

### 响应结构

响应包含：

* **success**: 布尔值，指示请求是否成功
* **id**: 生成作业的唯一标识符

### 输出格式

1. **LLMs.txt**

   * 网站的简洁、结构化摘要
   * 包含关键链接和描述
   * 以 Markdown 格式编写，便于解析
   * 示例：

     ```markdown theme={null}
     # http://example.com llms.txt

     - [页面标题](https://example.com/page): 简要描述
     - [另一个页面](https://example.com/another): 另一个描述
     ```

2. **LLMs-full.txt**（当 showFullText 为 true 时）

   * 包含已处理页面的完整内容
   * 保持层次结构
   * 包括更详细的信息
   * 示例：

     ```markdown theme={null}
     # http://example.com llms-full.txt

     ## 页面标题

     页面的完整内容...

     ## 另一个页面

     更详细的内容...
     ```

### 计费

计费基于 API 调用和处理的 URL：

* 基础费用：每次 API 调用 1 积分
* 额外费用：每个处理的 URL 1 积分
* 使用 `maxUrls` 参数控制 URL 成本


## OpenAPI

````yaml v1-openapi POST /llmstxt
openapi: 3.0.0
info:
  title: Firecrawl API
  version: v1
  description: >-
    API for interacting with Firecrawl services to perform web scraping and
    crawling tasks.
  contact:
    name: Firecrawl Support
    url: https://firecrawl.dev/support
    email: support@firecrawl.dev
servers:
  - url: https://api.firecrawl.dev/v1
security:
  - bearerAuth: []
paths:
  /llmstxt:
    post:
      tags:
        - LLMs.txt
      summary: Generate LLMs.txt for a website
      operationId: generateLLMsTxt
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  format: uri
                  description: The URL to generate LLMs.txt from
                maxUrls:
                  type: integer
                  description: Maximum number of URLs to analyze
                  default: 2
                showFullText:
                  type: boolean
                  description: Include full text content in the response
                  default: false
              required:
                - url
      responses:
        '200':
          description: LLMs.txt generation job started successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  id:
                    type: string
                    format: uuid
                    description: ID of the LLMs.txt generation job
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Invalid parameters provided
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````