DeepSeekAPI 1.5.3

dotnet add package DeepSeekAPI --version 1.5.3
                    
NuGet\Install-Package DeepSeekAPI -Version 1.5.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DeepSeekAPI" Version="1.5.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DeepSeekAPI" Version="1.5.3" />
                    
Directory.Packages.props
<PackageReference Include="DeepSeekAPI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DeepSeekAPI --version 1.5.3
                    
#r "nuget: DeepSeekAPI, 1.5.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DeepSeekAPI@1.5.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DeepSeekAPI&version=1.5.3
                    
Install as a Cake Addin
#tool nuget:?package=DeepSeekAPI&version=1.5.3
                    
Install as a Cake Tool

DeepSeekAPI

.NET client for the DeepSeek Chat API with support for streaming, search, expert mode, and automatic Proof-of-Work (PoW) handling.

Suitable for automation, CLI tools, and custom clients.

Documentation

Authentication

An auth token from DeepSeek is required. How to obtain it:

  1. Open https://chat.deepseek.com
  2. Open DevTools (F12)
  3. Go to Application → Local Storage
  4. Find the userToken key
  5. Copy its value

⚠ Important

Never commit your token to Git The token provides full access to your account

Quick Start

var client = new DeepSeekClient("YOUR_USER_TOKEN");

// get user data
var profile = await client.GetUserProfileAsync();
Console.WriteLine($"{profile.Id} {profile.Email} {profile.MobileNumber}");

// get chat sessions
var chats = await client.GetChatSessionsAsync();
foreach (var chat in chats)
{
    Console.WriteLine($"{chat.Id} {chat.Title} {chat.TitleType} {chat.Pinned} {chat.ModelType} {chat.UpdatedAt}");
}

// create chat
ChatSession chatSession = await client.CreateChatSession();

// request settings
var chatSettings = new ChatSettings
{
    ModelType = ModelType.Expert,
    Thinking = true,
    Search = false
};

// send message
await foreach (var token in client.SendMessageStream(
    chatSession,
    "Привет",
    chatSettings))
{
    Console.Write(token.Text);
}

Proof-of-Work (PoW)

DeepSeek requires PoW for generating responses. The library automatically:

  • retrieves the challenge
  • attaches x-ds-pow-response

⚠️ Disclaimer

This project is not affiliated with DeepSeek.

Using a private API may violate the service terms. You use this library at your own risk.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.5.3 96 5/23/2026
1.5.2 90 5/18/2026
1.5.1 97 5/17/2026
1.5.0 98 5/15/2026
1.4.1 100 5/15/2026
1.4.0 110 5/12/2026 1.4.0 is deprecated because it has critical bugs.
1.3.1 101 5/9/2026
1.3.0 96 5/8/2026
1.2.4 96 5/7/2026
1.2.3 86 5/7/2026
1.2.2 89 5/6/2026
1.2.1 84 5/6/2026
1.2.0 87 5/5/2026
1.1.1 99 5/5/2026
1.1.0 94 5/5/2026
1.0.0 88 5/5/2026