subscribe
method to submit a request and await the result.
Example:
request_id
for later use.
Example:
storage
API allows you to upload files and receive a URL, which can then be used in your model endpoint requests. This is particularly useful for models that require file inputs, such as image-to-video or speech-to-text.
<input type="file">
element to select a file and upload it.
File
object, Blob
, or a base64 data URI to a model endpoint’s input, the SDK will first upload it to storage and then use the resulting URL in the request.
This simplifies the process as you don’t need to perform a separate upload step.