Skip to main content

Prerequisites

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.

How to create an endpoint

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.
  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 Follow 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 call an endpoint

For this operation, it’s enough to be in a group that has 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:

Traffic and connection limits

Managed public URLs of https:// and tls:// endpoints are served through Nebius Tunnels, which means the limits for Tunnels apply to them. The limits for each endpoint are measured separately:
You cannot change the above limits from the web console.
All endpoints in a project share the project limit, and all endpoints and tunnels in a region share the region limit. An endpoint never gets more than its own limit, but it can get less when its project or region is busy. When usage reaches a limit, responses may take longer until usage drops below the limit. Take these limits into account when you plan endpoints that serve high request volumes or large responses, such as audio, video or long streamed model outputs.

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.

How to delete an endpoint

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. Find the endpoint and then click → Delete.
  3. In the window that opens, confirm the deletion.

See also