Skip to main content
POST
/
api
/
v1
/
markdown
/
convert
Convert to Markdown
curl --request POST \
  --url https://api.example.com/api/v1/markdown/convert \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=<string>' \
  --form 'url=<string>' \
  --form 'url_headers=<string>' \
  --form use_llm=false
{
  "content_length": 1234,
  "content_type": "application/pdf",
  "filename": "document.pdf",
  "markdown": "# Document Title\n\nThis is the content...",
  "success": true
}

Headers

X-API-Key
string

Body

multipart/form-data
file
string | null

File to convert

url
string | null

URL to convert

url_headers
string | null

JSON-encoded headers for URL auth

use_llm
boolean
default:false

Use LLM for image descriptions (costs tokens)

Response

Successful Response

Response for markdown conversion.

markdown
string
required

Converted markdown content

filename
string
required

Original filename or URL

content_length
integer
required

Length of the markdown output in characters

success
boolean
default:true
content_type
string | null

Detected MIME type