skip to content
Logo I like chickens.
they're persistent.
Faust
you better try google.com...

DeepSeek API and Several Ways to Use It

/

This article is translated from the Chinese original.


Getting the DeepSeek API and Several Ways to Use It

NVIDIA Deepseek-R1 cover image

1. Get an NVIDIA API key

1. Register an account

Entry point: NVIDIA NIM platform DeepSeek-R1 page

Account types:

  • Personal email: limit of 1000 requests per day (Gmail / Outlook recommended)
  • Business email: limit of 5000 requests per day (any business-domain email, no verification required)

Registration process:

  1. Click Sign In in the top-right corner and log in with a Google account.
  2. Fill out the registration form. (The company information can be made up.)
  3. After submission, you will immediately receive an API key.

2. Key management

Where to find it: Dashboard -> Get API Keys -> nvapi-xxxx

API key screenshot

Proxy base URL:

Terminal window
https://integrate.api.nvidia.com/v1

Technical details:

  • Full non-distilled 671B parameter model
  • Supports 16k context
  • Average response speed: 2 to 3 seconds per request

2. Local client setup with NextChat

1. Download the client

Supported platforms: Windows / macOS / Linux

Download: GitHub Releases

2. Configure the parameters

Client configuration screenshot

Required fields:

API Base URL: https://integrate.api.nvidia.com/v1
API Key: nvapi-xxxx
Custom Model ID: deepseek-ai/deepseek-r1

Advanced settings:

- Temperature: 0.7 recommended (balances creativity and accuracy)
- Max Tokens: 2048 recommended (helps avoid truncation on long output)

3. Self-hosted deployment options

Steps:

  1. Fork the repository: open NextChat on GitHub and click Fork in the top-right corner.

  2. Create a Vercel project:

    • Log in to Vercel
    • Choose Import Project and import the forked repository
  3. Configure environment variables:

    OPENAI_API_KEY=nvapi-xxxx
    BASE_URL=https://integrate.api.nvidia.com/v1
    CODE=access password (for example 123456)
    CUSTOM_MODELS=deepseek-ai/deepseek-r1
    DEFAULT_MODEL=deepseek-ai/deepseek-r1
  4. After deployment, you will get a domain such as your-project.vercel.app. You can also bind your own domain.

  5. Screenshot

    image.png

Option B: Local Docker deployment (reference only)

docker-compose.yml:

version: '3'
services:
nextchat:
image: yidadaa/chatgpt-next-web
ports:
- "3000:3000"
environment:
- OPENAI_API_KEY=nvapi-xxxx
- BASE_URL=https://integrate.api.nvidia.com/v1
- CUSTOM_MODELS=deepseek-ai/deepseek-r1
- DEFAULT_MODEL=deepseek-ai/deepseek-r1
restart: unless-stopped

Start it with:

Terminal window
docker-compose up -d