pdfmd.dev: PDF to Markdown API API

Send a PDF and get Markdown back as JSON. The converter keeps headings and reading order and writes tables as GitHub-flavoured Markdown. Each answer has the page count, the character offset of every page start and a list of values to check.

GitHub OpenAPI

Operations 4

POST /api/v1/convert Convert a PDF to Markdown #
POST /api/v1/ocr OCR a scanned PDF (English) #
POST /api/v1/ocr/session Authorize a large OCR upload #
GET /api/v1/me Read your own allowance #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pdfmd-dev:pdfmd-dev-pdf-to-markdown-api-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pdfmd-dev-api-openapi.json Raw ↑
{
  "openapi": "3.1.0",
  "info": {
    "title": "pdfmd.dev: PDF to Markdown API",
    "version": "1.0.0",
    "summary": "Convert PDFs to clean Markdown with headings, tables and page counts.",
    "description": "Send a PDF and get Markdown back as JSON. The converter keeps headings and reading order and writes tables as GitHub-flavoured Markdown. Each answer has the page count, the character offset of every page start and a list of values to check.\n\nUpload a file or give a public link. For scanned English PDFs use the OCR endpoint. Both endpoints count pages: one page credit per page.\n\nExample values in this document are illustrations. The ids and counts in the examples are not from a real file.\n\n## Limits and plans\n\nFree service is also subject to shared daily capacity. If it is exhausted, retry after the time in Retry-After. Paid plan allowances remain separate.\n\nEvery request requires an API key in `x-api-key` or `Authorization: Bearer`. Without a key, the API answers 401 `api_key_required` and uses none of your allowance.\n\n- Free key: 50 pages a day, up to 25 pages in one file. Get one with your email at https://pdfmd.dev/billing/free. Free use is for one person: your own projects or your studies. Production, team and commercial use need a paid plan.\n- Starter: $8.90 a month for 10,000 pages.\n- Pro: $75 a month for 100,000 pages.\n- Starter works out to $0.89 per 1,000 pages.\n\nEvery answer from a counted route carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (Unix seconds), and `X-RateLimit-Unit` (pages). Over the limit, the route answers 429 with a `pricing` link.\nPlans and prices: https://pdfmd.dev/pricing.\nTerms: https://pdfmd.dev/terms. Privacy: https://pdfmd.dev/privacy. Contact: hello@darkvectorcognition.ai.",
    "termsOfService": "https://pdfmd.dev/terms",
    "contact": {
      "name": "Dark Vector Cognition",
      "email": "hello@darkvectorcognition.ai",
      "url": "https://pdfmd.dev/docs"
    }
  },
  "servers": [
    {
      "url": "https://pdfmd.dev",
      "description": "Production"
    }
  ],
  "externalDocs": {
    "description": "pdfmd.dev: PDF to Markdown API guide",
    "url": "https://pdfmd.dev/docs"
  },
  "security": [
    {
      "ApiKeyAuth": []
    },
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Convert",
      "description": "Turn a PDF into Markdown. Counted in pages."
    },
    {
      "name": "Account",
      "description": "Read your own allowance. Uses none of it."
    }
  ],
  "paths": {
    "/api/v1/convert": {
      "post": {
        "operationId": "convertPdf",
        "summary": "Convert a PDF to Markdown",
        "description": "Send a PDF as a multipart upload (field `file`) or give a public link in a JSON body. The answer is JSON with the Markdown, the page count and parser notes. Set `format` to `html` for the document as an HTML fragment instead, or `both` for the two.\n\nAn upload is at most 4 MB. A PDF at a link is at most 50 MB. The JSON answer is at most 4 MB.\n\nOne page credit per page. With a free key a file may have 25 pages, with a paid plan 400.\n\nPages are held before the work starts and settled to the real count after. A failed conversion releases the hold and charges nothing.",
        "tags": [
          "Convert"
        ],
        "parameters": [
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "The same as the `format` field of the body, for a caller that finds a URL parameter easier.",
            "schema": {
              "type": "string",
              "enum": [
                "markdown",
                "html",
                "both"
              ],
              "default": "markdown"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file"
                ],
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "contentMediaType": "application/pdf",
                    "description": "The PDF, at most 4 MB."
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "markdown",
                      "html",
                      "both"
                    ],
                    "default": "markdown",
                    "description": "Which text of the document to return. `markdown` (the default) returns `markdown`. `html` returns the same document as an HTML fragment in `html` and no `markdown`. `both` returns both fields. The multipart field or JSON field wins over a `?format=` query parameter of the same name. Any other value is a 400 `bad_format`. A caller on a daily page plan whose HTML renders fail 5 times in a UTC day gets 429 `render_limit` for `html` and `both` until the next day. Paid plans are not limited this way."
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConvertUrlRequest"
              },
              "example": {
                "url": "https://arxiv.org/pdf/1706.03762"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The converted document. `X-RateLimit-Remaining` is the pages left after this request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConvertResult"
                },
                "example": {
                  "id": "9f2c4e7a1b3d5f60",
                  "parserVersion": "0.1.2",
                  "title": "Attention Is All You Need",
                  "pages": 15,
                  "scannedPages": 0,
                  "tables": 4,
                  "chars": 41616,
                  "ms": 5700,
                  "pageBreaks": [
                    0,
                    3120,
                    6410
                  ],
                  "warnings": [],
                  "markdown": "# Attention Is All You Need\n\n## Abstract\n\nThe dominant sequence transduction models are based on complex recurrent or convolutional neural networks..."
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-RateLimit-Unit": {
                "$ref": "#/components/headers/XRateLimitUnit"
              },
              "X-Caller": {
                "$ref": "#/components/headers/XCaller"
              }
            }
          },
          "400": {
            "description": "No PDF was sent (`missing_file`), no link was sent (`missing_url`) or `format` is not `markdown`, `html` or `both` (`bad_format`). Nothing is converted and nothing is charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_file": {
                    "value": {
                      "error": "missing_file",
                      "message": "Send the PDF as multipart field 'file'."
                    }
                  },
                  "missing_url": {
                    "value": {
                      "error": "missing_url",
                      "message": "Send JSON {\"url\": \"https://...\"} or a multipart file."
                    }
                  },
                  "bad_format": {
                    "value": {
                      "error": "bad_format",
                      "message": "format must be markdown, html or both"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidKey"
          },
          "402": {
            "$ref": "#/components/responses/TrialEnded"
          },
          "413": {
            "description": "The upload is over 4 MB or the JSON body is over 64 KB (`too_large`), or the file has more pages than this caller may convert in one request (`file_too_long`, with `pages` and `maxPagesPerFile`).",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/TooLarge"
                    },
                    {
                      "$ref": "#/components/schemas/RateLimitError"
                    }
                  ]
                },
                "examples": {
                  "too_large": {
                    "value": {
                      "error": "too_large",
                      "message": "PDF larger than 4 MB (4,000,000 bytes), the most an upload can be here. A PDF at a public link can be up to 50 MB: convert the link instead."
                    }
                  },
                  "file_too_long": {
                    "value": {
                      "error": "file_too_long",
                      "message": "This PDF has 40 pages. Your plan takes up to 25 pages per file.",
                      "pricing": "https://pdfmd.dev/pricing",
                      "recover": "https://pdfmd.dev/billing/regenerate",
                      "pages": 40,
                      "maxPagesPerFile": 25
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "The converted result is over 4 MB, or, with `format` `html` or `both`, the Markdown is over 1,000,000 bytes, the most the API renders as HTML, or it nests quotes or lists more than 100 levels deep (`maxResultBytes` says which limit applied; for nesting it is the size limit). No pages are charged. Ask for `format=markdown`, or try a shorter extract of the PDF.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultTooLarge"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "description": "The converter failed or returned something that is not a valid document (`worker_unreachable`, `worker_invalid_response`), or, with `format` `html` or `both`, the document could not be rendered as HTML within its time and memory limits (`render_failed`). The pages held for the request are released. For `render_failed`, ask for `format=markdown`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "worker_unreachable",
                  "message": "The converter failed before returning a document."
                }
              }
            }
          },
          "503": {
            "description": "The gate could not verify the key (`billing_store_unavailable`), usage cannot be checked (`quota_store_unavailable`), today's shared free capacity is exhausted (`free_capacity_reached`), pages cannot be reserved right now (`page_accounting_unavailable`, with `Retry-After`), or the converter is not configured (`parser_unavailable`). Nothing is converted and nothing is charged. With `format` `html` or `both`, the HTML renderer can also answer 503 after the conversion: it is busy (`render_busy`, with `Retry-After`) or not deployed (`render_unavailable`). Nothing is charged for either.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "page_accounting_unavailable",
                  "message": "Pages cannot be reserved right now, so nothing was converted and nothing was charged. Please retry shortly."
                }
              }
            }
          },
          "504": {
            "description": "The converter did not answer within 110 seconds (`worker_unreachable`). The pages held for the request are released. A shorter extract of the PDF may convert.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "worker_unreachable",
                  "message": "The converter did not answer within 110 seconds. Nothing was charged. A shorter extract of the PDF may convert."
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ocr": {
      "post": {
        "operationId": "ocrPdf",
        "summary": "OCR a scanned PDF (English)",
        "description": "For scanned PDFs. Existing text layers are kept and image-only pages are read with OCR. English printed text only. Names, numbers, tables and unusual layouts need checking against the source.\n\nSet `output` to `markdown` (the default) for the usual JSON plus OCR fields, or `searchable_pdf` for PDF bytes. With `markdown`, `format` works as on /api/v1/convert: `html` returns the document as an HTML fragment instead of Markdown, `both` returns the two. `searchable_pdf` ignores `format`. For `searchable_pdf` check the HTTP status before you save the body: an error answer is JSON.\n\nUses the same page allowance as /api/v1/convert, one page credit per page, including pages that already have text. A request can take up to five minutes. After a timeout, call GET /api/v1/me before you retry.\n\nIf an OCR conversion fails after it was sent to the converter, a caller on a daily page plan is charged the pages held for it, because a failed OCR job still uses the converter's time. Paid plans get the pages back. A request the converter refuses before it starts OCR is not charged: a link that is private, malformed or cannot be fetched, a body or PDF over the size limit, a file that is not a PDF, or a body that arrives too slowly. The error message says which one happened.\n\nIf OCR is not enabled on the deployment, the route answers 503 `ocr_unavailable`.",
        "tags": [
          "Convert"
        ],
        "parameters": [
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "The same as the `format` field of the body, for a caller that finds a URL parameter easier. Applies when `output` is `markdown`.",
            "schema": {
              "type": "string",
              "enum": [
                "markdown",
                "html",
                "both"
              ],
              "default": "markdown"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file"
                ],
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "contentMediaType": "application/pdf"
                  },
                  "output": {
                    "type": "string",
                    "enum": [
                      "markdown",
                      "searchable_pdf"
                    ],
                    "default": "markdown"
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "markdown",
                      "html",
                      "both"
                    ],
                    "default": "markdown",
                    "description": "Which text of the document to return. `markdown` (the default) returns `markdown`. `html` returns the same document as an HTML fragment in `html` and no `markdown`. `both` returns both fields. Applies when `output` is `markdown`; `searchable_pdf` ignores it. The multipart field or JSON field wins over a `?format=` query parameter of the same name. Any other value is a 400 `bad_format`. A caller on a daily page plan whose HTML renders fail 5 times in a UTC day gets 429 `render_limit` for `html` and `both` until the next day. Paid plans are not limited this way."
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OcrUrlRequest"
              },
              "example": {
                "url": "https://example.org/scan.pdf",
                "output": "markdown"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "`markdown`: the document JSON with the OCR fields. `searchable_pdf`: the PDF bytes.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-RateLimit-Unit": {
                "$ref": "#/components/headers/XRateLimitUnit"
              },
              "X-Caller": {
                "$ref": "#/components/headers/XCaller"
              },
              "X-Pdfmd-Pages": {
                "description": "Pages in the document.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-Pdfmd-Ocr-Pages": {
                "description": "Image-only pages that OCR read.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-Pdfmd-Scanned-Pages": {
                "description": "Image pages with very little readable text after OCR. They may be blank or unreadable; review the original. All pages remain in the PDF.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "X-Pdfmd-Rx": {
                "description": "Always `ocr`.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "ocr"
                  ]
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OcrResult"
                }
              },
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary",
                  "contentMediaType": "application/pdf"
                }
              }
            }
          },
          "400": {
            "description": "No PDF (`missing_file`), no link (`missing_url`), an unknown `output` (`invalid_output`) or, with `output` `markdown`, an unknown `format` (`bad_format`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "invalid_output",
                  "message": "Choose output 'markdown' or 'searchable_pdf'."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidKey"
          },
          "402": {
            "$ref": "#/components/responses/TrialEnded"
          },
          "413": {
            "description": "The upload is over 4 MB or the JSON body is over 64 KB (`too_large`), or the file has more pages than this caller may convert in one request (`file_too_long`, with `pages` and `maxPagesPerFile`).",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/TooLarge"
                    },
                    {
                      "$ref": "#/components/schemas/RateLimitError"
                    }
                  ]
                },
                "examples": {
                  "too_large": {
                    "value": {
                      "error": "too_large",
                      "message": "PDF larger than 4 MB (4,000,000 bytes), the most an upload can be here. A PDF at a public link can be up to 50 MB: convert the link instead."
                    }
                  },
                  "file_too_long": {
                    "value": {
                      "error": "file_too_long",
                      "message": "This PDF has 40 pages. Your plan takes up to 25 pages per file.",
                      "pricing": "https://pdfmd.dev/pricing",
                      "recover": "https://pdfmd.dev/billing/regenerate",
                      "pages": 40,
                      "maxPagesPerFile": 25
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "The converted result is over 4 MB, or, with `format` `html` or `both`, the Markdown is over 1,000,000 bytes, the most the API renders as HTML, or it nests quotes or lists more than 100 levels deep. Paid plans are not charged. A caller on a daily page plan is charged the pages held, because the OCR work is done. Ask for `format=markdown`, or try a shorter extract of the PDF.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultTooLarge"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "description": "The converter failed or returned something that is not a valid document (`worker_unreachable`, `worker_invalid_response`), or, with `format` `html` or `both`, the document could not be rendered as HTML (`render_failed`). Paid plans get the pages held back. A caller on a daily page plan is charged them, unless the converter was never reached or refused the request before it started OCR. A `render_failed` is charged this way too, because the OCR work is done; ask for `format=markdown`. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "worker_unreachable",
                  "message": "The converter failed before returning a document."
                }
              }
            }
          },
          "503": {
            "description": "OCR is not enabled (`ocr_unavailable`), the key or usage could not be verified, today's shared free capacity is exhausted (`free_capacity_reached`), or pages cannot be reserved. Nothing is charged.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "ocr_unavailable",
                  "message": "OCR is not enabled on this deployment."
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ocr/session": {
      "post": {
        "operationId": "createOcrUploadSession",
        "summary": "Authorize a large OCR upload",
        "description": "When enabled, reserves the caller's existing page allowance and returns a single-use upload session. Within two minutes, POST multipart field file directly to url with header X-Ocr-Session set to token. Do not send your API key to that URL. Upload and PDF output limits are 52,428,800 bytes; Markdown keeps its 4 MB limit. For long jobs, send Accept: text/event-stream. The response sends keepalive comments, then a meta event with JSON status, headers and byte count, base64 chunk events, and a done event with {}. Reassemble chunks only after done and verify the byte count. Job errors use the status and JSON body inside those frames. Without this Accept header, the response contains PDF bytes or document JSON and OCR/quota headers; long jobs may exceed the hosting response deadline. Page credits settle to the actual count. Unused holds expire within 15 minutes. No public file link is created. Returns 503 when unavailable.",
        "tags": [
          "Convert"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "output"
                ],
                "properties": {
                  "output": {
                    "type": "string",
                    "enum": [
                      "markdown",
                      "searchable_pdf"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Single-use upload authorization. Keep token private.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "url",
                    "token",
                    "maxPages",
                    "maxBytes",
                    "expiresAt"
                  ],
                  "properties": {
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "token": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "maxPages": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 400
                    },
                    "maxBytes": {
                      "type": "integer",
                      "enum": [
                        52428800
                      ]
                    },
                    "expiresAt": {
                      "type": "integer",
                      "description": "Upload authorization expiry, Unix milliseconds."
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-RateLimit-Unit": {
                "$ref": "#/components/headers/XRateLimitUnit"
              },
              "X-Caller": {
                "$ref": "#/components/headers/XCaller"
              }
            }
          },
          "400": {
            "description": "Invalid output or request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidKey"
          },
          "402": {
            "$ref": "#/components/responses/TrialEnded"
          },
          "413": {
            "description": "The upload is over 4 MB or the JSON body is over 64 KB (`too_large`), or the file has more pages than this caller may convert in one request (`file_too_long`, with `pages` and `maxPagesPerFile`).",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/TooLarge"
                    },
                    {
                      "$ref": "#/components/schemas/RateLimitError"
                    }
                  ]
                },
                "examples": {
                  "too_large": {
                    "value": {
                      "error": "too_large",
                      "message": "PDF larger than 4 MB (4,000,000 bytes), the most an upload can be here. A PDF at a public link can be up to 50 MB: convert the link instead."
                    }
                  },
                  "file_too_long": {
                    "value": {
                      "error": "file_too_long",
                      "message": "This PDF has 40 pages. Your plan takes up to 25 pages per file.",
                      "pricing": "https://pdfmd.dev/pricing",
                      "recover": "https://pdfmd.dev/billing/regenerate",
                      "pages": 40,
                      "maxPagesPerFile": 25
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "The converted result is over 4 MB, or, with `format` `html` or `both`, the Markdown is over 1,000,000 bytes, the most the API renders as HTML, or it nests quotes or lists more than 100 levels deep (`maxResultBytes` says which limit applied; for nesting it is the size limit). No pages are charged. Ask for `format=markdown`, or try a shorter extract of the PDF.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultTooLarge"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "description": "The converter failed or returned something that is not a valid document (`worker_unreachable`, `worker_invalid_response`), or, with `format` `html` or `both`, the document could not be rendered as HTML within its time and memory limits (`render_failed`). The pages held for the request are released. For `render_failed`, ask for `format=markdown`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "worker_unreachable",
                  "message": "The converter failed before returning a document."
                }
              }
            }
          },
          "503": {
            "description": "Large-file OCR or its page/session store is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me": {
      "get": {
        "operationId": "getStanding",
        "summary": "Read your own allowance",
        "description": "Returns your key's plan, ceiling, what is left and when it resets. Reading it uses none of your allowance, so check here before you retry after a timeout.",
        "tags": [
          "Account"
        ],
        "responses": {
          "200": {
            "description": "Your standing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Standing"
                },
                "example": {
                  "product": "pdfmd",
                  "caller": "key",
                  "label": "Free key",
                  "plan": "pdfmd_free",
                  "limitKind": "pages_day",
           

# --- truncated at 32 KB (50 KB total) ---
# Full source: https://artifacts.apis.io/pdfmd-dev/openapi/_original/pdfmd-dev-api-openapi.json