It is based on this official repository.
using Gooseai;
using Grpc.Net.Client;
namespace StabilityAI.Grpc;
public class Example
{
public static void Test()
{
using var channel = GrpcChannel.ForAddress("https://localhost:7042");
var client = new GenerationService.GenerationServiceClient(channel);
.
.
.
}
}
For full example, check out for StabilityAI.Grpc.Example
project.