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呼び出しはWebインターフェースと同じクレジットを消費します。
| 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ウェブページを電子書籍に変換
1つ以上のウェブページを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のクレジット残高を確認して”