Skip to main content

How to create an endpoint

Make sure you are in a group that has at least the editor role within your tenant or project; for example, the default editors group. You can check this in the Administration → IAM section of the web console. To deploy an AI model, create an endpoint. Serverless AI endpoints are based on containers over virtual machines (VMs) in Compute. Your model runs in a container over VM, and you can access the model by using the endpoint.
  1. In the sidebar, go to  Serverless AI → Endpoints.
  2. Click  Create endpoint.
  3. Specify the endpoint name.
  4. Configure Endpoint settings:
    1. In Image path, set the path to the container image.
    2. If you use a private registry, click  Add registry and provide the details for your registry.
    3. In Ports, set the container ports for the endpoint. You can add multiple ports.
    4. (Optional) In Entrypoint command, specify the entrypoint command for the container. If you need to pass container arguments, specify them in this field as well.
    5. (Optional) In Environment variables, specify environment variables in key-value pairs.
    6. (Optional) In Authentication, enable token authentication if the endpoint serves production traffic. The system generates a token. Copy and save the token securely before proceeding. If you are prototyping or testing, you can leave authentication disabled.
  5. (Optional) Configure the Computing resources section:
    1. Select whether the VM should have GPUs.
    2. Specify the VM type: regular or preemptible. VMs without GPUs only support the regular type.
    3. Select the platform and preset.
  6. (Optional) Configure Storage settings:
  7. (Optional) In the Access section, add an SSH key for the VM’s user so you can connect to the VM. You can add new credentials or select existing ones. If you decide to use an existing credential, make sure that the SSH key is stored for the nebius username.
  8. Configure the Network section:
    • Select a subnet or create a new one.
    • Select the IP address type: Public static IP or Private IP. If you want to connect to the resource from the internet, select Public static IP.
  9. Click Create.
The endpoint creation takes approximately five minutes.

How to call an endpoint

Make sure you are in a group that has at least the viewer role within your tenant; for example, the default viewers group. You can check this in the Administration → IAM section of the web console. You can call an endpoint when you want to interact with an AI model hosted in this endpoint; for example, when you want to chat with the model. Each HTTP port is available through a managed https:// URL. gRPC also uses the managed HTTPS URL. For TCP ports, use the managed tls://<host>:443 URL with a TLS client. Endpoints support managed public URLs, shown in Public endpoints as https://.... For some previously created endpoints, Public endpoints can show IP:port instead. To call the endpoint:
  1. Get the endpoint’s managed HTTPS URL:
    1. In the sidebar, go to  Serverless AI → Endpoints.
    2. Open the page of the required endpoint.
    3. Wait until the endpoint is running. Then, in the Network section, copy the public endpoint from the Public endpoints field. Depending on how the endpoint is exposed, this field can show either a managed https://... URL or IP:port.
  2. Call the endpoint by using an HTTP client. For example, with curl:
    In the command, specify the following parameters:
    • <endpoint_URL>: Managed HTTPS URL that you copied earlier.
    • <token>: Authentication token that you specified when you created the endpoint. If you didn’t specify any token, don’t use the Authorization HTTP header.
    • model: AI model that is hosted in the endpoint and that you chat with.
    • content: Message that you want to send to the model.
    The response looks like the following:

How to stop or start an endpoint

Make sure you are in a group that has at least the editor role within your tenant or project; for example, the default editors group. You can check this in the Administration → IAM section of the web console. If you don’t currently need your endpoint but you want to preserve it, you can stop the endpoint and then start it later. Computing resources of stopped endpoints aren’t charged. However, if you mounted a volume to the endpoint, you are charged for the volume even if the endpoint is stopped.
  1. In the sidebar, go to  Serverless AIEndpoints.
  2. Locate the endpoint and then click Stop or Start.
  3. In the window that opens, confirm the action.

How to delete an endpoint

Make sure you are in a group that has at least the editor role within your tenant or project; for example, the default editors group. You can check this in the Administration → IAM section of the web console. When you delete an endpoint, Serverless AI automatically deletes its VM and container (boot) disk. If you no longer need the endpoint, delete it:
  1. In the sidebar, go to  Serverless AI → Endpoints.
  2. Locate the endpoint and then click → Delete.
  3. In the window that opens, confirm the deletion.