Skip to main content
.NETFramework4.6.2net6.0net7.0.NETStandard2.0

Generated C# SDK based on LeonardoAi OpenAPI specification.

Published
Aug 5, 2023
3y ago
Total Downloads
596.4K
596,379

Install

dotnet add package LeonardoAI --version 0.1.0
ProductVersions
.NET
net6.0net7.0
.NET Standard
netstandard2.0
Other
.NETFramework4.6.2

README

LeonardoAi

Nuget package dotnet License: MIT Discord

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
Removed Dependencies

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.