LLM API Connector for Unity

The LLM API Connector for Unity is a comprehensive framework that enables developers to access various AI models within their Unity applications. This package provides a simple, unified interface for accessing Claude, GPT, and Gemini models, eliminating the need to struggle with different API implementations.

With this package, you can:

  • Access multiple AI models through a single consistent API
  • Switch models with a single line of code or a single click in the inspector
  • Enjoy a complete feature set, including streaming responses, history, function calling, and model-specific parameters

The package is designed with developers in mind, featuring a clean, event-based architecture for UI integration, comprehensive documentation, and efficient serialized settings in the Unity Inspector.

We're constantly adding support for new models, so be sure to check the release notes for the latest additions and supported models.

For more information, please refer to the documentation, which includes a manual, scripting API, and more. If you have any questions or suggestions, feel free to reach out to us through our Discord channel or email us at [email protected].

Supported Unity Versions:

  • Unity 2021.3 LTS and newer (not tested with earlier versions, but might work)

Platform Compatibility:

  • All platforms supported by Unity (Windows, macOS, Linux, iOS, Android, WebGL)
  • Note: API usage requires internet connectivity

Implementation Details:

  • Pure C# implementation
  • Uses HttpClient for API communications
  • SimpleJSON for lightweight JSON parsing
  • No external dependencies or DLLs required

Architecture:

  • Polymorphic singleton pattern for model interfaces
  • Abstract factory pattern for configuration management
  • Event-driven response handling

Data Security:

  • No data is stored or transmitted to any servers except the specified AI API providers

LLM API Connector for Unity - Asset Store

πŸ€– Chat with AI

AI is typing

Suggested Posts

Game Jolt API for Unity

Game Jolt API for Unity Thumbnail

Binance API for Unity

Binance API for Unity Thumbnail

Advanced FPS Counter for Unity

Advanced FPS Counter for Unity Thumbnail

Realtime Pixel Modifications for Unity

Realtime Pixel Modifications for Unity Thumbnail

DJ PRO - Music Player for Unity

DJ PRO - Music Player for Unity Thumbnail

AudioStream for Unity

AudioStream for Unity Thumbnail