Installation
Nexa AI Android SDK is available from Maven Central, the latest version is 0.0.10. You can also find it from Maven Repository which updates a bit slower than Maven Central.Add Dependency
Add the following to yourapp/build.gradle.kts to import NexaSDK:
Run Your First Model
1
Initialize SDK
Initialize the NexaSDK in your Android application:
2
Download and Load Model
Create a VLM wrapper and load a model for NPU inference. You can download OmniNeural-4B model from huggingface and place it in your app’s assets folder.
Your model folder path should be like
/data/data/com.nexa.demo/files/models/omni-neural-4b if you put it in your app’s asset folder.3
Generate Content
Use the loaded model to generate responses:
Supported Models
We’ve curated collections of compatible models for you to explore:NPU Models
Optimized models for Qualcomm NPU
GGUF Models
Any GGUF format LLM and VLM models
Device Compatibility
NPU Support
NPU Support
- Qualcomm Snapdragon 8 Gen 4
GPU Support
GPU Support
- Qualcomm Adreno GPU
CPU Support
CPU Support
- ARM64-v8a
Next Steps
API Reference
Explore detailed documentation for all model types and learn their usage.
Was this page helpful?