Skip to main content

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.

Release files for ghostai 1.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ghostai 1.3.1
File Size Uploaded
ghostai-1.3.1.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ghostai 1.3.1
File Interpreter ABI Platform
ghostai-1.3.1-py3-none-any.whl Python 3 none any Details

Total release size:5.0 kB

Release files / ghostai-1.3.1.tar.gz

Download URL ghostai-1.3.1.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e9aafa458f0771a79e8ae4e875cf8974a0d30b69896b8875c4cc9b7ab9c0b981
BLAKE2b-256 checksum
How to use checksums
584eac86a882fa42b7ba7b58ec8a60feaea94c138f1f15ca005eaa1fefab3aa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / ghostai-1.3.1-py3-none-any.whl

Download URL ghostai-1.3.1-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f90e273a4bad5cc125929beb0441ecb9fc445df254aee33cd6a925263c2b4ef5
BLAKE2b-256 checksum
How to use checksums
045949431ce08adad01672e70e5f99888ba4837e3a18a962864b78e264646885
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

1.3.1 This release

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page