API 문서
E-Ink 전자책 변환 서비스를 애플리케이션에 통합
AI Agent로 사용 — 설정 불필요
아래 프롬프트를 복사하여 Cursor, Claude Code, Codex 또는 AI 코딩 도구에 붙여넣으면 자동으로 설치됩니다.
E-Ink skill 설치해줘: npx e-ink-skill 실행하고, 환경 변수 EINK_API_KEY에 내 API 키를 설정해줘.Cursor, Claude Code, Windsurf, Codex 등 지원.
다른 설치 방법시작하기
E-Ink API를 사용하려면 API 키가 필요합니다. 대시보드에서 생성한 후 요청의 Authorization 헤더에 포함하세요.
인증
모든 API 요청에는 Authorization 헤더에 API 키를 포함해야 합니다:
Authorization: Bearer eink_your_api_key_hereBase URL
https://e-ink.me/api/v1크레딧 시스템
API 호출은 웹 인터페이스와 동일한 크레딧을 소비합니다.
| API | 크레딧 비용 |
|---|---|
| 웹페이지를 전자책으로 변환 | 3(URL당) |
| 파일 형식 변환 | 2 / 5(PDF OCR: 5) |
| 전자책 번역 | 3(파일당) |
| 텍스트 음성 변환 | 5(파일당) |
| 마인드맵 생성 | 2 / 5(AI: 5) |
API 엔드포인트
GET
/api/v1/credits크레딧 잔액 확인
현재 크레딧 잔액을 반환합니다.
0 credits
curl
curl https://e-ink.me/api/v1/credits \
-H "Authorization: Bearer eink_your_api_key"Response
{
"credits": 150
}POST
/api/v1/convert/webpage웹페이지를 전자책으로 변환
하나 이상의 웹페이지를 EPUB, PDF 또는 Markdown 형식으로 변환합니다.
3 credits URL당
curl
curl -X POST https://e-ink.me/api/v1/convert/webpage \
-H "Authorization: Bearer eink_your_api_key" \
-H "Content-Type: application/json" \
-d '{"url": "https://e-ink.me", "format": "epub"}' \
-o article.epubPOST
/api/v1/convert파일 형식 변환
EPUB, PDF, Markdown, HTML, DOCX, TXT 등의 파일 형식 간 변환합니다.
2 / 5 credits
curl
curl -X POST https://e-ink.me/api/v1/convert \
-H "Authorization: Bearer eink_your_api_key" \
-F "file=@book.epub" \
-F "converter=epub-to-pdf" \
-o book.pdfPOST
/api/v1/convert/translate전자책 번역
EPUB 파일을 다른 언어로 번역합니다.
3 credits 파일당
curl
curl -X POST https://e-ink.me/api/v1/convert/translate \
-H "Authorization: Bearer eink_your_api_key" \
-F "file=@book.epub" \
-F "targetLanguage=Chinese" \
-F "sourceLanguage=auto" \
-o book-translated.epubPOST
/api/v1/convert/tts텍스트 음성 변환
텍스트를 음성 오디오(MP3 형식)로 변환합니다.
5 credits 파일당
curl
curl -X POST https://e-ink.me/api/v1/convert/tts \
-H "Authorization: Bearer eink_your_api_key" \
-H "Content-Type: application/json" \
-d '{"input": "Hello, this is a test.", "voice": "en-US-JennyNeural"}' \
-o speech.mp3POST
/api/v1/convert/mindmap마인드맵 생성
EPUB 또는 PDF 파일에서 마인드맵을 생성합니다.
2 / 5 credits
curl
curl -X POST https://e-ink.me/api/v1/convert/mindmap \
-H "Authorization: Bearer eink_your_api_key" \
-F "file=@book.epub" \
-F "mode=structure" \
-F "format=freemind"Response
{
"tree": { "label": "Book Title", "children": [...] },
"stats": { "nodeCount": 42, "maxDepth": 4 },
"files": {
"freemind": "<map>...</map>",
"opml": "<?xml ...?>...",
"markdown": "# Book Title\n## Chapter 1\n..."
}
}오류 코드
| Code | Description |
|---|---|
| 400 | Bad Request — 잘못된 매개변수 |
| 401 | Unauthorized — API 키 누락 또는 무효 |
| 402 | Payment Required — 크레딧 부족 |
| 413 | Payload Too Large — 파일 크기 초과 |
| 500 | Internal Server Error — 서버 오류 발생 |
AI Agent Skill
Agent Skill을 통해 Cursor, Claude Code, Codex 등의 AI 코딩 도구에서 E-Ink를 직접 사용하세요.
설치
1
AI에게 말하기
추천이 프롬프트를 복사하여 AI 에이전트 채팅에 붙여넣으세요. 설치를 자동으로 처리합니다.
E-Ink skill 설치해줘: npx e-ink-skill 실행하고, 환경 변수 EINK_API_KEY에 내 API 키를 설정해줘.2
npx 수동 실행
npx
npx e-ink-skill3
GitHub에서 클론
git clone
# Cursor
git clone https://github.com/Selenium39/e-ink-skill.git ~/.cursor/skills/e-ink-skill
# Claude Code / Codex
git clone https://github.com/Selenium39/e-ink-skill.git ~/.claude/skills/e-ink-skillAPI 키를 환경 변수로 설정:
export EINK_API_KEY="eink_your_api_key_here"AI 에이전트에서 Skill을 사용할 수 있습니다. 다음과 같이 시도해 보세요:
“https://e-ink.me 를 EPUB으로 변환해줘”
“이 EPUB을 한국어로 번역해줘”
“E-Ink 크레딧 잔액 확인해줘”