Skip to main content
All functionality related to Nebius Token Factory
Nebius Token Factory 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:
To use Nebius Token Factory, you’ll need an API key which you can obtain from Nebius Token Factory. The API key can be passed as an initialization parameter api_key or set as the environment variable NEBIUS_API_KEY.

Available models

The full list of supported models can be found in the Nebius Token Factory Models Page.

Chat models

ChatNebius

The ChatNebius class allows you to interact with Nebius Token Factory’s chat models. See a usage example.

Embedding models

NebiusEmbeddings

The NebiusEmbeddings class allows you to generate vector embeddings using Nebius Token Factory’s embedding models. See a usage example.

Retrievers

NebiusRetriever

The NebiusRetriever enables efficient similarity search using embeddings from Nebius Token Factory. It leverages high-quality embedding models to enable semantic search over documents. See a usage example.

Tools

NebiusRetrievalTool

The NebiusRetrievalTool allows you to create a tool for agents based on the NebiusRetriever.