https://github.com/unitygamestudio/deepseek-unity
A plugin that allows DeepSeek to be used inside Unity. An alternative tool to ChatGPT API.
https://github.com/unitygamestudio/deepseek-unity
Last synced: 4 months ago
JSON representation
A plugin that allows DeepSeek to be used inside Unity. An alternative tool to ChatGPT API.
- Host: GitHub
- URL: https://github.com/unitygamestudio/deepseek-unity
- Owner: UnityGameStudio
- Created: 2025-03-02T20:54:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-20T00:09:48.000Z (over 1 year ago)
- Last Synced: 2025-03-20T01:23:02.344Z (over 1 year ago)
- Size: 137 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DeepSeek-Unity
> Currently, this plugin is only suported on versions of Unity 2022.x and above
# Installation
This plugin is provided as a custom Unity package that you can import into any existing project with the Unity version 2022.x and above.
Once you've downloaded the Unity package, you can import the `Example` scene inside the `DeepSeek` folder.
---
# Setup
DeepSeek provides an alternative to ChatGPT for Unity developers. Here's a quick guide to setting up DeepSeek:
- Setup Guide: [Watch the YouTube tutorial](https://www.youtube.com/watch?v=wIMm7RRXCiY&feature=youtu.be)
### Step 1: Login to your DeepSeek account and copy your secret key
To get started you will first need to fetch your DeepSeek API key, which can be found the DeepSeek Platform under `Get API Key` (or through [this direct link](https://platform.deepseek.com/api_keys)). Here, you can create a new secret key and copy the value (you will need to your secret key for the next step).

### Step 2: Open the Unity Editor, configure the package, and start using DeepSeek
Inside the package, you will find an `Example` Scene. Inside this scene, there is a game object with a `UnityAndDeepSeek.cs` script attach to it. Add your API Secret Key inside the `API Key` field. And, you can start using DeepSeek.

# Functions
This plugin provides one main function called `ChatWithDeepSeek`. This function contains an IEnumerator, `IEnumerator SendDeepSeekRequest()`, which firstly appends a List of chats, then sends that list to the DeepSeek API and prints the response to the console by calling Debug.Log().
Unity connects with [DeepSeek API](https://api.deepseek.com/chat/completions).
# Usage
The unity package was made to directly use the function with a User Interface. Therefore, the best way to interact with it, it is through the `Example` Scene. After hitting on play, the `Example` Scene grabs the text you put inside the Input field, and sends it to the DeepSeek API when hitting the button "Send Message".
You must purchase credits in your DeepSeek account to use the API. Nevertheless, they might be cheaper than ChatGPT API.

> Note that DeepSeek is a paid API, I recommend using [Gemini](https://github.com/UnityGameStudio/Gemini-Unity-Package) instead, which is free upon certain amount of requests.