Simple REST API for PDF to Markdown conversion using Marker.
Designed for Easypanel deployment.
- Create new App in Easypanel
- Connect to this GitHub repo
- Build method: Dockerfile
- Port: 8001
- Memory: 4-8GB recommended
| Variable | Default | Description |
|---|---|---|
TORCH_DEVICE |
cpu |
Device for ML models (cpu or cuda) |
Convert PDF to Markdown.
Request:
- Content-Type:
multipart/form-data - Body:
file(PDF file)
Response:
{
"markdown": "# Document Title\n\nContent...",
"filename": "document.pdf"
}Health check endpoint.
Response:
{"status": "ok"}Set in AutoVersio environment:
OCR_SERVICE_URL=http://marker-api:8001
Replace marker-api with the internal hostname from Easypanel.