Android examples
The following examples demonstrate different use cases and capabilities of the LEAP SDK on Android:LeapChat
Full-featured chat app with real-time streaming, persistent conversation history, and modern Android UI
LeapAudioDemo
Audio input and output processing with LFM2.5-Audio-1.5B for voice-enabled AI features
LeapKoogAgent
Integration with the Koog framework for building AI agents with tool calling capabilities
SloganApp
Single-turn marketing slogan generation demonstrating Android Views integration
ShareAI
Website summary generator that processes shared URLs
Recipe Generator
Structured output generation demonstrating JSON schema validation with the LEAP SDK
VLM Example
Visual Language Model integration for image understanding and generation
Example overview
| Example | Description | Key Features |
|---|---|---|
| LeapChat | Chat interface with streaming | Real-time streaming, conversation history, modern UI |
| LeapAudioDemo | Audio processing | Speech input/output with LFM2.5-Audio-1.5B |
| LeapKoogAgent | AI agent framework | Koog integration, tool calling, agent workflows |
| SloganApp | Text generation | Single-turn generation, Android Views |
| ShareAI | Website summarization | URL processing, content extraction |
| RecipeGenerator | Structured output | JSON schema, formatted responses |
| VLMExample | Vision model | Image understanding, VLM integration |
Getting started
All Android examples are available in the LeapSDK-Examples repository. Each example includes:- Complete source code with Kotlin implementation
- Gradle build configuration
- README with setup instructions
- Sample prompts and usage examples
Installation
-
Clone the LeapSDK-Examples repository:
- Open the example project in Android Studio
- Follow the example-specific README for model setup and configuration
Basic integration
The LEAP SDK makes it easy to integrate LFM models into your Android app. Here’s a basic example:Resources
- LeapSDK-Examples Repository - Complete source code for all examples
- LEAP Edge SDK Documentation - API reference and integration guides
- Liquid AI Documentation - Main documentation hub
- Discord Community - Get help and share your projects
Next steps
- Explore the LeapChat example for a complete chat implementation
- Try the Recipe Generator to learn about structured output
- Check out the LeapAudioDemo for audio processing capabilities
- Review the LEAP SDK documentation for detailed API information