A C# RestEase client for Replicate: A latent text-to-image diffusion model capable of generating photo-realistic images given any text input.
$ dotnet add package Replicate.NetA C# client (using RestEase) for Replicate: A latent text-to-image diffusion model capable of generating photo-realistic images given any text input.
var factory = new PredictionsApiFactory();
var replicateApi = factory.GetApi("{token}");
var request = new Request
{
Version = "a9758cbfbd5f3c2094457d996681af52552901775aa2d6dd0b17fd15df959bef",
Input = new DefaultPredictionInput
{
Prompt = "a gentleman cat with blue eyes wearing a tophat in a 19th century portrait"
}
};
var response = await replicateApi.CreatePredictionAndWaitOnResultAsync(request).ConfigureAwait(false);
Entity Framework Extensions and Dapper Plus are major sponsors and proud to contribute to the development of Replicate.Net.