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.
이 가이드는 LLMGenerator API를 시작하기 위한 기본 단계를 안내합니다. 완료하면 첫 번째 llms.txt 파일을 생성할 수 있습니다.
1. 계정 만들기 및 API 키 발급
API를 사용하기 전에 LLMGenerator 계정을 만들고 API 키를 발급받아야 합니다.
- 가입: LLMGenerator 대시보드에서 계정을 만드세요.
- API 설정으로 이동: 로그인 후 계정 설정의 “API 키” 섹션으로 이동하세요.
- 키 생성: 새 API 키를 생성하세요. 복사하여 안전한 곳에 저장하세요 — 다시 볼 수 없습니다.
API 키의 형식은 다음과 같습니다: llmgen_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2. 첫 번째 API 요청 보내기
이제 API 키를 사용하여 LLMGenerator API에 요청을 보낼 수 있습니다. llms.txt 파일을 생성하는 주요 엔드포인트는 /api/v1/generate입니다.
API 키를 Bearer 토큰으로 Authorization 헤더에 포함하여 POST 요청을 보내세요.
curl -X POST https://api.llmgenerator.com/api/v1/generate \
-H "Authorization: Bearer 당신의API키" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.example.com",
"options": {
"maxUrls": 10,
"showFullText": true,
"generationMethod": "simple"
}
}'
당신의API키를 1단계에서 발급받은 실제 API 키로 교체하세요.
3. 응답 확인
요청이 성공하면 사이트 세부 정보와 파일 URL이 포함된 JSON 응답을 받습니다:
{
"success": true,
"message": "llms.txt 파일이 성공적으로 생성되었습니다",
"site": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"url": "https://example.com",
"status": "completed"
},
"fileUrl": "https://api.llmgenerator.com/api/v1/file/550e8400-e29b-41d4-a716-446655440000",
"fullTextUrl": "https://api.llmgenerator.com/api/v1/file/550e8400-e29b-41d4-a716-446655440000?full=true",
"creditsUsed": 10,
"creditsRemaining": 490
}
4. 파일 접근하기
생성된 파일은 여러 방법으로 접근할 수 있습니다:
# 브라우저에서 보기
curl https://api.llmgenerator.com/api/v1/file/당신의사이트ID
# 파일로 다운로드
curl https://api.llmgenerator.com/api/v1/file/당신의사이트ID/download -o llms.txt
# 전체 텍스트 버전 가져오기
curl "https://api.llmgenerator.com/api/v1/file/당신의사이트ID?full=true"
다음 단계
첫 번째 llms.txt 파일을 성공적으로 생성했습니다! 다음으로 할 수 있는 것들: