{"id":31741277,"url":"https://github.com/mun1z/generative-ai-dotnet","last_synced_at":"2026-05-14T23:12:48.210Z","repository":{"id":212699175,"uuid":"732049378","full_name":"MUN1Z/generative-ai-dotnet","owner":"MUN1Z","description":"About DotNet client library for Google's large language model PaLM API","archived":false,"fork":false,"pushed_at":"2023-12-15T17:02:49.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T10:53:48.971Z","etag":null,"topics":["client","csharp","dotnet","gemini","generative","google","ia"],"latest_commit_sha":null,"homepage":"https://developers.generativeai.google","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/MUN1Z.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-15T14:11:37.000Z","updated_at":"2023-12-15T18:36:44.000Z","dependencies_parsed_at":"2023-12-15T17:57:08.271Z","dependency_job_id":null,"html_url":"https://github.com/MUN1Z/generative-ai-dotnet","commit_stats":null,"previous_names":["mun1z/generative-ai-dotnet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MUN1Z/generative-ai-dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MUN1Z%2Fgenerative-ai-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MUN1Z%2Fgenerative-ai-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MUN1Z%2Fgenerative-ai-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MUN1Z%2Fgenerative-ai-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MUN1Z","download_url":"https://codeload.github.com/MUN1Z/generative-ai-dotnet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MUN1Z%2Fgenerative-ai-dotnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33046894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["client","csharp","dotnet","gemini","generative","google","ia"],"created_at":"2025-10-09T10:50:39.812Z","updated_at":"2026-05-14T23:12:48.143Z","avatar_url":"https://github.com/MUN1Z.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google AI DotNet SDK\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Discord](https://img.shields.io/discord/507641974421979145?label=Discord)](https://discord.gg/cjxa6bjD)\n[![GitHub stars](https://img.shields.io/github/stars/mun1z/generative-ai-dotne?label=stargazers\u0026logoColor=yellow\u0026style=social)](https://github.com/mun1z/generative-ai-dotnet/stargazers)\n\nFor example, with just a few lines of code, you can access Gemini's multimodal capabilities to generate text from text input:\n```C#\nusing GoogleGenerativeAI;\n\nvar gen = new GenerativeAIService(\"YOUR_API_KEY\");\nvar response = await gen.GenerateContentAsync(\"\");\nvar firstPart =  response.Candidates.FirstOrDefault().Content.Parts.FirstOrDefault();\n\nConsole.WriteLine(firstPart.Text);\n```\n\n## Try out the sample Dotnet console app\n\nThis repository contains a sample app demonstrating how the SDK can access and utilize the Gemini model for various use cases.\n\n1.  Check out this repository.\\\n`git clone https://github.com/muniz/generative-ai-dotnet`\n\n1.  [Obtain an API key](https://makersuite.google.com/app/apikey) to use with the Google AI SDKs.\n\n1.  Open and build the solution(.sln) file of this repo. \n\n1.  Paste your API key into the `YOUR_API_KEY` property in the `Program` file.\n\n1.  Run the app, put a your text input in console and click enter.\n\nhttps://github.com/MUN1Z/generative-ai-dotnet/assets/17263249/2e9bc946-de08-4469-a255-eac03005a0e4\n\n## Documentation\n\nFind complete documentation for the Google AI SDKs and the Gemini model in the Google documentation:\\\nhttps://ai.google.dev/docs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmun1z%2Fgenerative-ai-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmun1z%2Fgenerative-ai-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmun1z%2Fgenerative-ai-dotnet/lists"}