Working with Nebius

Pixeltable's Nebius Token Factory integration enables you to access Nebius language and embedding models via an OpenAI-compatible API.

Providers · Notebook · Updated

Colab runs it in your browser. If it calls a model provider, it asks for that provider's API key in a cell.

What it uses

Install
terminal
pip install pixeltable openai
Environment variables it names
NEBIUS_API_KEY
Pixeltable calls
nebius.chat_completions()nebius.embeddings()pxt.create_table()add_computed_column()insert()add_embedding_index()similarity()

A look at the code

working-with-nebius.ipynb
from pixeltable.functions import nebius
chat_t = pxt.create_table('nebius_demo/chat', {'input': pxt.String})
messages = [{'role': 'user', 'content': chat_t.input}]
chat_t.add_computed_column(
output=nebius.chat_completions(
messages=messages,
model='Qwen/Qwen3-30B-A3B-Instruct-2507',
model_kwargs={
# Optional dict with parameters for the Nebius API
'max_tokens': 300,
'temperature': 0.7,
},
)
)
chat_t.add_computed_column(
response=chat_t.output.choices[0].message.content
)

One cell of the notebook, copied as it is. Open it in Colab for the rest.

Browse all 103