---
title: "Working with Deepseek in Pixeltable"
description: "Pixeltable's Deepseek integration enables you to access Deepseek's LLM via the Deepseek API."
url: "https://www.pixeltable.com/notebooks/working-with-deepseek"
updated: "2026-10-29"
---

# Working with Deepseek in Pixeltable

Pixeltable's Deepseek integration enables you to access Deepseek's LLM via the Deepseek API.

- **Type:** Notebook
- **Group:** Providers

## What it uses

- **Install:** `pip install pixeltable openai`
- **Environment variables it names:** `DEEPSEEK_API_KEY`
- **Pixeltable calls:** `deepseek.chat_completions()`, `pxt.create_table()`, `add_computed_column()`, `insert()`

## A look at the code

```python
from pixeltable.functions import deepseek

# Create a table in Pixeltable and add a computed column that calls Deepseek

t = pxt.create_table('deepseek_demo/chat', {'input': pxt.String})

msgs = [{'role': 'user', 'content': t.input}]
t.add_computed_column(
    output=deepseek.chat_completions(
        messages=msgs, model='deepseek-flash'
    )
)
```

## Open it

- **Open in Colab:** https://colab.research.google.com/github/pixeltable/pixeltable/blob/release/docs/release/howto/providers/working-with-deepseek.ipynb
- **Docs page:** https://docs.pixeltable.com/howto/providers/working-with-deepseek
- **Source on GitHub:** https://github.com/pixeltable/pixeltable/blob/release/docs/release/howto/providers/working-with-deepseek.ipynb
