Upload a local file to SpicyAPI
spicyapi_upload_fileUpload a local file from your computer to get a spicy:// URI for model input. Supports images, video, audio, and documents.
Instructions
Read a file from this computer, upload it, and return the spicy:// URI to put in a model input field. Use this whenever the user refers to a file on their machine. Images (JPEG, PNG, WebP, GIF) up to 10 MiB; MP4/WebM video and MP3/WAV audio up to 90 MiB; reference documents (PDF, Word, Excel, PowerPoint, Keynote, Pages, Numbers, TXT, Markdown) up to 90 MiB for fields such as reference_file_url. Public HTTPS media URLs need no upload at all — pass them straight to the model input when its schema accepts a URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the file on this computer, as the user gave it. | |
| contentType | No | Only when the file extension is missing or wrong; otherwise inferred. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |