跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.llmgenerator.com/llms.txt

Use this file to discover all available pages before exploring further.

POST /generate

发起 llms.txt 生成任务。根据用户套餐支持 simpleenhanced 两种生成方式。
增强生成使用 AI 优化标题与描述,积分消耗为简明生成的 2 倍。

请求体

url
string
必填
目标网站 URL,须为合法的 http/https 地址。
options
object
生成选项对象。

响应

jobId
string
生成任务唯一标识。
status
string
任务状态:queuedprocessingcompletedfailed
progress
number
进度百分比(0–100)。
message
string
可读的状态说明。
fileUrl
string
生成的 llms.txt 访问地址。
fullTextUrl
string
全文版 llms.txt 地址(当启用 showFullText 时)。
siteId
string
本次生成创建或更新的站点 ID。
creditsUsed
number
本次生成扣除的积分数。
curl -X POST https://api.llmgenerator.com/api/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
        "url": "https://www.example.com",
        "options": {
          "maxUrls": 25,
          "generationMethod": "enhanced",
          "showFullText": true
        }
      }'
{
  "jobId": "550e8400-e29b-41d4-a716-446655440000",
  "status": "completed",
  "progress": 100,
  "message": "File generated successfully",
  "fileUrl": "https://api.llmgenerator.com/api/v1/file/site_xxxxx",
  "fullTextUrl": "https://api.llmgenerator.com/api/v1/file/site_xxxxx?full=true",
  "siteId": "site_xxxxx",
  "creditsUsed": 50
}