Skip to main content
POST
Match Deployment Shape Versions
Use this endpoint to discover the deployment shape versions compatible with a model before creating a deployment. Pass a Create Deployment request in the body — at minimum createDeploymentRequest.deployment.baseModel — and the response returns the latest validated shape versions that can serve that model, ready to pass as deploymentShape. Match applies the full server-side compatibility logic for you: PEFT base-model resolution (for LoRA addons and live merge, shapes are matched against the PEFT base model), model-type and parameter-count tiers, embedding vs. non-embedding models, the MULTI_LORA capability gate when enableAddons is set, and hiding of FP4 shapes for full-parameter fine-tunes. List Deployment Shape Versions only lists versions of a shape you already know and cannot answer “which shapes work with this model?” — use Match for that.
The account in the URL must be your own account — the account that will own the deployment (you must be a member of it, so accounts/fireworks fails with a permission error). The model in the request body, however, can live in any account you can deploy from, including publisher accounts like accounts/fireworks; public shapes from the publisher’s account flow into the results.

Example: Match shapes for a model

To match shapes for a deployment with LoRA addons enabled, include enableAddons in the request — only shapes with the MULTI_LORA capability are returned:
Then pass one of the returned shape versions as deploymentShape in the Create Deployment request. See What is a deployment shape? for why you should always create deployments from a shape.

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

Body

application/json

The deployment create request to match deployment shape versions for.

createDeploymentRequest
object
required

The deployment create request to match deployment shape versions for. The full CreateDeploymentRequest schema is accepted here — including fields like deployment.enableAddons that affect shape compatibility — only the most common fields are listed below. See the Create Deployment reference page for the complete request schema.

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. · 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<int32>

The total number of deployment shape versions.