Skip to main content
GET
/
v1
/
accounts
/
{account_id}
/
deploymentShapes
/
{deployment_shape_id}
/
versions
List Deployment Shapes Versions
curl --request GET \
  --url https://api.fireworks.ai/v1/accounts/{account_id}/deploymentShapes/{deployment_shape_id}/versions \
  --header 'Authorization: Bearer <token>'
{
  "deploymentShapeVersions": [
    {
      "name": "<string>",
      "createTime": "2023-11-07T05:31:56Z",
      "snapshot": {
        "name": "<string>",
        "displayName": "<string>",
        "description": "<string>",
        "createTime": "2023-11-07T05:31:56Z",
        "updateTime": "2023-11-07T05:31:56Z",
        "baseModel": "<string>",
        "modelType": "<string>",
        "parameterCount": "<string>",
        "acceleratorCount": 123,
        "acceleratorType": "ACCELERATOR_TYPE_UNSPECIFIED",
        "precision": "PRECISION_UNSPECIFIED",
        "enableAddons": true,
        "draftTokenCount": 123,
        "draftModel": "<string>",
        "ngramSpeculationLength": 123,
        "enableSessionAffinity": true,
        "numLoraDeviceCached": 123,
        "presetType": "PRESET_TYPE_UNSPECIFIED"
      },
      "validated": true,
      "public": true,
      "latestValidated": true
    }
  ],
  "nextPageToken": "<string>",
  "totalSize": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication using your Fireworks API key. Format: Bearer <API_KEY>

Path Parameters

account_id
string
required

The Account Id

deployment_shape_id
string
required

The Deployment Shape Id

Query Parameters

pageSize
integer

The maximum number of deployment shape versions to return. The maximum page_size is 200, values above 200 will be coerced to 200. If unspecified, the default is 50.

pageToken
string

A page token, received from a previous ListDeploymentShapeVersions call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListDeploymentShapeVersions must match the call that provided the page token.

filter
string

Only deployment shape versions satisfying the provided filter (if specified) will be returned. See https://google.aip.dev/160 for the filter grammar.

orderBy
string

A comma-separated list of fields to order by. e.g. "foo,bar" The default sort order is ascending. To specify a descending order for a field, append a " desc" suffix. e.g. "foo desc,bar" Subfields are specified with a "." character. e.g. "foo.bar" If not specified, the default order is by "create_time".

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.

deploymentShapeVersions
A deployment shape version is a specific version of a deployment shape. Versions are immutable, only created on updates and deleted when the deployment shape is deleted. Next ID: 9 · object[]
nextPageToken
string

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

totalSize
integer

The total number of deployment shape versions.