Upload a local file to SpicyAPI
spicyapi_upload_fileUpload a local file from the user's machine and return a spicy:// URI for model inputs. Use whenever a file path is given; images up to 10 MiB, video/audio up to 90 MiB.
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 up to 10 MiB; MP4/WebM video and MP3/WAV audio up to 90 MiB. 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 |