Published
Mar 28, 2026
6mo ago
Total Downloads
596.4K
596,379
Install
dotnet add package LeonardoAI --version 1.0.1-dev.172
| Product | Versions |
|---|---|
| .NET |
README
Leonardo
;
var createResponse = await api.Image.CreateGenerationAsync(
prompt: "Generate cat");
createResponse.SdGenerationJob.Should().NotBeNull();
await Task.Delay(TimeSpan.FromSeconds(15));
var response = await api.Image.GetGenerationByIdAsync(createResponse.SdGenerationJob?.GenerationId ?? throw new InvalidOperationException("GenerationId is null"));
var url = response.GenerationsByPk?.GeneratedImages?.ElementAtOrDefault(0)?.Url;
Generate Image
using var api = GetAuthorizedClient();
var createResponse = await api.Image.CreateGenerationAsync(
prompt: "Generate cat");
await Task.Delay(TimeSpan.FromSeconds(15));
var response = await api.Image.GetGenerationByIdAsync(createResponse.SdGenerationJob?.GenerationId ?? throw new InvalidOperationException("GenerationId is null"));
var url = response.GenerationsByPk?.GeneratedImages?.ElementAtOrDefault(0)?.Url;
Support
Priority place for bugs: https://github.com/tryAGI/Leonardo/issues
Priority place for ideas and general questions: https://github.com/tryAGI/Leonardo/discussions
Discord: https://discord.gg/Ca2xhfBf3v
Acknowledgments

This project is supported by JetBrains through the Open Source Support Program.
Changes from Previous Version
No structural changes between v1.0.1-dev.171 and v1.0.1-dev.172.
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.