llms.txt generation and management directly into your applications.
Base URL
All API endpoints are relative to the following base URL:Authentication
The LLMGenerator API uses API keys to authenticate requests. You can create and manage your API keys in Settings → API Keys. All authenticated requests must include anAuthorization header with your API key as a Bearer token.
Generation Methods
The API supports two distinct generation methods:
You can specify the method using the
generationMethod parameter in the /generate endpoint. Free plan users can only use the simple method.
Credit System
API usage is tracked through credits:- Simple generation: Base credit cost per URL processed
- Enhanced generation: 2x credit multiplier for AI processing
- Full text: Additional credits for including full page content
/credits/balance endpoint.
Rate Limiting
API requests are rate-limited based on your subscription plan. If you exceed the rate limit, you will receive a429 Too Many Requests response. The response headers contain rate limit information:
X-RateLimit-Limit: Maximum requests per minuteX-RateLimit-Remaining: Requests remaining in current windowX-RateLimit-Reset: Time when the window resets (UTC epoch seconds)
CORS Support
Public file endpoints (/file/:siteId) support CORS and can be accessed directly from browsers. These endpoints don’t require authentication.
Errors
The API uses standard HTTP status codes:
Error responses include a JSON body: