DeckFlow Logo Developers DeckFlow documentation
Developer GuideAPI ReferenceMCPCLI

File Converter

The File Converter API specifications and task parameters, supporting conversion between HTML, Image, Keynote, Markdown, PDF, PPT/PPTX, Word, and other formats.

API Endpoints

File conversion tasks are processed asynchronously. Use the two endpoints below to create and retrieve tasks. Click "Try it" on the right to open the interactive playground.

POST /tools/tasks

Creates an asynchronous conversion task. Pass the corresponding converter tool identifier in type.

GET /tools/tasks/:id

Queries the execution status of a conversion task and retrieves the final output download link via result.url.

Request Headers

Header Type Required Description
Authorization String Yes Bearer <YOUR_API_KEY> — API Key.
Content-Type String Yes (POST) Must be multipart/form-data.

POST Body Parameters (Form Data)

Parameter Type Required Description
files File Yes Source file to be processed. Supports uploading multiple files.
type String Yes Task type identifier. For example: convertor.ppt2pdf.
params String (JSON) No JSON string of tool-specific parameters. Defaults to an empty JSON string "{}".
notifyURL String No Webhook callback URL to receive task status update notifications.

Task Parameter Specifications

The specific task types, format requirements, file size limits, and custom parameters (params) for each File Converter tool are detailed below:

Tool Name (UI Display)Tool IDBackend Task Type (type)Accepted Extensions (accept)File Size LimitSpecial Parameters (params)
HTML to PNGhtml2pngconvertor.html2png.html, .htm50 MB{}
*Supports directly pasting HTML code as file input*
HTML to PPTXhtml2pptxconvertor.html2pptx.html, .htm50 MB{"needEmbedFonts": boolean}
*Whether to embed fonts in the generated PPTX. Supports pasting HTML*
Image to WebPimage-convert-webpimage.convertWebpimage/*100 MB{}
Keynote to HTMLkeynote2htmlconvertor.keynote2html.key300 MB{}
Keynote to Imagekeynote2imageconvertor.keynote2image.key300 MB{}
Keynote to PDFkeynote2pdfconvertor.keynote2pdf.key300 MB{}
Markdown to Imagemarkdown2pngconvertor.markdown2png.md, .markdown10 MB{}
*Supports directly pasting Markdown text as file input*
PDF to Imagepdf2imageconvertor.pdf2image.pdf300 MB{}
PPT to PPTXppt2pptxconvertor.ppt2pptx.ppt300 MB{}
PowerPoint to PDFppt2pdfconvertor.ppt2pdf.ppt, .pptx300 MB{}
PowerPoint to Imageppt2imageconvertor.ppt2image.ppt, .pptx300 MB{}
PowerPoint to Videoppt2videoconvertor.ppt2video.ppt, .pptx300 MB{}
Word to PDFdoc2pdfconvertor.doc2pdf.doc, .docx300 MB{}