POST /generate
This endpoint initiates the generation of an llms.txt file. It supports both “simple” and “enhanced” generation methods, depending on the user’s plan.
Request Body
The URL of the website to generate the file for.
An object containing generation options.The maximum number of URLs to include.
Whether to include the full text of each page in the output.
Can be simple or enhanced. Paid plan users can choose. Defaults to enhanced for paid users.
Response
A unique identifier for the generation job.
The status of the job. Since generation is synchronous, this will usually be completed.
The URL where the generated llms.txt file can be accessed.
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"
}
}'
{
"jobId": "gen_xxxxxxxxxxxxx",
"status": "completed",
"progress": 100,
"message": "File generated successfully",
"fileUrl": "https://files.llmgenerator.com/llms-xxxxxxxx.txt"
}