Upload file
upload_fileUpload Word, PDF, PowerPoint, Excel, CSV, text, Markdown, HTML, or image files to convert, edit, or use them as sources; returns a file_id for subsequent operations.
Instructions
Upload a file (Word, PDF, PowerPoint, Excel — also the old .doc, .ppt and .xls —, .odt, CSV, TXT, Markdown, HTML, or a PNG, JPEG, GIF or WebP picture; up to 20 MB) to convert or edit it, or to use it as a source. Returns its file_id. Give path for a file on this computer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A public URL to download the file from. | |
| path | No | Absolute path of the file on this computer. | |
| filename | No | Its name with extension, e.g. contract.docx. Needed with content_base64. | |
| content_base64 | No | The file's bytes in base64 (for small files). |