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

# Generate LLMs.txt

The LLMs.txt generation endpoint creates LLMs.txt and LLMs-full.txt files for any website. These files provide a structured, LLM-friendly format of the website's content, making it easier for language models to understand and process the information.

Looking for the status endpoint? Check out the [LLMs.txt Status](/api-reference/endpoint/llmstxt-get) endpoint.

### Response Structure

The response includes:

* **success**: Boolean indicating if the request was successful
* **id**: Unique identifier for the generation job

### Output Format

1. **LLMs.txt**

   * Concise, structured summary of the website
   * Contains key links and descriptions
   * Formatted in markdown for easy parsing
   * Example:

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

     - [Page Title](https://example.com/page): Brief description
     - [Another Page](https://example.com/another): Another description
     ```

2. **LLMs-full.txt** (when showFullText is true)

   * Contains full content of processed pages
   * Maintains hierarchical structure
   * Includes more detailed information
   * Example:

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

     ## Page Title

     Full content of the page...

     ## Another Page

     More detailed content...
     ```

### Billing

Billing is based on API calls and URLs processed:

* Base cost: 1 credit per API call
* Additional: 1 credit per URL processed
* Control URL costs with `maxUrls` parameter


## OpenAPI

````yaml api-reference/v1-openapi.json 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

````