Create a deployment
Creates a model deployment under an endpoint. The deployment provisions asynchronously; monitor its status before routing live traffic to it.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID of the project that owns the endpoint.
ID of the endpoint that will contain the deployment.
Query Parameters
When true, validates the request without creating or provisioning a deployment.
Body
Configuration for creating a deployment that binds a model and immutable config to an endpoint.
Name for the deployment within its endpoint. Returned as a project- and endpoint-qualified inference name.
Autoscaling configuration for the deployment.
Deprecated. Use model. Model identifier to serve, accepted when model is unset.
Deprecated. Use model with a /revisions/{revisionId} segment. If omitted, the latest revision is resolved at creation.
Deprecated. Use config. Config revision identifier to deploy, accepted when config is unset.
Model resource name in the form projects/{projectId}/models/{modelId}[/revisions/{revisionId}]. Omit the revision segment to pin the latest revision at creation time.
Immutable config revision in the form projects/{projectId}/configs/{configRevisionId}. The config must be compatible with the model.
Enables dynamic loading of LoRA adapters on the deployment.
Placement policy to use when scheduling the deployment.
- Option 1
- Option 2
Response
OK
Serving workload that binds a model and immutable config to an endpoint and manages its replicas.
Unique deployment identifier.
ID of the project that owns the deployment.
ID of the endpoint that contains the deployment.
Project- and endpoint-qualified deployment name in the form <project_slug>/<endpoint_name>/<deployment_name>. Pass it as model in an inference request to target this deployment directly instead of using the endpoint's traffic split.
Timestamp when the deployment was created.
Timestamp when the deployment was last updated.
Deprecated. Use model. Model identifier being served, populated during migration.
Deprecated. Use model with a /revisions/{revisionId} segment. Pin to a specific model revision.
Pinned model resource in the form projects/{projectId}/models/{modelId}/revisions/{revisionId}.
Replica bounds, timing windows, and metrics that control horizontal scaling.
Deprecated. Use config. Config revision identifier, populated during migration.
Immutable config revision in the form projects/{projectId}/configs/{configRevisionId}.
Opaque version tag for optimistic concurrency control. Supply on update/delete to ensure consistent read-modify-write. If not set, the write overwrites based on current state.
Hardware selected by the deployment config, including GPU type and count.
Whether the deployment serves client-visible responses or only mirrored shadow traffic.
TRAFFIC_MODE_LIVE, TRAFFIC_MODE_SHADOW Current lifecycle state and observed replica counts.
Deprecated. Use speculator. Speculative decoding model identifier derived from the deployment config.
Deprecated. Use speculator. ID of the speculative decoding draft-model revision pinned at creation time.
Pinned draft-model resource used for speculative decoding, in the same form as model. Omitted when speculative decoding is disabled.
Estimated fraction in [0, 1] of endpoint traffic that reaches this deployment under the current routing configuration. Absent or unrouted deployments are 0.
Whether the deployment can dynamically load LoRA adapters.
Serving engine and feature support derived from the immutable config.
Number of replicas the autoscaler currently wants across all regions.
Region constraints used to schedule the deployment's replicas.
- Option 1
- Option 2