Nebius
All functionality related to Nebius AI Studio
Nebius AI Studio provides API access to a wide range of state-of-the-art large language models and embedding models for various use cases.
Installation and Setup
The Nebius integration can be installed via pip:
pip install langchain-nebius
To use Nebius AI Studio, you'll need an API key which you can obtain from Nebius AI Studio. The API key can be passed as an initialization parameter api_key
or set as the environment variable NEBIUS_API_KEY
.
import os
os.environ["NEBIUS_API_KEY"] = "YOUR-NEBIUS-API-KEY"
Available Models
The full list of supported models can be found in the Nebius AI Studio Documentation.
Chat models
ChatNebius
The ChatNebius
class allows you to interact with Nebius AI Studio's chat models.
See a usage example.
from langchain_nebius import ChatNebius
# Initialize the chat model
chat = ChatNebius(
model="Qwen/Qwen3-30B-A3B-fast", # Choose from available models
temperature=0.6,
top_p=0.95
)
Embedding models
NebiusEmbeddings
The NebiusEmbeddings
class allows you to generate vector embeddings using Nebius AI Studio's embedding models.
See a usage example.
from langchain_nebius import NebiusEmbeddings
# Initialize embeddings
embeddings = NebiusEmbeddings(
model="BAAI/bge-en-icl" # Default embedding model
)