One-liner to run DeepSeek V4.1 Flash (1M context) via Pi CLI on Hugging Face

lhoestq · x · 2026-11-30

Hugging Face co-founder Quentin Lhoest shares an "underrated command": running deepseek-ai/DeepSeek-V4.1-Flash-1017 through the Pi agent CLI via Hugging Face Inference Providers.

Per the screenshot, the model takes text+image input, costs $0.10/$0.29 per 1M tokens, and has a 1.05M-token context. Setup: install Pi with a curl script, add a huggingface provider block (X-HF-Bill-To header) to /.pi/agent/models.json, export HFTOKEN, then pi --provider huggingface --model ....

Original post →

More from coding & agent

coding & agent channel →