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 Settings: Once logged in, go to the “API Keys” section in your account settings.
- Create a Key: Generate a new API key. Make sure to copy it and store it securely. You won’t be able to see it again.
llmgen_xxxxxxxxxxxxxxxxxxxxxxxxxxxx.
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 containing thejobId and the fileUrl for your newly generated llms.txt file.
llms.txt file at the provided fileUrl.
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 the different generation methods to customize your output.
- Manage your sites and view analytics in the LLMGenerator Dashboard.