This guide will walk you through the essential steps to start using the LLMGenerator API. By the end, you’ll be able to generate your firstDocumentation Index
Fetch the complete documentation index at: https://docs.llmgenerator.com/llms.txt
Use this file to discover all available pages before exploring further.
llms.txt file.
1. Create an Account & Get API Key
Before you can use the API, you need to create an LLMGenerator account and obtain an API key.- Sign Up: Create an account on the LLMGenerator dashboard.
- Navigate to API Keys: Go to Settings → API Keys.
- Create a Key: Generate a new API key. Copy it and store it securely — it’s only shown once.
llmgen_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
2. Make Your First API Request
Now you can use your API key to make requests to the LLMGenerator API. The primary endpoint for creatingllms.txt files is /api/v1/generate.
You’ll need to send a POST request with your API key in the Authorization header as a Bearer token.
Remember to replace
YOUR_API_KEY with the actual API key you obtained in the first step.3. Check the Response
If your request is successful, you’ll receive a JSON response with the job result and file URL:llms.txt file at the provided fileTextUrl. The file is publicly accessible and cached for performance.
4. Access Your File
The generated file can be accessed in several ways. Use thesiteId from the jobId response or look it up via GET /api/v1/sites:
Next Steps
You’ve successfully generated your firstllms.txt file! Here are a few things you can do next:
- Explore the full API Reference to discover all available endpoints and options.
- Learn about URL Discovery to find URLs before generation.
- Check your credit balance and transaction history.
- Export as Markdown for alternative formats (paid plans).
- Manage your sites and view analytics in the LLMGenerator Dashboard.