Prerequisites
Before you begin, make sure you have:- Python 3.10
- If you are using conda, you can create a new environment via:
- If you are using conda, you can create a new environment via:
Installation
Install the latest NexaAI Python SDK from PyPI. Install command by OS:-
Windows and Linux:
-
macOS:
Authentication Setup
Before running any examples, you need to set up your NexaAI authentication token.Set Token in Environment
Replace"YOUR_NEXA_TOKEN_HERE" with your actual NexaAI token from https://sdk.nexa.ai/:
-
Linux/macOS:
-
Windows:
Running Your First Model
Language Model (LLM)
Python
Multimodal Model (VLM)
Python
Embedder
Python
Reranker
Python
Next Steps
- Explore the API Reference for detailed usage examples
- Check out the troubleshooting guide for common issues
Was this page helpful?