Install
dotnet add package LeonardoAI --version 0.1.0
| Product | Versions |
|---|---|
| .NET | |
| .NET Standard | |
| Other |
README
LeonardoAi
Generated C# SDK based on LeonardoAi OpenAPI specification using NSwag.
Usage
using LeonardoAi;
using var client = new HttpClient();
var api = new LeonardoAiApi(apiKey, client);
var createResponse = await api.CreateGenerationAsync(new Body
{
Prompt = "Generate cat",
});
await Task.Delay(TimeSpan.FromSeconds(15));
var response = await api.GetGenerationByIdAsync(createResponse.SdGenerationJob.GenerationId);
var url = response.Generations_by_pk.Generated_images.ElementAt(0).Url;
Support
Priority place for bugs: https://github.com/tryAGI/LeonardoAi/issues
Priority place for ideas and general questions: https://github.com/tryAGI/LeonardoAi/discussions
Discord: https://discord.gg/Ca2xhfBf3v
Changes from Previous Version
v0.0.0-dev.18v0.1.0
Added Frameworks
net7.0
Removed Frameworks
net8.0
Added Dependencies
System.ComponentModel.Annotations(.NETStandard2.0)
Removed Dependencies
System.Text.Json(net6.0)
System.Text.Json(net8.0)
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.