cURL
curl --request POST \ --url https://api.fireworks.ai/v1/accounts/{account_id}/models/{model_id}:getUploadEndpoint \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "filenameToSize": {}, "enableResumableUpload": true, "readMask": "<string>" }'
{ "filenameToSignedUrls": {}, "filenameToUnsignedUris": {} }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The Account Id
The Model Id
A mapping from the file name to its size in bytes.
Show child attributes
If true, enable resumable upload instead of PUT.
The fields to be returned in the response. If empty or "*", all fields will be returned.
A successful response.
Unsigned URIs (e.g. s3://bucket/key, gs://bucket/key) for uploading model files. Returned when the caller has permission to upload to the URIs.
Was this page helpful?