POST /generate
发起 llms.txt 生成任务。根据用户套餐支持 simple 与 enhanced 两种生成方式。
增强生成使用 AI 优化标题与描述,积分消耗为简明生成的 2 倍。
请求体
目标网站 URL,须为合法的 http/https 地址。
生成选项对象。
取值为 simple 或 enhanced。简明模式使用页面元数据;增强模式使用 AI 优化标题与描述。
任务状态:queued、processing、completed 或 failed。
全文版 llms.txt 地址(当启用 showFullText 时)。
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
}