---
title: "Returns the number of model versions."
method: GET
path: "/v1/accounts/{account_id}/models/{model_id}/versions:count"
tags: ["gateway.openapi_Gateway"]
---

# Returns the number of model versions.

`GET /v1/accounts/{account_id}/models/{model_id}/versions:count`

## Request

- Base URL: `https://api.fireworks.ai`
- URL: `https://api.fireworks.ai/v1/accounts/{account_id}/models/{model_id}/versions:count`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/fw-ai-external/apis/gateway-rest-api/docs/v1/accounts/:account_id/models/:model_id/versions:count/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

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

## Response `200`

A successful response.

- GatewayGetModelVersionCountResponse
  - `count` integer

## 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

[Operation history](https://skmtc.dev/fw-ai-external/apis/gateway-rest-api/changes/v1/accounts/:account_id/models/:model_id/versions:count/get.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/3bf245180173?raw)
