CRUD APIs for deployment shape. Create Deployment Shape
Request
- Base URL: https://api.fireworks.ai
- URL: https://api.fireworks.ai/v1/accounts/{account_id}/deploymentShapes
- Auth: HTTP bearer
Path parameters
The Account Id
Query parameters
The ID of the deployment shape. If not specified, a random ID will be generated.
Request body
Human-readable display name of the deployment shape. e.g. "My Deployment Shape" Must be fewer than 64 characters long.
The description of the deployment shape. Must be fewer than 1000 characters long.
The creation time of the deployment shape.
The update time for the deployment shape.
Mutable, but only via UpdateDeploymentShape and only to a compatible model: one with the same model_type, parameter_count, and embedding status. The derived model_type / parameter_count fields (OUTPUT_ONLY, IMMUTABLE) are therefore preserved across a swap. Any incompatible change is rejected.
The model type of the base model.
The parameter count of the base model .
The number of accelerators used per replica. If not specified, the default is the estimated minimum required by the base model.
If true, the deployment size validation is disabled.
If true, LORA addons are enabled for deployments created from this shape. Deprecated: set enable_addons on the deployment instead.
The number of candidate tokens to generate per step for speculative decoding. Default is the base model's draft_token_count.
The draft model name for speculative decoding. e.g. accounts/fireworks/models/my-draft-model If empty, speculative decoding using a draft model is disabled. Default is the base model's default_draft_model. Deprecated: set default_draft_model on the base model instead.
The length of previous input sequence to be considered for N-gram speculation.
DEPRECATED: This field is a no-op. Speculative decoding is configured on deployment.
Whether to apply sticky routing based on user field.
The maximum context length supported by the model (context window). If set to 0 or not specified, the model's default maximum context length will be used.
Response
A successful response.
Human-readable display name of the deployment shape. e.g. "My Deployment Shape" Must be fewer than 64 characters long.
The description of the deployment shape. Must be fewer than 1000 characters long.
The creation time of the deployment shape.
The update time for the deployment shape.
Mutable, but only via UpdateDeploymentShape and only to a compatible model: one with the same model_type, parameter_count, and embedding status. The derived model_type / parameter_count fields (OUTPUT_ONLY, IMMUTABLE) are therefore preserved across a swap. Any incompatible change is rejected.
The model type of the base model.
The parameter count of the base model .
The number of accelerators used per replica. If not specified, the default is the estimated minimum required by the base model.
If true, the deployment size validation is disabled.
If true, LORA addons are enabled for deployments created from this shape. Deprecated: set enable_addons on the deployment instead.
The number of candidate tokens to generate per step for speculative decoding. Default is the base model's draft_token_count.
The draft model name for speculative decoding. e.g. accounts/fireworks/models/my-draft-model If empty, speculative decoding using a draft model is disabled. Default is the base model's default_draft_model. Deprecated: set default_draft_model on the base model instead.
The length of previous input sequence to be considered for N-gram speculation.
DEPRECATED: This field is a no-op. Speculative decoding is configured on deployment.
Whether to apply sticky routing based on user field.
The maximum context length supported by the model (context window). If set to 0 or not specified, the model's default maximum context length will be used.
Changes
No recorded changes to this operation across all 1 revision of this API.