Skip to main content

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 .env file
  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nexosapi-0.1.0.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nexosapi-0.1.0-py3-none-any.whl (44.8 kB view details)

Uploaded Python 3

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

Hashes for nexosapi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 05730c9343eb5cded03433d300b7fbbdce106e2a5ce9c52fe6f336d2b537b67e
MD5 99dd8934ccce03d809eadcd04bd5428e
BLAKE2b-256 039048158cedd6431fde224d78cd433d0e5eababd1efb88b7332d7f748930316

See more details on using hashes here.

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

Hashes for nexosapi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7baaa6cedbfe42f66415b8334e00b4cc2f262c49e3387ae9dbeb5dfb9cbd47d8
MD5 147de49668ba446facc0ab700e8ba344
BLAKE2b-256 f33a4921f77a559b893def36fdcd3e5955b471940545decd2028558a279f1083

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page