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

# Get Model Upload Endpoint

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

## Path parameters

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

## Request body

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

## Changes

- **2025-11-06** `311efdb2fa57` — 3 info
  - the endpoint scheme security `BearerAuth` was added to the API
  - api tag `gateway.openapi_Gateway` added
  - api tag `Gateway` removed

[Change history](https://skmtc.dev/fw-ai-external/apis/gateway-rest-api/changes/v1/accounts/:account_id/models/:model_id:getUploadEndpoint/post.md)

---

[API](https://skmtc.dev/fw-ai-external/apis/gateway-rest-api.md) · [All operations](https://skmtc.dev/fw-ai-external/apis/gateway-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fw-ai-external/apis/gateway-rest-api/revisions/29a1e4db152c?raw)
