POST
/
v1
/
accounts
/
{account_id}
/
models
/
{model_id}
:getUploadEndpoint
Get Model Upload Endpoint
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": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

account_id
string
required

The Account Id

model_id
string
required

The Model Id

Body

application/json
filenameToSize
object
required

A mapping from the file name to its size in bytes.

enableResumableUpload
boolean

If true, enable resumable upload instead of PUT.

readMask
string

The fields to be returned in the response. If empty or "*", all fields will be returned.

Response

200 - application/json

A successful response.

filenameToSignedUrls
object
filenameToUnsignedUris
object

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.