DeepSeekAPI 1.5.3
dotnet add package DeepSeekAPI --version 1.5.3
NuGet\Install-Package DeepSeekAPI -Version 1.5.3
<PackageReference Include="DeepSeekAPI" Version="1.5.3" />
<PackageVersion Include="DeepSeekAPI" Version="1.5.3" />
<PackageReference Include="DeepSeekAPI" />
paket add DeepSeekAPI --version 1.5.3
#r "nuget: DeepSeekAPI, 1.5.3"
#:package DeepSeekAPI@1.5.3
#addin nuget:?package=DeepSeekAPI&version=1.5.3
#tool nuget:?package=DeepSeekAPI&version=1.5.3
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.
Authentication
An auth token from DeepSeek is required. How to obtain it:
- Open https://chat.deepseek.com
- Open DevTools (F12)
- Go to Application → Local Storage
- Find the
userTokenkey - 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 | Versions 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. |
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.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 |