FileToPDF.dev API

FileToPDF.dev API as documented publicly: 3 operations. Contract generated from the documentation by API Evangelist (2026-11-07); not the provider's own document.

GitHub OpenAPI

Operations 3

POST /file POST /file #
POST /html POST /html #
POST /markdown POST /markdown #

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/filetopdf-dev:filetopdf-dev-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

filetopdf-dev-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: FileToPDF.dev API
  version: '2026-11-07'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-07: 3 operation(s) read from 3 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; FileToPDF.dev has published no machine-readable contract that
    the pipeline could find. Engine: anthropic.'
  x-evidence-tiers:
    code-example: 3
    documentation: 0
    pages-with-code: 3
    pages-read: 3
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-07'
  x-generator: generate-contract-from-docs.py
  x-engine: anthropic
  x-sources:
  - https://filetopdf.dev/file
  - https://filetopdf.dev/html
  - https://filetopdf.dev/markdown
servers:
- url: https://api.filetopdf.dev
paths:
  /file:
    post:
      operationId: post_file
      tags:
      - File
      summary: POST /file
      x-source: https://filetopdf.dev/file
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -X POST https://api.filetopdf.dev/file  -H "x-api-key: YOUR_API_KEY"  -F "url=https://filesamples.com/samples/document/docx/sample1.docx"  --output
          output.pdf Sub-second conversion Most documents convert in under a second — no queues, no waiting. File upload or URL Upload a file
          directly or pass a public URL — we download and convert. 130+ supported formats Office, images, HTML, Markdown, EPU'
  /html:
    post:
      operationId: post_html
      tags:
      - Html
      summary: POST /html
      x-source: https://filetopdf.dev/html
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostHtmlRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.filetopdf.dev/html  -H \"x-api-key: YOUR_API_KEY\"  -H \"Content-Type: application/json\"  -d '{\n\
          \ \"html\": \"<html>\\n<head>\\n <link href=\\\"https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap\\\" rel=\\\"\
          stylesheet\\\">\\n</head>\\n<body>\\n <h1>Invoice #1042</h1>\\n <p>Amount due: <strong>$2,500.00</strong></p>\\n</body>\\n</html>\"\
          ,\n \"css\": \"body { font-family: Inter, s"
  /markdown:
    post:
      operationId: post_markdown
      tags:
      - Markdown
      summary: POST /markdown
      x-source: https://filetopdf.dev/markdown
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostMarkdownRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.filetopdf.dev/markdown  -H \"x-api-key: YOUR_API_KEY\"  -H \"Content-Type: application/json\"  -d '{\n\
          \ \"markdown\": \"# Invoice #1042\\n\\n**Client:** Acme Corp\\n**Amount:** $2,500.00\\n**Status:** Paid\",\n \"css\": \"body { font-family:\
          \ Inter, sans-serif; margin: 2in; line-height: 1.6; }\"\n }'  --output output.pdf GitHub Flavored Markdown Tables, task lists, strikethrough,\
          \ fenced code b"
components:
  schemas:
    PostHtmlRequest:
      type: object
      properties:
        html:
          type: string
        css:
          type: string
    PostMarkdownRequest:
      type: object
      properties:
        markdown:
          type: string
        css:
          type: string
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
security:
- apiKey: []
tags:
- name: File
- name: Html
- name: Markdown