KareemMagdy55/NvidiaNimClient

A powerful and developer-friendly .NET client for accessing NvidiaNim models with ease. This NuGet package supports chat completion tasks.

C#

1

1 commits

updated Dec 1, 2025

See the code

README

Nvidia Nim .NET Client

A powerful and developer-friendly .NET client for accessing NvidiaNim models with ease. This NuGet package supports chat completion tasks.


πŸ“¦ Installation

Install via NuGet:

dotnet add package NvidiaNimClient --version 1.0.x

πŸš€ Getting Started

Initialize the Nvidia Nim client by providing your API token and the endpoint URL:

var service = new NvidiaNimClient("YOUR TOKEN", "https://integrate.api.nvidia.com/v1/chat/completions");

πŸ’¬ Chat Completions

Synchronous Response

var client = new NnClient(
    apiToken: "nvapi-xxxxxxxx",
    apiBaseUrl: "https://integrate.api.nvidia.com/v1/chat/completions"
);

var message = client.
    Chat.
    WithModel("qwen/qwen2.5-coder-32b-instruct").
    AddUserMessage("Hello, how is your day?").
    SendAsync();

Console.WriteLine(message.Result?.Choices[0].Message);

πŸ“„ License

This project is licensed under the MIT License.


🀝 Contributing

Contributions, suggestions, and feature requests are welcome! Feel free to open an issue or submit a pull request.

KareemMagdy55/NvidiaNimClient

A powerful and developer-friendly .NET client for accessing NvidiaNim models with ease. This NuGet package supports chat completion tasks.

C#

1

1 commits

updated Dec 1, 2025

See the code

README

Nvidia Nim .NET Client

A powerful and developer-friendly .NET client for accessing NvidiaNim models with ease. This NuGet package supports chat completion tasks.


πŸ“¦ Installation

Install via NuGet:

dotnet add package NvidiaNimClient --version 1.0.x

πŸš€ Getting Started

Initialize the Nvidia Nim client by providing your API token and the endpoint URL:

var service = new NvidiaNimClient("YOUR TOKEN", "https://integrate.api.nvidia.com/v1/chat/completions");

πŸ’¬ Chat Completions

Synchronous Response

var client = new NnClient(
    apiToken: "nvapi-xxxxxxxx",
    apiBaseUrl: "https://integrate.api.nvidia.com/v1/chat/completions"
);

var message = client.
    Chat.
    WithModel("qwen/qwen2.5-coder-32b-instruct").
    AddUserMessage("Hello, how is your day?").
    SendAsync();

Console.WriteLine(message.Result?.Choices[0].Message);

πŸ“„ License

This project is licensed under the MIT License.


🀝 Contributing

Contributions, suggestions, and feature requests are welcome! Feel free to open an issue or submit a pull request.

Languages

C#

100.0%