Nebius
Run an LLM on Nebius with the right surface: rent GPU VMs or Kubernetes with the nebius CLI, or call Token Factory's managed OpenAI-compatible API. Both come with cost controls and a verified teardown.
Scope: Nebius AI Cloud CLI (nebius), Compute VMs, Managed Service for Kubernetes (mk8s), quotas, and Nebius Token Factory (the new name for Nebius AI Studio): serverless inference, batch, fine-tuning, files, dedicated endpoints. Out of scope: provider choice and cross-provider flow (cloud-llms), gateway (llm-gateway), vLLM and engine tuning (self-hosted-llms), picking hosting (choosing-llm-hosting).
Work through the steps in order. Load a reference only when a step names it.
Discover first
Read-only. Never print keys.
command -v nebius kubectl jq curl && nebius version 2>/dev/null
env | cut -d= -f1 | grep -i -E 'NEBIUS' || echo "no NEBIUS_* env var"
nebius iam whoami 2>/dev/null || echo "nebius CLI not configured"
nebius profile list 2>/dev/null
# running VMs and clusters in the profile's project (these bill)
nebius compute instance list 2>/dev/null
nebius mk8s cluster list 2>/dev/null
# Token Factory reachability (key from env, never echoed)
[ -n "$NEBIUS_API_KEY" ] && curl -sS https://api.tokenfactory.nebius.com/v1/models -H "Authorization: Bearer $NEBIUS_API_KEY" | jq -r '.data[:5][].id'
Decision flow
- Want a hosted model, per-token billing, no GPUs to run: Token Factory serverless (
references/token-factory-api.md).
- Need dedicated capacity, a region choice or custom weights without running servers: Token Factory dedicated endpoints (
references/dedicated-endpoints.md).
- Want your own engine on a GPU box: Compute VM (
references/vms-and-kubernetes.md).
- Several models, autoscaling, K8s tooling: Managed Kubernetes node group (
references/vms-and-kubernetes.md).
- Unsure about price or quota:
references/limits-and-billing.md.
Rules
- Ask before creating billable resources. VMs, node groups, dedicated endpoints and fine-tuning jobs bill; show platform, preset, count, region and minimum replicas first.
- Secrets never touch output. Token Factory keys come from a
0600 file or NEBIUS_API_KEY; the CLI profile for automation uses a service account with --private-key-file, not pasted keys. Keys are shown once at creation.
- Use project-scoped keys. Old AI Studio keys were scheduled to stop working on January 31, 2026; create one key per project and tool.
- One CLI profile per project. Region-specific config is tied to the project.
- Pin versions. Pin the model id, image family, Kubernetes version and driver preset.
- Quota counts stopped VMs. Delete VMs you do not need instead of stopping them.
- Dedicated endpoints bill per GPU-hour while enabled. Disable or delete when idle; disabling releases capacity and it may not come back.
- Always tear down. Follow
references/teardown.md.
Workflows
Account and auth
Call Token Factory
Dedicated endpoint
GPU VM or Kubernetes
Connect to a gateway or client
Scale, monitor cost, update
Tear down
Troubleshoot
Reference index
references/setup-and-auth.md: CLI install and profiles, service accounts, Token Factory keys, AI Studio rename.
references/token-factory-api.md: base URL, models, chat, tools, structured output, embeddings, batch, files, fine-tuning.
references/dedicated-endpoints.md: control plane API, templates, scaling, stop, delete.
references/vms-and-kubernetes.md: platforms, VM create, mk8s cluster and GPU node groups.
references/litellm-and-clients.md: LiteLLM and OpenAI SDK configuration.
references/limits-and-billing.md: rate limits, quotas, reservations, billing.
references/teardown.md: delete order and verification.
references/troubleshooting.md: errors and fixes.
Companion skills
cloud-llms: cross-provider workflow. Install: npx skills add ScaleDockHQ/llm-skills --skill cloud-llms.
llm-gateway: LiteLLM gateway, fallbacks, budgets. Install: npx skills add ScaleDockHQ/llm-skills --skill llm-gateway.
self-hosted-llms: vLLM and engines on your VM or cluster. Install: npx skills add ScaleDockHQ/llm-skills --skill self-hosted-llms.
choosing-llm-hosting: where to host. Install: npx skills add ScaleDockHQ/llm-skills --skill choosing-llm-hosting.
fine-tuning-llms: data and training choices. Install: npx skills add ScaleDockHQ/llm-skills --skill fine-tuning-llms.
llm-evals: verify quality and speed. Install: npx skills add ScaleDockHQ/llm-skills --skill llm-evals.
llm-observability: traces and metrics. Install: npx skills add ScaleDockHQ/llm-skills --skill llm-observability.
1---2name: nebius3description: Run LLMs on Nebius, GPU VMs and Managed Kubernetes (mk8s) through the nebius CLI, plus Nebius Token Factory (formerly AI Studio) for OpenAI-compatible inference, batch, fine-tuning and dedicated endpoints at api.tokenfactory.nebius.com. Use for "Nebius", "nebius compute instance create", "nebius mk8s", "Token Factory", "AI Studio", "NEBIUS_API_KEY", "dedicated endpoint", quota or capacity errors on Nebius, or wiring Nebius into LiteLLM (nebius/ prefix). For cross-provider choice use cloud-llms, for the gateway llm-gateway, for engines and vLLM self-hosted-llms.4license: MIT5compatibility: Needs bash, curl and jq; the nebius CLI (optional kubectl) for VMs and Kubernetes. Requires a Nebius account, project, and a Token Factory API key or CLI profile, kept in 0600 files or environment variables. Creating VMs, clusters, node groups, dedicated endpoints or fine-tuning jobs bills money and needs the user's explicit approval.6metadata:7 source: https://skillmd.com/skills/scaledockhq/nebius8 author: ScaleDockHQ9 version: "0.1.0"10---1112# Nebius1314Run an LLM on Nebius with the right surface: rent GPU VMs or Kubernetes with the `nebius` CLI, or call Token Factory's managed OpenAI-compatible API. Both come with cost controls and a verified teardown.1516**Scope:** Nebius AI Cloud CLI (`nebius`), Compute VMs, Managed Service for Kubernetes (mk8s), quotas, and Nebius Token Factory (the new name for Nebius AI Studio): serverless inference, batch, fine-tuning, files, dedicated endpoints. Out of scope: provider choice and cross-provider flow (`cloud-llms`), gateway (`llm-gateway`), vLLM and engine tuning (`self-hosted-llms`), picking hosting (`choosing-llm-hosting`).1718Work through the steps in order. Load a reference only when a step names it.1920## Discover first2122Read-only. Never print keys.2324```bash25command -v nebius kubectl jq curl && nebius version 2>/dev/null26env | cut -d= -f1 | grep -i -E 'NEBIUS' || echo "no NEBIUS_* env var"27nebius iam whoami 2>/dev/null || echo "nebius CLI not configured"28nebius profile list 2>/dev/null29# running VMs and clusters in the profile's project (these bill)30nebius compute instance list 2>/dev/null31nebius mk8s cluster list 2>/dev/null32# Token Factory reachability (key from env, never echoed)33[ -n "$NEBIUS_API_KEY" ] && curl -sS https://api.tokenfactory.nebius.com/v1/models -H "Authorization: Bearer $NEBIUS_API_KEY" | jq -r '.data[:5][].id'34```3536## Decision flow37381. Want a hosted model, per-token billing, no GPUs to run: Token Factory serverless (`references/token-factory-api.md`).392. Need dedicated capacity, a region choice or custom weights without running servers: Token Factory dedicated endpoints (`references/dedicated-endpoints.md`).403. Want your own engine on a GPU box: Compute VM (`references/vms-and-kubernetes.md`).414. Several models, autoscaling, K8s tooling: Managed Kubernetes node group (`references/vms-and-kubernetes.md`).425. Unsure about price or quota: `references/limits-and-billing.md`.4344## Rules4546- **Ask before creating billable resources.** VMs, node groups, dedicated endpoints and fine-tuning jobs bill; show platform, preset, count, region and minimum replicas first.47- **Secrets never touch output.** Token Factory keys come from a `0600` file or `NEBIUS_API_KEY`; the CLI profile for automation uses a service account with `--private-key-file`, not pasted keys. Keys are shown once at creation.48- **Use project-scoped keys.** Old AI Studio keys were scheduled to stop working on January 31, 2026; create one key per project and tool.49- **One CLI profile per project.** Region-specific config is tied to the project.50- **Pin versions.** Pin the model id, image family, Kubernetes version and driver preset.51- **Quota counts stopped VMs.** Delete VMs you do not need instead of stopping them.52- **Dedicated endpoints bill per GPU-hour while enabled.** Disable or delete when idle; disabling releases capacity and it may not come back.53- **Always tear down.** Follow `references/teardown.md`.5455## Workflows5657### Account and auth5859- [ ] Install `nebius`, create a profile for the project -> `references/setup-and-auth.md`60- [ ] Create a Token Factory API key in the right project -> `references/setup-and-auth.md`6162### Call Token Factory6364- [ ] List models, call chat completions, use tools, JSON schema, batch -> `references/token-factory-api.md`6566### Dedicated endpoint6768- [ ] List templates, create endpoint, wait, call with `routing_key` -> `references/dedicated-endpoints.md`6970### GPU VM or Kubernetes7172- [ ] List platforms and quotas, create VM or mk8s cluster and node group -> `references/vms-and-kubernetes.md`7374### Connect to a gateway or client7576- [ ] LiteLLM `nebius/` entries and OpenAI SDK settings -> `references/litellm-and-clients.md`7778### Scale, monitor cost, update7980- [ ] Replicas, node counts, quota checks, usage view -> `references/limits-and-billing.md`8182### Tear down8384- [ ] Delete endpoints, node groups, clusters, VMs, disks; revoke keys -> `references/teardown.md`8586### Troubleshoot8788- [ ] Match the symptom -> `references/troubleshooting.md`8990## Reference index9192- `references/setup-and-auth.md`: CLI install and profiles, service accounts, Token Factory keys, AI Studio rename.93- `references/token-factory-api.md`: base URL, models, chat, tools, structured output, embeddings, batch, files, fine-tuning.94- `references/dedicated-endpoints.md`: control plane API, templates, scaling, stop, delete.95- `references/vms-and-kubernetes.md`: platforms, VM create, mk8s cluster and GPU node groups.96- `references/litellm-and-clients.md`: LiteLLM and OpenAI SDK configuration.97- `references/limits-and-billing.md`: rate limits, quotas, reservations, billing.98- `references/teardown.md`: delete order and verification.99- `references/troubleshooting.md`: errors and fixes.100101## Companion skills102103- `cloud-llms`: cross-provider workflow. Install: `npx skills add ScaleDockHQ/llm-skills --skill cloud-llms`.104- `llm-gateway`: LiteLLM gateway, fallbacks, budgets. Install: `npx skills add ScaleDockHQ/llm-skills --skill llm-gateway`.105- `self-hosted-llms`: vLLM and engines on your VM or cluster. Install: `npx skills add ScaleDockHQ/llm-skills --skill self-hosted-llms`.106- `choosing-llm-hosting`: where to host. Install: `npx skills add ScaleDockHQ/llm-skills --skill choosing-llm-hosting`.107- `fine-tuning-llms`: data and training choices. Install: `npx skills add ScaleDockHQ/llm-skills --skill fine-tuning-llms`.108- `llm-evals`: verify quality and speed. Install: `npx skills add ScaleDockHQ/llm-skills --skill llm-evals`.109- `llm-observability`: traces and metrics. Install: `npx skills add ScaleDockHQ/llm-skills --skill llm-observability`.