> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt
> Use this file to discover all available pages before exploring further.

# C# SDK (preview)

> Local-preview C# wrapper for the AI Stats API.

<Note type="warning">
  The C# SDK is in preview and is not yet published to NuGet.
</Note>

The local wrapper at `packages/sdk/sdk-csharp/Client.cs` currently exposes high-level helpers for chat, responses, Anthropic messages, images, audio, embeddings, moderations, files, batches, videos, generations, models/providers/endpoints/organisations/pricing, API-key discovery and lifecycle mutations, workspace/current-key lifecycle helpers, pricing calculation, activity/credits/analytics, health checks, model lifecycle validation, and async-job websocket URLs through both direct helpers and `client.AsyncJobs.WebSocketUrl(...)`.

```csharp theme={null}
using AiStatsSdk;

var client = new AIStats("YOUR_KEY");
var models = await client.ListModels(new Dictionary<string, string> { ["limit"] = "5" });
```
