Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Repository files navigation

Icon Grok Client (gRPC)

VersionDownloadsEULAOSS

Grok client based on the official gRPC API reference from xAI

Open Source Maintenance Fee

To ensure the long-term sustainability of this project, users of this package who generate revenue must pay an Open Source Maintenance Fee. While the source code is freely available under the terms of the License, this package and other aspects of the project require adherence to the Maintenance Fee.

To pay the Maintenance Fee, become a Sponsor at the proper OSMF tier. A single fee covers all of Devlooped packages.

Usage

This project provides a .NET client for the gRPC API of xAI with full support for all services documented in the official API reference and corresponding proto files.

varbuilder=Host.CreateApplicationBuilder(args);// or WebApplication.CreateBuilder(args);builder.Services.AddGrokClient(Environment.GetEnvironmentVariable("XAI_API_KEY")!);varapp=builder.Build();

This package leverages the gRPC client factory integration for seamless dependency injection:

classMyService(Chat.ChatClientchat,Documents.DocumentsClientdocs,Embedder.EmbedderClientembed){// use clients}

Auto-updating

This project contains an automated mechanism to always fetch the latest version of the official .proto files from XAI, ensuring it remains up-to-date with any changes or additions made to the API as soon as they are published.

See for example the introduction of tool output and citations.

Sponsors

Clarius OrgMFB Technologies, Inc.SandRockDRIVE.NET, Inc.Keith PickfordThomas BolonKori FrancisUno PlatformReuben SwartzJacob FosheeEric JohnsonDavid JENNIJonathan Charley WuKen BonnySimon Croppagileworks-euZheyu ShenVezelChilliCream4OTCVincent LimodomischellJustin WendlandtAdrian AlonsoMichael HagedorntorutekmccaffersChristoph HochstätterADS Fund

Sponsor this project

Learn more about GitHub Sponsors

About

Superseded by https://github.com/devlooped/xAI

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages