DependencyInjection for Replicate.Net
$ dotnet add package Replicate.Net.DependencyInjectionA C# client (using RestEase) for Replicate: A latent text-to-image diffusion model capable of generating photo-realistic images given any text input.
var services = new ServiceCollection();
services.AddReplicateClient(token);
var provider = services.BuildServiceProvider();
var replicateApi = provider.GetRequiredService<IReplicateApi>();
var predictions = await replicateApi.GetAllPredictionsAsync().ConfigureAwait(false);
Console.WriteLine("predictions = {0}", predictions?.Count);
Entity Framework Extensions and Dapper Plus are major sponsors and proud to contribute to the development of Replicate.Net.DependencyInjection.