Skip to main content

Unified Python package for AI models

Project description

unifiedaiservices

unifiedaiservices is a Python package that brings together a wide range of AI tools and services in a single, easy-to-use interface. It allows developers to integrate language models, transcription, image generation, voice synthesis, and more into their applications quickly and modularly.


Key Features

  • Integration with OpenAI models (including GPT, TTS, Transcribe, etc.)
  • Audio and video transcription
  • Image generation using advanced AI models
  • Predefined voices and text-to-speech (TTS) support
  • Modular architecture for easy extension and customization

Requirements

  • Python 3.11 or higher

Installation

Install directly from PyPI:

pip install unifiedaiservices

Basic Usage

from unifiedaiservices.client import CreateClient
from unifiedaiservices.settings import AISettings, OpenAIProvider
import os
from dotenv import load_dotenv

# Load environment variables
load_dotenv()
API_KEY = os.getenv("OpenAI_API_KEY")

# Initialize client
client = CreateClient(api_key=API_KEY, provider="openai").get_client()


# Create OpenAIProvider instance
openai = OpenAIProvider(client)

# Load settings and print available models
AISettings(openai).print_models()

# Available actions
openai.print_models()
openai.create_data("model", "prompts")
openai.exists_model("model_id")
openai.get_models()
openai.get_model_info("model_id")

Note: You can also manually set the data:

openai.data_prompt = {
    "model": "gpt-4o",
    "prompt": "Hello, world!",
    "max_tokens": 50
}

Example Usage

openai.generate_ai(openai.create_data(data))

Contributing

Contributions are welcome! If you have suggestions, bug fixes, or new feature ideas, please reach out via email: a0534123987@gmail.com


License

MIT License © 2025 This license allows free use, copying, modification, and distribution of the code.


Notes

  • This project is aimed at developers and AI enthusiasts who want to easily integrate multiple AI tools.
  • It is recommended to use personal API keys for OpenAI or any other external services.
  • For advanced usage, unifiedaiservices can be extended to suit your specific needs.

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

unifiedaiservices-0.2.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

unifiedaiservices-0.2.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file unifiedaiservices-0.2.0.tar.gz.

File metadata

  • Download URL: unifiedaiservices-0.2.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for unifiedaiservices-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b73a5d821fba4503ce2b671b06f70b943e6b1d271ac225cd0de91e625efa5cd1
MD5 974a98d34edf4cc2e6213433aa8ba21c
BLAKE2b-256 4f4658b67a8661dff6d7fa5e1bac555770c2f5c75f5366caed1af6bbc93eb7f7

See more details on using hashes here.

File details

Details for the file unifiedaiservices-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for unifiedaiservices-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b8c5bfb081c70624ad382073cf3573e6ad812da3d80e43396f5c4a9e0bd99f6
MD5 4ca1eca80973007a7004f939175bcd45
BLAKE2b-256 040f2d957664e40af2dbc5c0f5333d7eee7e6b6a1b13554d2bde5024bd64d2f1

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