SDK for Nexos API
Project description
NexosAI API SDK
A modern Python SDK for integrating with the NexosAI cloud service. Easily connect your applications to NexosAI's powerful API for conversational AI, image, and audio processing.
Features
- Unified API for chat, image, and audio endpoints
- Tool-augmented chat (web search, RAG, OCR)
- Type-safe request/response models (Pydantic)
- Easy configuration via environment variables or
.envfile - Extensible architecture for custom endpoints
Installation
For users:
pip install nexosapi
For contributors (local development):
git clone https://github.com/kamilrybacki/nexos.api.git
cd nexos.api
task init-project
Quick Start
from nexosapi.api.endpoints import chat
params = {
"model": "your-model-id",
"messages": [{"content": "Hello, how are you?", "role": "user"}],
}
chat.completions.request.prepare(params)
chat.completions.request.with_search_engine_tool(options={"search_context_size": "medium"})
response = await chat.completions.request.send()
print(response.model_dump())
Documentation
Contributing
See Developer Guide for instructions on adding new endpoints and request builder methods.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nexosapi-0.1.0.tar.gz.
File metadata
- Download URL: nexosapi-0.1.0.tar.gz
- Upload date:
- Size: 34.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05730c9343eb5cded03433d300b7fbbdce106e2a5ce9c52fe6f336d2b537b67e
|
|
| MD5 |
99dd8934ccce03d809eadcd04bd5428e
|
|
| BLAKE2b-256 |
039048158cedd6431fde224d78cd433d0e5eababd1efb88b7332d7f748930316
|
File details
Details for the file nexosapi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nexosapi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 44.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7baaa6cedbfe42f66415b8334e00b4cc2f262c49e3387ae9dbeb5dfb9cbd47d8
|
|
| MD5 |
147de49668ba446facc0ab700e8ba344
|
|
| BLAKE2b-256 |
f33a4921f77a559b893def36fdcd3e5955b471940545decd2028558a279f1083
|