EPUB/PDF tools: merge, split, compress, convert, edit metadata, validate ebooks.
Full LLM thinking from the 4-phase benchmark pipeline.
_format for all endpoints is "json"._format field should be for each endpoint. All return JSON.
I'll produce the JSON now.{
"service_type": "rest_api",
"base_url": "https://epublys.com/v1",
"auth_method": "bearer_token",
"auth_config": {
"header": "Authorization",
"prefix": "Bearer"
},
"endpoints": [
{
"path": "/merge",
"method": "POST",
"purpose": "Merge multiple EPUBs into one",
"params": {
"files": {
"type": "array",
"required": true,
"description": "Array of base64-encoded EPUB files (min 2)"
},
"names": {
"type": "array",
"required": false,
"description": "Original filenames in same order as files"
},
"title": {
"type": "string",
"required": false,
"maxLength": 300
},
"author": {
"type": "string",
"required": false,
"maxLength": 300
},
"dividers": {
"type": "boolean",
"required": false,
"default": true
}
},
"response_format": "json",
"is_primary": true
},
{
"path": "/split",
"method": "POST",
"purpose": "Split EPUB into chapters or extract a chapter range",
"params": {
"file": {
"type": "string",
"required": true,
"description": "Base64-encoded EPUB"
},
"name": {
"type": "string",
"required": false,
"description": "Original filename for output naming"
},
"chapterStart": {
"type": "integer",
"required": false,
"minimum": 1,
"description": "First chapter to include (1-indexed)"
},
"chapterEnd": {
"type": "integer",
"required": false,
"minimum": 1,
"description": "Last chapter to include (inclusive)"
},
"keepMetadata": {
"type": "boolean",
"required": false,
"default": true
}
},
"response_format": "json",
"is_primary": true
},
{
"path": "/compress",
"method": "POST",
"purpose": "Compress EPUB file",
"params": {
"file": {
"type": "string",
"required": true,
"description": "Base64-encoded EPUB"
},
"name": {
"type": "string",
"required": false,
"description": "Original filename for output naming"
},
"level": {
"type": "integer",
"required": false,
"minimum": 1,
"maximum": 9,
"default": 6
},
"stripUnused": {
"type": "boolean",
"required": false,
"default": false
}
},
"response_format": "json",
"is_primary": true
},
{
"path": "/metadata",
"method": "POST",
"purpose": "Read EPUB metadata",
"params": {
"file": {
"type": "string",
"required": true,
"description": "Base64-encoded EPUB"
}
},
"response_format": "json",
"is_primary": true
},
{
"path": "/metadata/edit",
"method": "POST",
"purpose": "Edit EPUB metadata (absent fields left untouched, empty string clears)",
"params": {
"file": {
"type": "string",
"required": true,
"description": "Base64-encoded EPUB"
},
"name": {
"type": "string",
"required": false,
"description": "Original filename for output naming"
},
"title": {
"type": "string",
"required": false
},
"author": {
"type": "string",
"required": false
},
"authors": {
"type": "string",
"required": false,
"description": "Comma-separated contributor list"
},
"language": {
"type": "string",
"required": false
},
"publisher": {
"type": "string",
"required": false
},
"description": {
"type": "string",
"required": false
},
"series": {
"type": "string",
"required": false
},
"seriesPosition": {
"type": "string",
"required": false,
"description": "Position within the series (e.g. '2')"
},
"subjects": {
"type": "string",
"required": false,
"description": "Comma-separated subject/genre tags"
},
"date": {
"type": "string",
"required": false,
"description": "Publication date (ISO 8601)"
},
"isbn": {
"type": "string",
"required": false
},
"cover": {
"type": "string",
"required": false,
"description": "Base{
"tests": [
{
"name": "get_usage_happy_path",
"endpoint": "/usage",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns JSON with success true and allowance info",
"metrics": ["latency", "status_code"],
"validation": {"field": "success", "type": "boolean", "value": true}
},
{
"name": "upgrade_happy_path",
"endpoint": "/upgrade",
"method": "POST",
"headers": {},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns JSON with a checkout link (url)",
"metrics": ["latency", "status_code"],
"validation": {"field": "url", "type": "string", "min_length": 5}
},
{
"name": "merge_missing_files",
"endpoint": "/merge",
"method": "POST",
"headers": {},
"payload": {"not_files": []},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Returns error: missing required field 'files'",
"metrics": ["latency", "status_code"],
"validation": {"field": "error", "type": "string", "min_length": 1}
},
{
"name": "merge_single_file",
"endpoint": "/merge",
"method": "POST",
"headers": {},
"payload": {"files": ["UEsDBBQAAAAIAAAAYQ0AAAAAAAAAAAAAAAAAAAAAAAgA"]},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Returns error: need at least 2 files",
"metrics": ["latency", "status_code"],
"validation": {"field": "code", "type": "string", "value": "validation"}
},
{
"name": "split_missing_file",
"endpoint": "/split",
"method": "POST",
"headers": {},
"payload": {"name": "test.epub"},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Returns error: missing required 'file'",
"metrics": ["latency", "status_code"],
"validation": {"field": "error", "type": "string", "min_length": 1}
},
{
"name": "compress_level_out_of_range",
"endpoint": "/compress",
"method": "POST",
"headers": {},
"payload": {"file": "UEsDBBQAAAAIAAAAYQ0AAAAAAAAAAAAAAAAAAAAAAAgA", "level": 0},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Returns error: level must be between 1 and 9",
"metrics": ["latency", "status_code"],
"validation": {"field": "code", "type": "string", "value": "validation"}
},
{
"name": "epub_to_pdf_invalid_page_size",
"endpoint": "/epub-to-pdf",
"method": "POST",
"headers": {},
"payload": {"file": "UEsDBBQAAAAIAAAAYQ0AAAAAAAAAAAAAAAAAAAAAAAgA", "pageSize": "tabloid"},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Returns error: invalid page size",
"metrics": ["latency", "status_code"],
"validation": {"field": "code", "type": "string", "value": "validation"}
},
{
"name": "validate_invalid_file",
"endpoint": "/validate",
"method": "POST",
"headers": {},
"payload": {"file": "dGhpc2lzbm90YW5lcHVi"},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Returns error: not a valid EPUB",
"metrics": ["latency", "status_code"],
"validation": {"field": "code", "type": "string", "value": "validation"}
},
{
"name": "epub_to_markdown_missing_file",
"endpoint": "/epub-to-markdown",
"method": "POST",
"headers": {},
"payload": {"name": "test.epub"},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Returns error: missing required 'file'",
"metrics": ["latency", "status_code"],
"validation": {"field": "error", "type": "string", "min_length": 1}
},
{
"name": "markdown_to_epub_missing_files",
"endpoint": "/markdown-to-epub",
"method": "POST",
"headers": {},
"payload": {"title": "Test"},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Returns error: missing required array 'files'",
"metrics": ["latency", "status_code"],
"validation": {"field": "code", "type": "string", "value": "validation"}
},
{
"name": "generate_cover_missing_description",
"endpoint": "/generate-cover",
"method": "POST",
"headers": {},
"payload": {"style": "fantasy"},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Returns error: missing required 'description'",
"metrics": ["latency", "status_code"],
"validation": {"field": "error", "type": "string", "min_length": 1}
},
{
"name": "usage_invalid_auth",
"endpoint": "/usage",
"method": "GET",
"headers": {"Authorization": "Bearer invalid_key_12345"},
"payload": {},
"expected_status": 401,
1/12 tests passed
| Test | Endpoint | Status | Latency |
|---|---|---|---|
| get_usage_happy_path | GET /usage | 200 | 1695ms |
| upgrade_happy_path | POST /upgrade | 401 | 1884ms |
| merge_missing_files | POST /merge | 400 | 337ms |
| merge_single_file | POST /merge | 400 | 326ms |
| split_missing_file | POST /split | 400 | 1835ms |
| compress_level_out_of_range | POST /compress | None | 34ms |
| epub_to_pdf_invalid_page_size | POST /epub-to-pdf | 400 | 583ms |
| validate_invalid_file | POST /validate | 400 | 186ms |
| epub_to_markdown_missing_file | POST /epub-to-markdown | 400 | 175ms |
| markdown_to_epub_missing_files | POST /markdown-to-epub | 400 | 235ms |
{"model": "deepseek", "data": {"overall": 78, "dimensions": {"token_efficiency": 8.0, "first_try_success": 7.0, "response_parseability": 10.0, "error_clarity": 9.0, "doc_quality": 9.0, "auth_simplicity": 10.0, "latency": 4.0, "consistency": 10.0}, "pricing_normalized": {"cost_per_1k_requests": null, "cost_per_1m_input_tokens": null, "cost_per_1m_output_tokens": null, "free_tier_requests": 3, "estimated_monthly_cost_light": 9.0, "estimated_monthly_cost_heavy": null}, "issues": [{"severity": "critical", "detail": "POST /compress with invalid level returned no response (status null, empty body) \u2014 likely server crash or unhandled exception", "endpoint": "/compress"}, {"severity": "medium", "detail": "POST /generate-cover returns 403 (Pro required) even for input validation errors like missing description; expected 400 for validation", "endpoint": "/generate-cover"}, {"severity": "low", "detail": "POST /upgrade returns 401 when no auth is provided, but test expected 200; this is correct API behavior but the test was misconfigured", "endpoint": "/upgrade"}], "recommendations": ["Fix /compress endpoint to handle out-of-range level values gracefully and return a structured 400 error", "Reorder validation in /generate-cover: check required parameters before plan authorization, so missing description returns 400 instead of 403", "Add explicit rate limit and plan headers to responses so agents can self-regulate usage", "Consider providing an OpenAPI/Swagger spec to improve doc_quality further"]}}Show your live agent-readiness score on your own site. Free, no auth — it updates as your score changes.
<a href="https://prowlrank.com/service/epublys">
<img src="https://prowlrank.com/badge/epublys.svg" height="56" alt="Agent-readiness on Prowl">
</a>
See operational metrics, LLM evaluations, agent readiness, and more.
Open in Dashboard