{"id":14960432,"url":"https://github.com/uralstech/ugemini","last_synced_at":"2025-10-24T18:31:52.896Z","repository":{"id":246728078,"uuid":"821880293","full_name":"Uralstech/UGemini","owner":"Uralstech","description":"A Unity C# wrapper for the Google Gemini API.","archived":false,"fork":false,"pushed_at":"2025-01-04T10:55:21.000Z","size":90814,"stargazers_count":13,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T03:37:35.363Z","etag":null,"topics":["gemini","gemini-ai","gemini-api","gemini-client","gemini-pro-api","integration","openupm","unity","unity-integration","unity-package","unity-packages","unity3d","unity3d-plugin"],"latest_commit_sha":null,"homepage":"https://uralstech.github.io/UGemini/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Uralstech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":{"buy_me_a_coffee":"udayshankar"}},"created_at":"2024-06-29T17:55:01.000Z","updated_at":"2025-01-24T22:50:40.000Z","dependencies_parsed_at":"2024-08-28T12:26:45.201Z","dependency_job_id":"0941e7e8-a69e-46ef-b6f5-02b455d4f930","html_url":"https://github.com/Uralstech/UGemini","commit_stats":{"total_commits":127,"total_committers":2,"mean_commits":63.5,"dds":"0.11023622047244097","last_synced_commit":"fc7ed46e1d0ee0defd2a8a9acebc81345f709aee"},"previous_names":["uralstech/ugemini"],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Uralstech%2FUGemini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Uralstech%2FUGemini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Uralstech%2FUGemini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Uralstech%2FUGemini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Uralstech","download_url":"https://codeload.github.com/Uralstech/UGemini/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238024405,"owners_count":19403836,"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":["gemini","gemini-ai","gemini-api","gemini-client","gemini-pro-api","integration","openupm","unity","unity-integration","unity-package","unity-packages","unity3d","unity3d-plugin"],"created_at":"2024-09-24T13:22:16.151Z","updated_at":"2025-10-24T18:31:42.884Z","avatar_url":"https://github.com/Uralstech.png","language":"C#","readme":"## UGemini\n\nA Unity C# wrapper for the Google Gemini API.\n\n[![openupm](https://img.shields.io/npm/v/com.uralstech.ugemini?label=openupm\u0026registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.uralstech.ugemini/)\n[![openupm](https://img.shields.io/badge/dynamic/json?color=brightgreen\u0026label=downloads\u0026query=%24.downloads\u0026suffix=%2Fmonth\u0026url=https%3A%2F%2Fpackage.openupm.com%2Fdownloads%2Fpoint%2Flast-month%2Fcom.uralstech.ugemini)](https://openupm.com/packages/com.uralstech.ugemini/)\n\n## Installation\n\nThis *should* work on any reasonably modern Unity version. Built and tested in Unity 2022.3.\n\n### OpenUPM\n\n1. Open project settings\n2. Select `Package Manager`\n3. Add the OpenUPM package registry:\n    - Name: `OpenUPM`\n    - URL: `https://package.openupm.com`\n    - Scope(s)\n        - `com.uralstech`\n        - `com.utilities`\\*\n4. Open the Unity Package Manager window (`Window` -\u003e `Package Manager`)\n5. Change the registry from `Unity` to `My Registries`\n6. Add the `UGemini`, `Utilities.Async`\\* and `Utilities.Encoder.Wav`\\* packages\n\n### Unity Package Manager\n\n1. Open the Unity Package Manager window (`Window` -\u003e `Package Manager`)\n2. Select the `+` icon and `Add package from git URL...`\n3. Paste the UPM branch URL and press enter:\n    - `https://github.com/Uralstech/UGemini.git#upm`\n4. Check the instructions for [`UCloud.Operations`](https://uralstech.github.io/UCloud.Operations) and [`Utils.Singleton`](https://uralstech.github.io/Utils.Singleton) to install the dependencies.\n\n*Adding additional dependencies:*\u003cbr/\u003e\nSee the installation steps for the [Utilities.Async](https://github.com/rageAgainstThePixel/com.utilities.async)\\* and [Utilities.Encoder.Wav](https://github.com/rageAgainstThePixel/com.utilities.encoder.wav)\\* packages.\n\n### GitHub Clone\n\n1. Clone or download the repository from the desired branch (master, preview/unstable)\n2. Drag the package folder `UGemini/UGemini/Packages/com.uralstech.ugemini` into your Unity project's `Packages` folder\n3. In the `Packages` folder of your project, add the following line to the list in `manifest.json`:\n    `\"com.uralstech.ugemini\": \"2.x.x\",`\n4. Check the instructions for [`UCloud.Operations`](https://uralstech.github.io/UCloud.Operations) and [`Utils.Singleton`](https://uralstech.github.io/Utils.Singleton) to install the dependencies.\n\n*Adding additional dependencies:*\u003cbr/\u003e\nSee the installation steps for the [Utilities.Async](https://github.com/rageAgainstThePixel/com.utilities.async)\\* and [Utilities.Encoder.Wav](https://github.com/rageAgainstThePixel/com.utilities.encoder.wav)\\* packages.\n\n\\*Optional, but `Utilities.Async` is required for streaming content and `Utilities.Encoder.Wav` is recommended if you don't want to bother with encoding your AudioClips into Base64 strings manually.\n\n### Preview Versions\n\nDo not use preview versions (i.e. versions that end with \"-preview\") for production use as they are unstable and untested.\n\n### Gemini API Support\n\n- [x] `models` endpoint\n    - [x] `batchEmbedContents` method\n    - [x] `countTokens` method\n    - [x] `embedContent` method\n    - [x] `generateAnswer` method 🧪\n    - [x] `generateContent` method\n    - [x] `get` method\n    - [x] `list` method\n    - [x] `streamGenerateContent` method\n    \n- [x] `cachedContents` endpoint 🧪\n    - [x] `create` method\n    - [x] `delete` method\n    - [x] `get` method\n    - [x] `list` method\n    - [x] `patch` method\n\n- [ ] `corpora` endpoint 🧪\n- [x] `files` endpoint 🧪\n    - [x] `delete` method\n    - [x] `get` method\n    - [x] `list` method\n\n- [x] `media` endpoint 🧪\n    - [x] `upload` method\n    \n- [x] `tunedModels` endpoint 🧪\n    - [x] `create` method\n    - [x] `delete` method\n    - [x] `generateContent` method\n    - [x] `get` method\n    - [x] `list` method\n    - [x] `patch` method\n    - [x] `transferOwnership` method\n\n- [x] `tunedModels.operations` endpoint\\*\n    - [x] `cancel` method\n    - [x] `get` method\n    - [x] `list` method\n    \n- [x] `operations` endpoint\\*\n    - [x] `list` method\n\n🧪 - Using the v1beta API\n\n\\*Through package dependency [UCloud.Operations](https://github.com/Uralstech/UCloud.Operations).\n\n### Documentation\n\nSee \u003chttps://uralstech.github.io/UGemini/DocSource/QuickStart.html\u003e or `APIReferenceManual.pdf` and `Documentation.pdf` in the package documentation for the reference manual and tutorial.\n","funding_links":["https://buymeacoffee.com/udayshankar"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furalstech%2Fugemini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furalstech%2Fugemini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furalstech%2Fugemini/lists"}