Skip to main content

A Python library for interacting with the GhostAI API

Project description

GhostAI

PyPI version License: MIT

Python library for interacting with the GhostAI API.

Installation

You can install ghostai via pip:

pip install ghostai

Usage

import ghostai

# Example usage for ghostai
chat("api_key", "model", "prompt") # Model is either chat or img

# Api key can be found by emailing
# cyberzendev@gmail.com


# Example usage for generating a chat
response = chat("api_key", "chat", "prompt")

print(response)

# Example usage for generating an image

import ghostai

# Define your API key and model
api_key = "YOUR_API_KEY"
model = "YOUR_MODEL"

# Send a message and receive the response with an image
message = "Your prompt here"
decoded_image = ghostai.chat_with_image(api_key, model, message)

# Display the decoded image
if decoded_image:
    decoded_image.show()
else:
    print("Failed to receive or decode the image.")

API Key

You need to obtain an API key from GhostAI to use this library. Visit GhostAI for more information.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

ghostai-1.3.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

ghostai-1.3.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file ghostai-1.3.1.tar.gz.

File metadata

  • Download URL: ghostai-1.3.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for ghostai-1.3.1.tar.gz
Algorithm Hash digest
SHA256 e9aafa458f0771a79e8ae4e875cf8974a0d30b69896b8875c4cc9b7ab9c0b981
MD5 6cdf9a6346171a98ae0082b83307676b
BLAKE2b-256 584eac86a882fa42b7ba7b58ec8a60feaea94c138f1f15ca005eaa1fefab3aa1

See more details on using hashes here.

File details

Details for the file ghostai-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: ghostai-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for ghostai-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f90e273a4bad5cc125929beb0441ecb9fc445df254aee33cd6a925263c2b4ef5
MD5 425410fa44d5461c83ce8d6a8b72e29a
BLAKE2b-256 045949431ce08adad01672e70e5f99888ba4837e3a18a962864b78e264646885

See more details on using hashes here.

Supported by

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