AI
BoxLang AI is a powerful library for building fluent and scalable AI applications with a unified LLM API.

π€ What is BoxLang AI?
BoxLang AI is a comprehensive artificial intelligence module for BoxLang that provides a unified, fluent API for working with multiple AI providers. Whether you're building chatbots, implementing semantic search, generating embeddings, or creating intelligent automation, BoxLang AI simplifies AI integration with a consistent interface across all major providers.
Built with enterprise developers in mind, BoxLang AI abstracts away the complexity of working with different AI APIs while giving you the power and flexibility to leverage cutting-edge AI capabilities in your BoxLang applications.
β¨ Features
Multi-Provider Support - Seamlessly work with OpenAI, Anthropic, Ollama, AWS Bedrock, Google Gemini, and more
Fluent API Design - Intuitive, chainable methods for building AI interactions
Chat Completions - Build conversational AI with streaming support and function calling
Embeddings Generation - Create vector embeddings for semantic search and RAG applications
Image Generation - Generate images using DALL-E and other image models
Audio Transcription - Convert audio to text with Whisper and similar models
Moderation & Safety - Built-in content moderation capabilities
Streaming Support - Real-time response streaming for chat interfaces
Function Calling - Let AI models call your BoxLang functions intelligently
Context Management - Handle conversation context and message history
Token Counting - Track and optimize token usage across requests
Async Operations - Non-blocking AI calls using BoxLang's async capabilities
π Resources
Official Documentation
For comprehensive guides, API references, and advanced usage patterns, visit the complete BoxLang AI documentation:
Product Website
Learn more about BoxLang AI features, pricing, and use cases:
Professional Services
Need help implementing AI solutions in your enterprise? Our team provides consulting, training, and custom development:
π Ortus Solutions AI Services
π Quick Start
Get started with BoxLang AI in just a few steps:
Installation
Install the BoxLang AI module via CommandBox:
Basic Configuration
You can configure the module via the boxlang.json or you CFConfig configuration
Your First AI Chat
Create a simple chat completion:
Generate Embeddings
Create vector embeddings for semantic search:
Build an Agent
Leverage AI to create an intelligent agent that can perform tasks:
π‘ Next Steps
Ready to dive deeper? The full documentation covers:
Advanced provider configuration
Function calling and tool use
RAG (Retrieval Augmented Generation) patterns
Multi-modal AI (text, images, audio)
Token optimization strategies
AI agents and tool integration
Production deployment best practices
Integration with BoxLang caching and async features
π Visit the complete documentation to explore the full power of BoxLang AI!
Last updated
Was this helpful?
