# AI Development with the MBS Xojo Plugins

**URL:** <https://forum.xojo.com/t/ai-development-with-the-mbs-xojo-plugins/88166>\
**Category:** Extras\
**Created:** [April 28, 2026, 6:19am UTC](https://forum.xojo.com/t/ai-development-with-the-mbs-xojo-plugins/88166 "2026-04-28T06:19:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [April 28, 2026, 6:19am UTC](https://forum.xojo.com/t/ai-development-with-the-mbs-xojo-plugins/88166/1 "2026-04-28T06:19:13Z")

</div>

The [MBS Xojo Plugins](https://www.monkeybreadsoftware.de/xojo/) provides a comprehensive set of components to integrate Artificial Intelligence (AI) and Machine Learning (ML) into Xojo projects. This includes local LLM execution, platform-native ML frameworks, external API integration, and scripting bridges to other AI ecosystems.

Below is a technical overview of the available components and how developers can use them in real-world scenarios.

![](https://www.mbsplugins.de/image/FoundationModelsXojo.png)

### Foundation Models

Provides access to Apple’s Foundation Models framework for running on-device large language models (LLMs) with Apple Intelligence.

- Initialize and manage model sessions

- Send prompts and receive streamed or complete responses

- Configure parameters such as temperature, token limits, and system prompts

- Supports multilingual input/output

Typical use cases include chat interfaces, text summarization, structured data extraction, and natural language command parsing—all without requiring internet access.

See [FoundationModels](https://www.monkeybreadsoftware.net/topic-foundationmodels.shtml) classes and [Use Foundation Models in Xojo](https://www.mbsplugins.de/archive/2025-10-10/Use_Foundation_Models_in_Xojo/monkeybreadsoftware_blog_xojo).

### Llama.cpp

Integrates _llama.cpp_ to run open-source LLMs locally within Xojo.

- Load GGUF/GGML models from local storage

- Control inference parameters (context size, temperature, top-k, top-p)

- Maintain conversation context for chat-based workflows

- No dependency on external services

Ideal for offline deployments, secure environments, or custom fine-tuned models. Developers can build fully self-contained AI systems inside Xojo.

See [Llama](https://www.monkeybreadsoftware.net/topic-llama.shtml) classes and [Use Llama.cpp in Xojo](https://www.mbsplugins.de/archive/2026-02-24/Use_Llamacpp_in_Xojo/monkeybreadsoftware_blog_xojo).

### CoreML

Execute machine learning models using Apple’s CoreML framework.

- Load compiled .mlmodel files

- Run inference on structured or image data

- Supports classification, regression, and neural networks

Common use cases include predictive analytics, recommendation systems, and image classification workflows embedded directly in Xojo.

See [CoreML](https://www.monkeybreadsoftware.net/topic-coreml.shtml) classes that run CoreML models within the frameworks like CoreImage with the [CIDetectorMBS](https://www.monkeybreadsoftware.net/class-cidetectormbs.shtml) class.

### Windows ML

Provides access to Windows Machine Learning APIs on Windows 10 and newer.

- Load ONNX models

- Perform inference using local hardware acceleration

- Integrate ML into Windows-based Xojo deployments

Useful for cross-platform solutions where macOS uses CoreML and Windows uses ONNX-based models.

See [WindowsML](https://www.monkeybreadsoftware.net/topic-windowsml.shtml) classes.

### Vision

Wraps Apple’s Vision framework for image analysis tasks.

- Text detection and recognition

- Face detection and landmark tracking

- Object recognition and classification

- Barcode and QR code detection

Often combined with CoreML for custom vision models or with OCR workflows for document processing pipelines.

See [Vision](https://www.monkeybreadsoftware.net/topic-vision.shtml) classes and [Vision Framework for Xojo](https://www.mbsplugins.de/archive/2019-08-17/Vision_Framework_for_Xojo/monkeybreadsoftware_blog_xojo).

### Image Playground

Interfaces with Apple Intelligence image generation features.

- Generate images from text prompts

- Adjust styles and generation parameters

- Store generated images directly in Xojo into a database

Useful for generating previews, assets, or user-driven content inside applications.

See [ImagePlayground](https://www.monkeybreadsoftware.net/topic-imageplayground.shtml) classes and [Use Image Playground in Xojo](https://www.mbsplugins.de/archive/2024-12-18/Use_Image_Playground_in_Xojo/monkeybreadsoftware_blog_xojo).

![](https://www.mbsplugins.de/image/ImagePlaygroundXojo2.jpg)

### Python

Run Python-based AI workflows directly from Xojo.

- Execute Python code via [PythonMBS](https://www.monkeybreadsoftware.net/class-pythonmbs.shtml) class

- Call external scripts using [Shell](https://www.monkeybreadsoftware.net/topic-shell.shtml) classes

- Integrate libraries such as TensorFlow, PyTorch, scikit-learn, or transformers

This approach enables access to the broader AI ecosystem, including custom pipelines, embeddings, vector databases, and advanced data processing.

See [Python](https://www.monkeybreadsoftware.net/topic-python.shtml) classes and [Using Python in Xojo](https://www.mbsplugins.de/archive/2024-07-04/Using_Python_in_Xojo/monkeybreadsoftware_blog_xojo).

### OCR

Built-in OCR functionality based on Tesseract.

- Extract text from images and PDFs

- Support multiple languages

- Preprocess images for improved recognition accuracy

Frequently used for invoice processing, document indexing, and data entry automation.

See [OCR classes](https://www.monkeybreadsoftware.net/topic-ocr.shtml), [WindowsOCR](https://www.monkeybreadsoftware.net/topic-windowsocr.shtml) classes and [Windows OCR for Xojo](https://www.mbsplugins.de/archive/2023-02-07/Windows_OCR_for_Xojo/monkeybreadsoftware_blog_xojo).

### CURL

Provides HTTP client functionality to connect with external AI services.

- Send REST API requests (POST/GET)

- Handle authentication (API keys, headers)

- Parse JSON responses using [JSONMBS](https://www.monkeybreadsoftware.net/class-jsonmbs.shtml) class

Enables integration with services such as OpenAI, Anthropic, or Google AI models. The plugin includes example files demonstrating ChatGPT API integration and response handling.

See [CURL Plugin](https://www.monkeybreadsoftware.de/xojo/plugin-curl.shtml) and [Using ChatGPT in Xojo](https://www.mbsplugins.de/archive/2024-10-18/Using_ChatGPT_in_Xojo/monkeybreadsoftware_blog_xojo).

### Integration Patterns

You may combine various classes to build solutions based on the toolbox provided with MBS Plugin:

- **Hybrid AI:** Combine local LLMs (FoundationModels/Llama) with cloud APIs

- **Pipeline Processing:** OCR → LLM → Structured Data Output

- **AI-assisted UI:** Natural language inputs driving Xojo applications

- **Offline-first apps:** Fully local AI using Llama + CoreML

### Conclusion

The [MBS Xojo Plugins](https://www.monkeybreadsoftware.de/xojo/plugins) enable developers to integrate AI at multiple levels—from low-level ML inference to high-level conversational interfaces.

By combining local processing, external APIs, and scripting bridges, it provides a flexible architecture for building modern, intelligent Xojo solutions.
