Models

Undeploy Model

Undeploy a deployed aligned model.

This endpoint undeploys a deployed model, removing it from the inference service.

Path Parameters:

  • model_id: Unique identifier of the model to undeploy

Returns:

  • model_id: Identifier of the model being undeployed
  • message: Confirmation message

Raises:

  • 400: If model is already undeployed
  • 404: If the model or its alignment project is not found
  • 409: If an evaluation of the model has not ended; the message names it

Example Request:

DELETE /api/v3/models/alignment_01k4x9m2p7q3r8c1/deployment
Headers: {"Authorization": "Bearer <api_key>"}

Example Response:

{"model_id": "alignment_01k4x9m2p7q3r8c1", "message": "Undeployment started for alignment_01k4x9m2p7q3r8c1."}

Notes:

  • Poll GET /api/v3/models/{model_id}/deployment/status to track undeployment
  • Once UNDEPLOYED, the model will no longer be available for inference
  • The model can be redeployed later using the deploy endpoint
delete/api/v3/models/{model_id}/deployment

Request

  • Base URL
    https://api.nugen.in
  • Auth
    HTTP bearer

Path parameters

model_idstring required

ID of the model, as listed by GET /models/aligned or GET /models/base

Response

Successfully initiated model undeployment

model_idstring required

Identifier of the model being undeployed.

messagestring required

Confirmation message.

Example response

{
  "model_id": "alignment_01k4x9m2p7q3r8c1",
  "message": "Undeployment started for alignment_01k4x9m2p7q3r8c1."
}

Changes

No recorded changes to this operation across all 1 revision of this API.