This documentation page is also available as an interactive notebook. You can launch the notebook in
Kaggle or Colab, or download it for use with an IDE or local Jupyter installation, by clicking one of the
above links.
Pixeltable’s Nebius Token Factory integration enables you to access
Nebius language and embedding models via an OpenAI-compatible API.
Prerequisites
Important notes
- Nebius usage may incur costs based on your Nebius plan.
- Be mindful of sensitive data and consider security measures when
integrating with external services.
First you’ll need to install the required libraries and enter a Nebius
API key. Nebius uses the OpenAI SDK as its Python API, so we need to
install it in addition to Pixeltable.
Now let’s create a Pixeltable directory to hold the tables for our demo.
Chat completions
Create a Table: In Pixeltable, create a table with columns to represent
your input data and the columns where you want to store the results from
Nebius.
Created table ‘chat’.
Added 0 column values with 0 errors in 0.01 s
Added 0 column values with 0 errors in 0.00 s
No rows affected.
Inserted 2 rows with 0 errors in 4.43 s (0.45 rows/s)
Embeddings
Nebius currently serves the embedding model Qwen/Qwen3-Embedding-8B.
By default it produces 4096-dimensional embeddings, which exceed
Pixeltable’s embedding-index limit of 4000 dimensions. Request a smaller
size via model_kwargs when you need an indexable embedding.
Created table ‘embeddings’.
Added 0 column values with 0 errors in 0.00 s
No rows affected.
Inserted 1 row with 0 errors in 8.15 s (0.12 rows/s)
1 row inserted.
To build an embedding index, truncate to an indexable size (for example
1024) with model_kwargs:
Inserted 1 row with 0 errors in 3.62 s (0.28 rows/s)
1 row inserted.
Learn more
To learn more about advanced techniques like RAG operations in
Pixeltable, check out the RAG Operations in
Pixeltable
tutorial.
If you have any questions, don’t hesitate to reach out.