Welcome to the LLMGenerator API documentation. Our API provides programmatic access to the core features of LLMGenerator, allowing you to integrateDocumentation 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 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:| Method | Description | Credit Cost |
|---|---|---|
| Simple | Fast generation using page metadata. Best for quick results. | 1x |
| Enhanced | AI-powered generation with improved titles and descriptions. | 2x |
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:| Code | Description |
|---|---|
200 | Success |
201 | Resource created |
400 | Bad request (validation error) |
401 | Unauthorized (invalid/missing API key) |
403 | Forbidden (insufficient permissions) |
404 | Resource not found |
429 | Rate limit exceeded |
500 | Internal server error |