{"id":22065426,"url":"https://github.com/tryagi/leonardo","last_synced_at":"2025-05-13T01:15:46.540Z","repository":{"id":186265064,"uuid":"674907351","full_name":"tryAGI/Leonardo","owner":"tryAGI","description":"Generated C# SDK based on Leonardo AI OpenAPI specification","archived":false,"fork":false,"pushed_at":"2025-04-22T06:21:48.000Z","size":755,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-13T01:15:36.850Z","etag":null,"topics":["ai","csharp","dotnet","generated","image-gen","image-generation","langchain","langchain-dotnet","leonardo","leonardoai","nswag","openapi","sdk","specification"],"latest_commit_sha":null,"homepage":"https://tryagi.github.io/Leonardo/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tryAGI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"HavenDV","patreon":"havendv","ko_fi":"havendv","custom":["https://www.paypal.me/havendv","https://www.buymeacoffee.com/havendv","https://donate.stripe.com/00gfZ19zkeKLh1eaEE","https://www.upwork.com/freelancers/~017b1ad6f6af9cc189"]}},"created_at":"2023-08-05T06:02:12.000Z","updated_at":"2025-04-22T06:21:52.000Z","dependencies_parsed_at":"2023-11-22T06:24:13.042Z","dependency_job_id":"de942d2f-f685-4c34-9f51-5efe898d3a3b","html_url":"https://github.com/tryAGI/Leonardo","commit_stats":null,"previous_names":["tryagi/leonardoai","tryagi/leonardo"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryAGI%2FLeonardo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryAGI%2FLeonardo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryAGI%2FLeonardo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryAGI%2FLeonardo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tryAGI","download_url":"https://codeload.github.com/tryAGI/Leonardo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253851075,"owners_count":21973674,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","csharp","dotnet","generated","image-gen","image-generation","langchain","langchain-dotnet","leonardo","leonardoai","nswag","openapi","sdk","specification"],"created_at":"2024-11-30T19:17:37.865Z","updated_at":"2025-05-13T01:15:46.495Z","avatar_url":"https://github.com/tryAGI.png","language":"C#","funding_links":["https://github.com/sponsors/HavenDV","https://patreon.com/havendv","https://ko-fi.com/havendv","https://www.paypal.me/havendv","https://www.buymeacoffee.com/havendv","https://donate.stripe.com/00gfZ19zkeKLh1eaEE","https://www.upwork.com/freelancers/~017b1ad6f6af9cc189"],"categories":[],"sub_categories":[],"readme":"# Leonardo\n\n[![Nuget package](https://img.shields.io/nuget/vpre/LeonardoAI](https://www.nuget.org/packages/LeonardoAI/)\n[![dotnet](https://github.com/tryAGI/Leonardo/actions/workflows/dotnet.yml/badge.svg?branch=main)](https://github.com/tryAGI/Leonardo/actions/workflows/dotnet.yml)\n[![License: MIT](https://img.shields.io/github/license/tryAGI/Leonardo)](https://github.com/tryAGI/Leonardo/blob/main/LICENSE.txt)\n[![Discord](https://img.shields.io/discord/1115206893015662663?label=Discord\u0026logo=discord\u0026logoColor=white\u0026color=d82679)](https://discord.gg/Ca2xhfBf3v)\n\n## Features 🔥\n- Fully generated C# SDK based on [official OpenAPI specification](https://api-docs-nine-delta.vercel.app/cloud/openapi.json) using [OpenApiGenerator](https://github.com/HavenDV/OpenApiGenerator)\n- Same day update to support new features\n- Updated and supported automatically if there are no breaking changes\n- All modern .NET features - nullability, trimming, NativeAOT, etc.\n- Support .Net Framework/.Net Standard 2.0\n\n### Usage\n```csharp\nusing Leonardo;\n\nusing var api = new LeonardoApi(apiKey);\n\nvar createResponse = await api.Image.CreateGenerationAsync(\n    prompt: \"Generate cat\");\n\ncreateResponse.SdGenerationJob.Should().NotBeNull();\n\nawait Task.Delay(TimeSpan.FromSeconds(15));\n\nvar response = await api.Image.GetGenerationByIdAsync(createResponse.SdGenerationJob?.GenerationId ?? throw new InvalidOperationException(\"GenerationId is null\"));\n\nvar url = response.GenerationsByPk?.GeneratedImages?.ElementAtOrDefault(0)?.Url;\n```\n\n## Support\n\nPriority place for bugs: https://github.com/tryAGI/Leonardo/issues  \nPriority place for ideas and general questions: https://github.com/tryAGI/Leonardo/discussions  \nDiscord: https://discord.gg/Ca2xhfBf3v  \n\n## Acknowledgments\n\n![JetBrains logo](https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.png)\n\nThis project is supported by JetBrains through the [Open Source Support Program](https://jb.gg/OpenSourceSupport).\n\n![CodeRabbit logo](https://opengraph.githubassets.com/1c51002d7d0bbe0c4fd72ff8f2e58192702f73a7037102f77e4dbb98ac00ea8f/marketplace/coderabbitai)\n\nThis project is supported by CodeRabbit through the [Open Source Support Program](https://github.com/marketplace/coderabbitai).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftryagi%2Fleonardo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftryagi%2Fleonardo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftryagi%2Fleonardo/lists"}