API Documentation
Integrate E-Ink ebook conversion services into your applications
Use with AI Agents — Zero Setup
Copy the prompt below and paste it into Cursor, Claude Code, Codex, or any AI coding agent to install automatically.
Install the E-Ink skill: run npx e-ink-skill, then set the env var EINK_API_KEY to my API key.Works with Cursor, Claude Code, Windsurf, Codex, and more.
More installation methodsGetting Started
To use the E-Ink API, you need an API key. Create one from your Dashboard, then include it in the Authorization header of your requests.
Authentication
All API requests must include your API key in the Authorization header:
Authorization: Bearer eink_your_api_key_hereBase URL
https://e-ink.me/api/v1Credits System
API calls consume credits from your account, same as using the web interface.
| API | Credit Cost |
|---|---|
| Webpage to Ebook | 3(per URL) |
| File Format Conversion | 2 / 5(PDF OCR: 5) |
| Ebook Translation | 3(per file) |
| Text to Speech | 5(per file) |
| Mind Map Generation | 2 / 5(AI: 5) |
API Endpoints
/api/v1/creditsCheck Credits Balance
Returns your current credit balance.
curl https://e-ink.me/api/v1/credits \
-H "Authorization: Bearer eink_your_api_key"{
"credits": 150
}/api/v1/convert/webpageWebpage to Ebook
Convert one or more web pages to EPUB, PDF, or Markdown format.
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.epub/api/v1/convertFile Format Conversion
Convert files between EPUB, PDF, Markdown, HTML, DOCX, TXT, and more. Send a multipart form with the file and converter ID.
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.pdf/api/v1/convert/translateEbook Translation
Translate an EPUB file to another language. Send a multipart form with the EPUB file, target language, and optional source language.
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.epub/api/v1/convert/ttsText to Speech
Convert text to speech audio (MP3 format).
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.mp3/api/v1/convert/mindmapMind Map Generation
Generate a mind map from an EPUB or PDF file. Send a multipart form with the file, mode, and export format.
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"{
"tree": { "label": "Book Title", "children": [...] },
"stats": { "nodeCount": 42, "maxDepth": 4 },
"files": {
"freemind": "<map>...</map>",
"opml": "<?xml ...?>...",
"markdown": "# Book Title\n## Chapter 1\n..."
}
}Error Codes
| Code | Description |
|---|---|
| 400 | Bad Request — Invalid parameters |
| 401 | Unauthorized — Missing or invalid API key |
| 402 | Payment Required — Insufficient credits |
| 413 | Payload Too Large — File exceeds size limit |
| 500 | Internal Server Error — Something went wrong |
AI Agent Skill
Use E-Ink directly in Cursor, Claude Code, Codex, and other AI coding agents through our Agent Skill. Convert web pages, translate ebooks, and more — all from your editor.
Installation
Tell your AI agent
RecommendedCopy this prompt and paste it into your AI agent's chat. It will handle the installation for you.
Install the E-Ink skill: run npx e-ink-skill, then set the env var EINK_API_KEY to my API key.Run npx manually
npx e-ink-skillClone from GitHub
# 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-skillSet your API key as an environment variable:
export EINK_API_KEY="eink_your_api_key_here"The skill is now available in your AI agent. Try asking: