Deploy NIM Microservice#

Deploy a NIM microservice.

Prerequisites#

Before you can deploy a NIM microservice, make sure that you have:


Options#

You can deploy a NIM microservice in the following ways.

API#

  1. Submit a POST request to /v1/deployment/model-deployments.

    Use the following cURL command. For more details on the request body, see the Deployment Management API reference.

    curl -X POST \
      "${DEPLOYMENT_SERVICE_URL}/v1/deployment/model-deployments" \
      -H 'accept: application/json' \
      -H 'Content-Type: application/json' \
      -d '{
        "name": "string",
        "namespace": "string",
        "description": "string",
        "models": [
          "string"
        ],
        "async_enabled": false,
        "config": "string",
        "project": "string",
        "custom_fields": {},
        "ownership": {
          "created_by": "",
          "access_policies": {}
        }
      }' | jq
    
  2. Review the response.

    Example Response

    The following is an example of a successful response.

    {
      "created_at": "2025-05-30T23:52:51.074Z",
      "updated_at": "2025-05-30T23:52:51.074Z",
      "name": "string",
      "namespace": "string",
      "description": "string",
      "url": "https://example.com/",
      "deployed": false,
      "status_details": {
        "status": "created",
        "description": "string"
      },
      "models": [
        "string"
      ],
      "async_enabled": false,
      "config": "string",
      "schema_version": "1.0",
      "project": "string",
      "custom_fields": {},
      "ownership": {
        "created_by": "",
        "access_policies": {}
      }
    }
    

    For more information about the response of the API, see the Deployment Management API reference.

    Tip

    The deployment process may take a few minutes to complete. You can check the deployment status using the Get NIM Deployment Details API.