Skip to content

Introduction

Ollama Integration

The Ollama Integration for Unity allows you to connect to your own Ollama instance directly from the Unity Editor or from runtime projects. It makes it easy to integrate AI capabilities into Unity applications, including text generation, chat, embeddings, and model management.

Designed for both runtime and editor use, this integration provides a simple, flexible interface to interact with Ollama models programmatically. You can generate text, stream responses, manage models, and retrieve embeddings for use in games, tools, or editor extensions.

Features

  • Generate text or chat responses from AI models
  • Stream responses in real-time
  • Create, copy, and manage models
  • Retrieve model details and list available models
  • Generate embeddings for text input
  • Works in both Unity Editor and runtime environments

Supported Endpoints

  • Text generation
  • Chat
  • Embeddings
  • Model management (list, create, copy, delete, push, pull)
  • API version information

For a full list of endpoints and detailed usage, see the Ollama API reference page.