Import a file from a URL
import_from_urlDownloads a file from a public http(s) URL on AIToURL's servers and returns a permanent public link. Best for files that are already online (an image generated by another tool, an export, a direct download link): nothing has to pass through you. The URL must point to the file itself, not to a web page (for Google Drive or Dropbox, use the direct download link). Up to 25 MB on Free, 250 MB on Pro. Allowed types: pdf, png, jpg, gif, webp, zip, epub, docx, xlsx, pptx, mp4, m4v, mov, webm, mp3, m4a, wav, txt, md, csv; the real type is detected from the content. Pro plan: pass file_id to replace an existing file and keep its link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public http(s) URL of the file. | |
| tags | No | Pro plan only: tags for the file, e.g. ['invoice', 'client-dupont']. | |
| folder | No | Pro plan only: folder path to file it in, e.g. 'Clients/Dupont' (missing folders are created). Omit to keep it at the top level. | |
| file_id | No | Pro plan only: existing file to replace (the link stays the same). | |
| file_name | No | Optional file name, e.g. 'cover.png'. Defaults to the name given by the server or the URL. |