Back to Docs
.NETC#
C# / .NET SDK
Use the official OpenAI .NET SDK with Meridian. Swap the endpoint and your existing code works instantly — no custom client libraries required.
Installation
dotnet add package OpenAIQuick Start
using OpenAI;
using OpenAI.Chat;
var client = new OpenAIClient(
new OpenAIClientOptions
{
Endpoint = new Uri("https://api.getnimbus.net/v1"),
ApiKey = "sk-nimbus-..."
}
);
var chat = client.GetChatClient("nimbus-4o");
var response = await chat.CompleteChatAsync(
new UserChatMessage("Explain zero-knowledge proofs")
);
Console.WriteLine(response.Value.Content[0].Text);Configuration
| Parameter | Value |
|---|---|
| Endpoint | https://api.getnimbus.net/v1 |
| ApiKey | Your Meridian API key |
| Model | nimbus-4o |
Pro tip: The official OpenAI .NET SDK supports streaming, function calling, and vision out of the box. Just point it at Meridian and everything works.