メインコンテンツへスキップ

Documentation Index

Fetch the complete documentation index at: https://docs.llmgenerator.com/llms.txt

Use this file to discover all available pages before exploring further.

POST /generate

llms.txt の生成を開始します。ユーザーのプランに応じて simple または enhanced を利用できます。
Enhanced は AI でタイトル・説明の品質を高めます。消費クレジットは Simple の約 2 倍です。

リクエストボディ

url
string
必須
生成対象サイトの URL。http / https を含む有効な URL である必要があります。
options
object
生成オプション。

レスポンス

jobId
string
生成ジョブの一意な識別子。
status
string
ジョブの状態: queuedprocessingcompletedfailed
progress
number
進捗率(0〜100)。
message
string
人が読めるステータスメッセージ。
fileUrl
string
生成済み llms.txt にアクセスできる URL。
fullTextUrl
string
showFullText を有効にした場合の全文版 URL。
siteId
string
今回の生成で作成または更新されたサイトの ID。
creditsUsed
number
今回の生成で差し引かれたクレジット数。
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",
          "showFullText": true
        }
      }'
{
  "jobId": "550e8400-e29b-41d4-a716-446655440000",
  "status": "completed",
  "progress": 100,
  "message": "File generated successfully",
  "fileUrl": "https://api.llmgenerator.com/api/v1/file/site_xxxxx",
  "fullTextUrl": "https://api.llmgenerator.com/api/v1/file/site_xxxxx?full=true",
  "siteId": "site_xxxxx",
  "creditsUsed": 50
}