In my DeepSeek TUI install guide I set the agent up with the official DeepSeek API. This guide is about NVIDIA NIM, and specifically how to use it to run DeepSeek V4 Pro and V4 Flash completely free, without touching DeepSeek’s own servers.
First, a common misunderstanding
DeepSeek TUI supports alternative API endpoints like NVIDIA NIM, Fireworks, and SGLang. When people see that, they assume they can run any model through it: Llama, Gemma, Mistral, whatever is in the catalog. That’s not how it works.
DeepSeek TUI is built exclusively for DeepSeek models. The alternative endpoints exist so you can reach DeepSeek V4 through a different infrastructure provider: NVIDIA’s free compute, a backup when DeepSeek’s API is down, or your own local inference server. The model on the other end is always DeepSeek. That’s still a very good deal, because you get V4 Pro and V4 Flash on NVIDIA’s GPUs for free.
What NVIDIA NIM gives you
NVIDIA NIM hosts both models at build.nvidia.com, and both are on the free developer tier: no credit card, no expiry, and a default limit of 40 requests per minute.
- DeepSeek V4 Pro: the flagship. 1.6 trillion total parameters (49 billion active), a 1 million token context window, and three thinking modes, from non-think for speed up to think-max for deep reasoning.
- DeepSeek V4 Flash: the faster sibling. 284 billion parameters (13 billion active), the same 1 million token context, tuned for low latency.
Step 1: Install DeepSeek TUI
If you haven’t already, install the agent with one command (Node.js 18+ required). The full walkthrough is in the install guide.
npm install -g deepseek-tuiStep 2: Get your free NVIDIA NIM API key
- Go to build.nvidia.com and sign up for the NVIDIA Developer Program. You need an email and a phone number, no credit card.
- Open your account settings and find the API key section.
- Generate a new key. It starts with
nvapi-. Copy it right away, because you only see it once.
Step 3: Connect the key to DeepSeek TUI
Save the key for the NVIDIA NIM provider. It’s stored in your config and your OS keyring, so this is a one-time step:
deepseek auth set --provider nvidia-nim --api-key "YOUR_NVIDIA_API_KEY"Check that it worked. You should see the active provider and the last four characters of your key:
deepseek auth statusThen open a fresh terminal window before continuing.
Step 4: Launch DeepSeek V4 Flash
Start with Flash. It’s faster and more stable on the free tier:
deepseek --provider nvidia-nim --model deepseek-ai/deepseek-v4-flashThe model ID format matters. It has to be deepseek-ai/deepseek-v4-flash with the full provider prefix. Leave the prefix off and it won’t resolve on NIM’s endpoint.
Step 5: Launch DeepSeek V4 Pro
deepseek --provider nvidia-nim --model deepseek-ai/deepseek-v4-proV4 Pro is the one for complex multi-step coding tasks, deep reasoning, and architecture decisions. It’s heavier, so on the free tier it’s slower and hits rate limits sooner, but the jump in quality is real. My workflow: Flash for everyday tasks, Pro when the task actually needs it.
Why NIM is worth setting up even if you pay for DeepSeek
DeepSeek’s own API has had periods of heavy load and downtime, especially right after new model releases. When that happens, NIM is your fallback: same models, different infrastructure, still up. Having it configured means you just switch providers and keep working. That reliability is honestly as useful as the free tier.
Rate limits and reliability: the honest version
- The default limit is 40 requests per minute. For personal coding you’re unlikely to hit it. If you do, NVIDIA lets you request a 200 RPM upgrade through its developer forum.
- V4 Pro on NIM has been slow at times during US peak hours, because it’s a heavily used free endpoint. If you get timeouts, run
deepseek-tui doctorto rule out a config problem, then wait it out or drop to Flash.
Quick reference
deepseek auth set --provider nvidia-nim --api-key "YOUR_NVIDIA_API_KEY"
deepseek auth status
deepseek --provider nvidia-nim --model deepseek-ai/deepseek-v4-flash
deepseek --provider nvidia-nim --model deepseek-ai/deepseek-v4-pro
deepseek-tui doctorThat’s the whole setup: one free account, one API key, one auth command, and DeepSeek V4 Pro and Flash running in your terminal on NVIDIA’s hardware.
FAQ
Does NVIDIA NIM need a credit card?
No. The NVIDIA Developer Program free tier only needs an email address and phone number.
Can I use other NIM models in DeepSeek TUI?
No. DeepSeek TUI only works with DeepSeek models. NIM just provides a different place to run them.
Which model should I use on the free tier?
V4 Flash for everyday work because it’s faster and more reliable on the shared endpoint. Switch to V4 Pro for hard reasoning tasks.
