Skip to main content

Nebius AI Studio

Nebius AI Studio is available on the Spanway gateway through the nebius/ model prefix. You register a Nebius AI Studio model once in the gateway's config.yaml (or through the Admin UI), and every application then calls it through the gateway's OpenAI-compatible API with a Spanway virtual key. The provider credential stays on the gateway, and every request is authenticated, rate limited, logged and costed in the same way as any other provider.

Unless you override it, the integration sends requests to https://api.studio.nebius.ai/v1. Set api_base in spanway_params to point at a different region, a private endpoint or a self-hosted deployment.

The gateway translates requests and responses for Nebius AI Studio natively, so provider specific parameters and errors are mapped to the OpenAI format for you.

Supported endpoints​

The gateway's endpoint support matrix lists the following endpoints for Nebius AI Studio. Each link explains the request shape and the gateway features that apply to that endpoint.

Model types​

The bundled price map lists 61 Nebius AI Studio models across these modes: Chat, Embedding. The mode decides which gateway endpoint a model is meant for, and it is also used by the gateway's health checks to send the right kind of test request.

Environment variables​

The Nebius AI Studio integration reads the following environment variables. Variables marked as required are the ones the gateway's environment validation checks for this provider. You can also pass any of these values directly in spanway_params (for example api_key or api_base), and the per-model value wins over the environment.

VariableRequiredPurpose
NEBIUS_API_KEYYesCredential the gateway sends to the provider
NEBIUS_API_BASENoOverrides the provider base URL

Reference a variable from config.yaml with the os.environ/ prefix so that the secret never appears in the file itself. Secrets can also come from a secret manager, see secret managers.

Register a model on the gateway​

Add an entry to model_list in config.yaml. The model_name is the public name your applications send, and spanway_params.model tells the gateway which provider and upstream model to call.

model_list:
- model_name: DeepSeek-V4-Pro
spanway_params:
model: nebius/deepseek-ai/DeepSeek-V4-Pro
api_key: os.environ/NEBIUS_API_KEY

Start the gateway with this file:

export NEBIUS_API_KEY="..."
spanway --config config.yaml
Private preview

Spanway is in private preview. The container images and Helm charts will be published soon. To request access, write to sales@spanway.ai, and preview customers receive download instructions in their onboarding pack.

To add the model without a restart, call POST /model/new with the same model_name and spanway_params, or use the Models + Endpoints page in the Admin UI. See model management for details.

Call the model through the gateway​

Send requests to the gateway's /v1/chat/completions endpoint with a virtual key. The gateway maps the public model name to the Nebius AI Studio deployment, translates the request, and returns the response in the OpenAI format.

curl -X POST http://localhost:4000/v1/chat/completions \
-H "Authorization: Bearer $SPANWAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "DeepSeek-V4-Pro",
"messages": [{"role": "user", "content": "Summarize what an AI gateway does in two sentences."}]
}'

The same request works from any OpenAI SDK by setting the base URL to http://localhost:4000 and the API key to a Spanway virtual key. Create keys with POST /key/generate as described in virtual keys.

Models and pricing​

The table lists every Nebius AI Studio model in the gateway's bundled price map. Prices are shown in US dollars per 1 million tokens, computed from the per-token values the gateway uses for spend tracking. Context window sizes are the provider limits recorded in the same file. Capabilities are the supports_* flags set for each model.

info

Prices come from the price map bundled with this Spanway build. They are used to calculate the spend recorded for each request, key, team and user. Your negotiated rates may differ, and you can override them per deployment with custom pricing.

Model (model value)ModeMax input tokensMax output tokensInput per 1M tokensOutput per 1M tokensOther pricingCapabilities
nebius/BAAI/bge-en-iclEmbedding32,768$0.01$0
nebius/BAAI/bge-multilingual-gemma2Embedding8,192$0.01$0
nebius/deepseek-ai/DeepSeek-R1Chat128,000128,000$0.8$2.40tools, reasoning
nebius/deepseek-ai/DeepSeek-R1-0528Chat164,000164,000$0.8$2.40tools, reasoning
nebius/deepseek-ai/DeepSeek-R1-Distill-Llama-70BChat128,000128,000$0.25$0.75tools
nebius/deepseek-ai/DeepSeek-V3Chat128,000128,000$0.5$1.50tools
nebius/deepseek-ai/DeepSeek-V3-0324Chat128,000128,000$0.5$1.50tools
nebius/deepseek-ai/DeepSeek-V4-FlashChat1,048,5761,048,576$0.14$0.28tools, reasoning
nebius/deepseek-ai/DeepSeek-V4-Flash-0731Chat1,024,0001,024,000$0.14$0.28tools, reasoning
nebius/deepseek-ai/DeepSeek-V4-ProChat1,048,5761,048,576$1.75$3.50tools, reasoning
nebius/deepseek-ai/DeepSeek-V4-Pro-0813Chat979,000$1.32$3.96tools, reasoning
nebius/deepseek-ai/DeepSeek-V4.1-FlashChat1,048,000384,000$0.3$1.20tools, vision, reasoning
nebius/google/gemma-3-27b-itChat110,000110,000$0.1$0.3tools, vision
nebius/intfloat/e5-mistral-7b-instructEmbedding32,768$0.01$0
nebius/meta-llama/Llama-3.3-70B-InstructChat131,072131,072$0.13$0.4tools
nebius/meta-llama/Llama-Guard-3-8BChat128,000128,000$0.02$0.06
nebius/meta-llama/Meta-Llama-3.1-8B-InstructChat128,000128,000$0.02$0.06tools
nebius/meta-llama/Meta-Llama-3.1-70B-InstructChat128,000128,000$0.13$0.4tools
nebius/meta-llama/Meta-Llama-3.1-405B-InstructChat128,000128,000$1.00$3.00tools
nebius/MiniMaxAI/MiniMax-M2.5Chat196,608196,608$0.3$1.20tools, reasoning
nebius/MiniMaxAI/MiniMax-M3Chat1,048,5761,048,576$0.3$1.20tools, vision, reasoning
nebius/mistralai/Mistral-Nemo-Instruct-2407Chat128,000128,000$0.04$0.12tools
nebius/moonshotai/Kimi-K2.6Chat262,144262,144$0.95$4.00tools, vision, reasoning
nebius/moonshotai/Kimi-K2.7-CodeChat262,144262,144$0.95$4.00tools, vision, reasoning
nebius/moonshotai/Kimi-K3Chat1,024,0001,024,000$3.00$15.00tools, vision, reasoning
nebius/NousResearch/Hermes-3-Llama-3.1-405BChat128,000128,000$1.00$3.00tools
nebius/NousResearch/Hermes-4-70BChat131,072131,072$0.13$0.4tools, reasoning
nebius/NousResearch/Hermes-4-405BChat131,072131,072$1.00$3.00tools, reasoning
nebius/nvidia/Cosmos3-Super-ReasonerChat262,144262,144$0.1$0.3tools, vision, reasoning
nebius/nvidia/Llama-3_1-Nemotron-Ultra-253B-v1Chat131,072131,072$0.6$1.80reasoning
nebius/nvidia/Llama-3.1-Nemotron-Ultra-253B-v1Chat128,000128,000$0.6$1.80tools
nebius/nvidia/Llama-3.3-Nemotron-Super-49B-v1Chat131,072131,072$0.1$0.4tools
nebius/nvidia/Nemotron-3_5-LightningChat1,048,5761,048,576$0.06$0.24tools, reasoning
nebius/nvidia/Nemotron-3-Nano-OmniChat262,144262,144$0.06$0.24tools, vision, reasoning
nebius/nvidia/nemotron-3-super-120b-a12bChat262,144262,144$0.3$0.9tools, reasoning
nebius/nvidia/Nemotron-3-Ultra-550b-a55bChat1,048,5761,048,576$1.00$3.00tools, reasoning
nebius/nvidia/NVIDIA-Nemotron-3-Nano-30B-A3BChat262,144262,144$0.06$0.24tools, reasoning
nebius/openai/gpt-oss-120bChat131,072131,072$0.15$0.6tools, reasoning
nebius/openbmb/MiniCPM-V-4_5Chat32,00032,000$0.658$1.11vision
nebius/Qwen/Qwen2-VL-7B-InstructChat131,072131,072$0.02$0.06vision
nebius/Qwen/Qwen2-VL-72B-InstructChat131,072131,072$0.13$0.4tools, vision
nebius/Qwen/Qwen2.5-32B-InstructChat128,000128,000$0.06$0.2tools
nebius/Qwen/Qwen2.5-72B-InstructChat128,000128,000$0.13$0.4tools
nebius/Qwen/Qwen2.5-Coder-7BChat32,76832,768$0.01$0.03tools
nebius/Qwen/Qwen2.5-VL-72B-InstructChat32,00032,000$0.25$0.75tools, vision
nebius/Qwen/Qwen3-4BChat32,76832,768$0.08$0.24tools
nebius/Qwen/Qwen3-14BChat32,76832,768$0.08$0.24tools
nebius/Qwen/Qwen3-30B-A3BChat32,76832,768$0.1$0.3tools
nebius/Qwen/Qwen3-30B-A3B-Instruct-2507Chat262,144262,144$0.1$0.3tools
nebius/Qwen/Qwen3-32BChat40,96040,960$0.1$0.3tools
nebius/Qwen/Qwen3-235B-A22BChat262,144262,144$0.2$0.6tools
nebius/Qwen/Qwen3-235B-A22B-Instruct-2507Chat262,144262,144$0.2$0.6tools
nebius/Qwen/Qwen3-Embedding-8BEmbedding40,960$0.01$0
nebius/Qwen/Qwen3-Next-80B-A3B-ThinkingChat128,000128,000$0.15$1.20tools, reasoning
nebius/Qwen/Qwen3.5-397B-A17BChat262,144262,144$0.6$3.60tools, reasoning
nebius/Qwen/Qwen3.8-27BChat262,144$0.45$3.00tools, reasoning
nebius/Qwen/QwQ-32BChat32,76832,768$0.15$0.45tools, reasoning
nebius/zai-org/GLM-5.1Chat202,752202,752$1.40$4.40tools, reasoning
nebius/zai-org/GLM-5.2Chat1,048,5761,048,576$1.40$4.40tools, reasoning
nebius/zai-org/GLM-5.3Chat1,024,000$1.40$4.40tools, reasoning
nebius/zai-org/GLM-5.3-FlashChat1,024,0001,024,000$0.15$0.5tools, vision, reasoning