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

# C# SDK

> Phaseo Gateway 的官方 .NET 客户端。

从 NuGet 安装已发布的 [`Phaseo.Sdk`](https://www.nuget.org/packages/Phaseo.Sdk) 包。

本地封装器 `packages/sdk/sdk-csharp/Client.cs` 目前提供用于聊天、响应、Anthropic 消息、图像、音频、嵌入、内容审核、文件、批处理、视频、生成、模型/供应商/端点/组织/定价、API 密钥发现及生命周期变更、工作区/当前密钥生命周期辅助功能、定价计算、活动/额度/分析、健康检查、模型生命周期验证以及异步作业 WebSocket URL 的高级辅助方法。可通过直接辅助方法或 `client.AsyncJobs.WebSocketUrl(...)` 调用。

`GetModelEndpointCapabilities(...)` 返回提供商路由的实时元数据。`CheckModelParameters(...)` 将各参数标记为 `supported`、`partial`、`unsupported` 或 `unknown`，验证公布的值和范围，并返回接受完整参数集的路由。

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

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.