• Image
  • Image
  • Current Version: 1.7: 2024-01-02T14:38:31Z
  • First Published: 2023-04-25T14:59:14Z
  • Size: 411008
  • Supported Unity Versions: 2020.3.21
tools ai-ml-integration

API for ChatGPT - Easy AI Integration

No rating !(2 Votes)
$7.48 $7.48

Very simple and easy to use OpenAI curl API wrapper for Unity. Full source code provided.

Features:
- Whisper voice prompts (excluding WebGL read pt. 3 below)
- Recording threshold filter to clear empty parts from recordings. This increases speed and reduces costs for Whisper API usage
- Response Streaming (beta)
- Can be used with any of OpenAI's models + your own fine-tuned ones

Important, read before purchase!
1. Make sure you can go to OpenAI's website and register for an account to use their API services before purchasing this asset! You will need to acquire an API key to use their services. More info on https://openai.com
2. Uses Newtonsoft JSON for advanced serialization. Import it using the Package Manager like so:
- Click the + sign on the top left in the Package Manager window
- “Add package from git url” and type: com.unity.nuget.newtonsoft-json
3. For Whisper support in WebGL you'll have to figure out a way to use the microphone. WebGL builds don't natively support the built-in Unity Microphone class!

Set up and use an AI chat using OpenAI's GPT models in no time!
1. Open the demo scene
2. Paste your API key in the GPTAgent script
3. Choose an AIProfile or use the demo chat profile which is preset
4. Start typing/speaking and get responses from the AI model
For suggestions, support or anything else you can chat with me directly on Discord or send mail to [email protected]


Add to cart
This site contains affiliate links, which means that we can receive a commission if you click on a link and buy something that we have recommended.
Although clicking on these links will not cost you anything, they will help us finance our development projects while recommending good products!