Semantic Kernel
SDKs & frameworksMicrosoft's SDK for AI agents in C#, Python and Java.
Fill the guide with your values
Stays in this browser tab — never sent or stored by us. Sign in to create one
Setup
- 1Register OpenAI chat completion with a custom endpoint
https://api.ultragpt.pro/v1.
// dotnet add package Microsoft.SemanticKernel
#pragma warning disable SKEXP0010
var kernel = Kernel.CreateBuilder()
.AddOpenAIChatCompletion(
modelId: "grok-4.7",
endpoint: new Uri("https://api.ultragpt.pro/v1"),
apiKey: Environment.GetEnvironmentVariable("ULTRAGPT_API_KEY"))
.Build();
Console.WriteLine(await kernel.InvokePromptAsync("Hello!"));Tips
- Any model id from Models works; suffixes like :online (web search) and :nitro work too.
- Give each tool its own key with a spend limit, so usage shows separately in Activity.
- Something off? Error codes · Support