Easy OpenAI Integration for Unity
A simple and easy-to-use OpenAI API wrapper for Unity, allowing for seamless integration of AI chat functionality.

* This page contains affiliate links, meaning we may earn a small commission if you purchase something through them, at no extra cost. FREE
- Category:
- Tools › Ai-ml-integration
- Developer:
- Tzar
- Price:
- FREE
- Rating:
- Favorites:
- 26
- Supported Unity Versions:
- 2020.3.21 or higher
- Current Version:
- 1.8
- Download Size:
- 401.38 KB
- Last Update:
- Jan 2, 2024
- Description:
- This package provides a straightforward way to integrate OpenAI's GPT models into your Unity project. Key features include:
* Whisper voice prompts
* Recording threshold filter to optimize Whisper API usage
* Response Streaming (beta)
* Support for OpenAI models and custom fine-tuned models
To get started, ensure you have an OpenAI account and API key. The package also requires Newtonsoft JSON, which can be imported via the Package Manager.
The demo scene is included, and setup is straightforward:
1. Open the demo scene
2. Paste your API key in the GPTAgent script
3. Choose an AI profile or use the demo chat profile
4. Start typing or speaking to interact with the AI model
For support or suggestions, contact the author directly. - Technical Details:
- This package uses Newtonsoft JSON for advanced serialization. For Whisper support in WebGL, a workaround is required to use the microphone, as WebGL builds do not natively support the built-in Unity Microphone class.
- Continue »