Prerequisites
- Web console
- CLI
- REST API
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 container virtual machines (VMs) managed by Serverless AI. You can access your model by using the endpoint.- Web console
- CLI
- REST API
- In the sidebar, go to Serverless AI → Endpoints.
- Click Create endpoint.
- Specify the endpoint name.
- In Configuration, select Custom.
-
Configure Endpoint settings:
- In Image path, set the path to the container image.
- If you use a private registry, in Private registry, select an existing registry or click Add and provide the details for your registry.
- In Ports, set the container ports for the endpoint. You can add multiple ports.
- (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.
- (Optional) In Environment variables, specify environment variables in key-value pairs.
- (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.
- (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.
-
(Optional) Configure the Computing resources section:
- Select whether the container VM should have GPUs.
- Specify the VM type: regular or preemptible. VMs without GPUs only support the regular type.
- Select the platform and preset.
-
(Optional) Configure Storage settings:
- Under Container disk, set Size. 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.
-
(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.
- (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.
-
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.
- Click Create endpoint.
How to call an endpoint
For this operation, it’s enough to be in a group that has theviewer 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:
-
Get the endpoint’s managed HTTPS URL:
- Web console
- CLI
- REST API
- In the sidebar, go to Serverless AI → Endpoints.
- Open the page of the required endpoint.
- 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 orIP:port.
-
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 theAuthorizationHTTP 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.
How to stop or start an endpoint
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.- Web console
- CLI
- REST API
- In the sidebar, go to Serverless AI → Endpoints.
- Locate the endpoint and then click → Stop or Start.
- In the window that opens, confirm the action.
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:- Web console
- CLI
- REST API
- In the sidebar, go to Serverless AI → Endpoints.
- Locate the endpoint and then click → Delete.
- In the window that opens, confirm the deletion.