---
title: "Get Model Upload Endpoint"
method: POST
path: "/v1/accounts/{account_id}/models/{model_id}:getUploadEndpoint"
tags: ["Gateway"]
---

# Get Model Upload Endpoint

`POST /v1/accounts/{account_id}/models/{model_id}:getUploadEndpoint`

## Request

- Base URL: `https://api.fireworks.ai/inference`
- URL: `https://api.fireworks.ai/inference/v1/accounts/{account_id}/models/{model_id}:getUploadEndpoint`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/fireworks/apis/fireworks-ai-anthropic-compatible-messages-api/docs/v1/accounts/:account_id/models/:model_id:getUploadEndpoint/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `account_id` string, required
- `model_id` string, required

## Request body

- GatewayGatewayGetModelUploadEndpointBody
  - `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`

A successful response.

- GatewayGetModelUploadEndpointResponse
  - `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.

---

[API](https://skmtc.dev/fireworks/apis/fireworks-ai-anthropic-compatible-messages-api.md) - [All operations](https://skmtc.dev/fireworks/apis/fireworks-ai-anthropic-compatible-messages-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fireworks/apis/fireworks-ai-anthropic-compatible-messages-api/revisions/954d6bc5d922?raw)
