Basics
This page explains the building blocks of xCloud AI and their rules, regardless of whether you manage them in the web app or via the management API. How to carry out the individual steps is described in those two parts.
How it fits together
A model passes through four stages before it answers requests:
- You import a model from Hugging Face or from an S3 bucket. xCloud AI creates a copy of the model files.
- You deploy the imported model: it starts with an engine on a share of a GPU, the flavor, and answers requests under its name.
- You create a service account and define which deployments it may access. Its keys identify your programs.
- Your programs send requests to the deployment (see Using models).
| Term | Meaning |
|---|---|
| Imported model | Copy of the model files in xCloud AI, the basis of every deployment |
| Deployment | Imported model that runs on a GPU and answers requests |
| Inference | Use of a deployed model as a chatbot or agent |
| Flavor | GPU share of a deployment: an eighth of a card up to several coupled GPUs |
| Engine | Software that runs the model on the GPU, e.g. vLLM |
| Service account | Access for a program, with permissions and keys |
The web app and the management API use different names for some things:
| Web app | Management API |
|---|---|
| Deployment | Placement (/model-placements) |
| Status, e.g. Running | Phase, e.g. Ready |
Imported models
An import copies the model files into xCloud AI once. Models in the safetensors format are supported. The import runs in the background and takes ā depending on the size of the download ā from a few minutes to hours.
Possible sources:
- Hugging Face: a public, private or gated repository, given as
organisation/model, e.g.Qwen/Qwen3.8-27B, and optionally a revision (branch, tag or commit;mainif left empty). For private or gated repositories, you need an access token with read permission for this repository. - S3 bucket: a folder in S3-compatible storage, including xCloud Storage, given as an HTTPS address with endpoint, bucket and path. For private buckets, you need an Access Key and Secret Key with read permission. The folder may contain at most 20,000 files; specify the folder that contains only the model.
The access token, Access Key and Secret Key are used only for this import and are not stored. If the model isn't available as safetensors, the check of the source rejects the import. If you imported from xCloud Storage, you can delete the original from your bucket afterwards.
The status of an imported model, with the phase in the management API in brackets:
- Importing (
Verifying,Importing): the source is being checked, the files are being copied. - Ready (
Ready): the model can be deployed; model storage is billed. - Failed (
Failed): the import failed; the reason is shown with the model.
You can delete an imported model as soon as no deployment uses it any more.
Irreversible
A deleted model can't be restored. Deployments that used it can no longer be started afterwards; to start them, import the model again.
Names
Model names and deployment names are unique within the project and can't be changed later.
They consist of at most 51 lowercase letters, digits, hyphens and single dots, and start
and end with a letter or a digit. Names that start with batch- or end with -batch are
reserved.
The management API writes dots as hyphens: a model called qwen3.8-27b in the web app is
called qwen3-8-27b in the API. Names without a dot are the same in both.
Flavors
A flavor defines which share of B300 GPUs a deployment receives, from an eighth of a card up to several coupled GPUs. It determines the GPU memory and the share of compute. Which flavors exist and what they cost is shown under Price details in the web app.
The GPU memory must hold the model's weights and leave room next to them for the KV cache, in which the engine keeps the context of running requests. During the import, xCloud AI checks which flavors a model fits and doesn't offer flavors that are too small. How much room is left for the KV cache depends on the start parameters; the example with Qwen3.8-27B works it out.
Two more limits apply:
- GPU limit: together, your deployments may occupy at most as many B300 cards as you're entitled to; a flavor with half a card counts as half a card. For more, contact support or your personal contact person.
- Free cards: a deployment only starts if a card for its flavor is free immediately. Running deployments aren't affected by this.
Engines and start parameters
The engine runs the model on the GPU and provides the OpenAI-compatible interface. xCloud AI offers two provided engines, vLLM and SGLang, both for models in the safetensors format. Alternatively, you start a custom image.
xCloud AI passes the start parameters to the engine, after the values the platform sets itself (model directory, name, port). With them you set, e.g., the context length, the number of concurrent requests or the output of the reasoning. Which start parameters exist is described in the documentation of the respective engine. A tested example is shown in Qwen3.8-27B with vLLM.
Custom image
You specify a custom image with its digest, for example
registry.example.com/vllm-eigen@sha256:9b2eā¦. Images named only by a tag are rejected.
xCloud currently pulls custom images only from public registries.
A custom image starts with its own entrypoint; the start parameters replace its CMD. It
must offer an OpenAI-compatible interface on port 8000 and report under /health that it
is ready. It finds the imported model read-only in the directory /mnt/models. The
environment variables XCLOUD_MODEL_PATH, XCLOUD_SERVED_MODEL and XCLOUD_PORT give the
model directory, name and port.
Deployments
A deployment answers requests under its name; it goes in the model field of every
request. The same rules apply to the name as to model names (see Names).
The status of a deployment, with the phase in the management API in brackets:
- Setting up (
Pending,AwaitingMaterializer,Displaced): the GPU is assigned, the engine is starting. - Not starting (like Setting up, with an error message in
status.message): the engine repeatedly fails to start. - Running (
Ready): the model answers requests; the running time is billed. - Failed (
Failed): the engine didn't start or aborted. - Ended (
Released): the deployment has ended and holds no GPU.
If a deployment doesn't start, the engine's start log gives the reason. If it reports
CUDA out of memory, the flavor's GPU memory isn't enough for the chosen start parameters:
reduce the number of concurrent requests or the context length, or choose a larger flavor.
A deployment can be restarted with new values: with a different flavor, a different engine or different start parameters, from the same imported model and under the same name. The service accounts can access it as before. If you restart a running deployment, requests fail for a few minutes. A failed or ended deployment needs a free card to restart.
When you end a deployment, it releases the GPU immediately. A running deployment then no longer answers requests; the running time up to that moment is billed. If you end a deployment that is still being set up, there are no costs. The imported model is kept, and its model storage continues to be billed until you delete it. Ended deployments stay in the list until the end of the billing period, with their costs in that period.
Service accounts and keys
A service account is a program's access. It defines what the program may access:
- Private models: which deployments the service account may send requests to: none, all (including future ones) or selected ones. Ended deployments can't be selected.
- Import models: allows the service account to use the management API. It may then import and deploy models, restart and end all deployments of the project and read the usage. It may always send requests to the deployments it created itself.
A service account needs at least one of these permissions. Its keys come in two kinds:
| Kind | Used for |
|---|---|
| Key for requests | Requests to the deployments (Using models) |
| Key for deployments | The management API; only with Import models |
Each interface rejects the other kind with 401. A service account has at most two keys
per kind; this lets you replace a key without your program failing. You create service
accounts and keys exclusively in the web app. A key is shown only once,
when it is issued.
Keep it safe, e.g. in a password manager or in the secret store of your CI system.
Keys are valid until a date or indefinitely. 30 days before a key expires, you and the project's Owners receive an email. If you change a service account's access, the change applies immediately to all its keys.
If you delete a service account, all its keys are revoked. Deployments keep running and continue to be billed, even if no service account may access them any more.
Billing
With private models, you pay for two things, not for individual tokens:
- Model storage: per GB and month, from the status Ready until you delete the model. Cancelled and failed imports cost nothing.
- Deployments: per minute by flavor, from the status Running until you end the deployment. Requests to your deployments don't cost any tokens.
The prices per flavor and for model storage are shown under Price details in the web app. To stop incurring costs, end all deployments and delete the imported models.