Skip to main content
To deploy an AI model, create an endpoint. Serverless AI endpoints run on Compute virtual machines (VMs) managed by Serverless AI. You can access your model by using the endpoint.

Prerequisites

How to create an endpoint

If you want to create an endpoint based on an existing one, find the endpoint on the Serverless AI → Endpoints page and click → Clone. On the creation page that opens, review the prefilled settings, modify them if needed, and click Create endpoint.
  1. In the sidebar, go to  Serverless AI → Endpoints.
  2. Click  Create endpoint.
  3. Specify the endpoint name.
  4. In Configuration, select Custom.
  5. Configure Endpoint settings:
    1. In Image path, set the path to the container image.
    2. If you use a private registry, in Private registry, select an existing registry or click  Add 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 Secret environment variables, click  Create secret to store a sensitive value in SecretStash and inject it as an environment variable. In the window that opens, specify the Key (environment variable name) and Value (secret data), then click Create.
    7. (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.
  6. (Optional) Configure the Computing resources section:
    1. Select whether the underlying VM should have GPUs.
    2. Specify the VM type: regular or preemptible. VMs without GPUs only support the regular type. If the endpoint runs on a preemptible VM, Nebius AI Cloud can revoke the VM at any time. The endpoint stops with the Preempted code, but you can start it again after that. The VM type doesn’t affect how long capacity for an endpoint is being provisioned.
    3. Select the platform and preset.
    4. If you selected the preemptible VM type, in Max price, select or create a pricing policy, or choose Follows spot price.
  7. (Optional) Configure Storage settings:
    • Under Container disk size, specify at least 50 GiB for GPU workloads or 20 GiB for CPU-only workloads. If the container image requires a bigger disk size, set at least the minimum required value for the image. Otherwise, the workloads won’t be able to launch. For more information, see how disk performance depends on disk size.
    • Under Mounted volumes, click Attach volume to attach a bucket or a filesystem. You can create a bucket or filesystem, or use an existing one. To create a new bucket, see Bucket parameters. To create a new filesystem, see Volume parameters.
  8. (Optional) In the Files section, add one or more small configuration files to inject into the container at launch:
    • Select Upload files to upload files from your machine, or Create text files to enter the file content and click Create file.
    • In Mount path, specify the absolute path to the file in the container, for example, /mnt/files/config.yaml.
    Injected files are read-only and limited to 64 KiB each.
  9. (Optional) In the Access section, configure User name and SSH key to connect to the running workload for debugging. You can create 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.
  10. 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.
  11. Click Create endpoint.
The endpoint creation takes approximately five minutes.

How to change the endpoint container

After you create an endpoint, you can’t change its settings, such as a container image, an entrypoint command, computing resources, or environment variables. If you still need to change them, do one of the following:
  • Delete the endpoint and create a new one with the required settings. The new endpoint is provided with a new HTTPS URL.
  • Update the image under the same image path and tag that the endpoint is already using. After that, restart the endpoint. Serverless AI pulls the image again and runs a new version while the same HTTPS URL and IP address are preserved for the endpoint. This works only if the endpoint references a tag, not a fixed digest.