GPTZero API Wrapper
This wrapper provides a simple way to interact with the GPTZero API using Python.
Featured on https://gptzero.me/docs
Getting started
To use the GPTZero API, you'll need to have an API key. If you don't have an API key yet, you can sign up for one on the GPTZero website.
Once you have your API key, you can install the gptzero package and use it.
from gptzero import GPTZeroAPI
api_key = 'your_api_key_here' # Your API Key from https://gptzero.me
gptzero_api = GPTZeroAPI(api_key)
Making a text prediction
document = 'Hello world!'
response = gptzero_api.text_predict(document)
print(response)
Making a file prediction
file_path = 'path/to/your/file'
response = gptzero_api.file_predict(file_path)
print(response)
Metadata
Release files for gptzero 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gptzero-0.1.2.tar.gz | 3.1 kB | Details |
Release files / gptzero-0.1.2.tar.gz
| Download URL | gptzero-0.1.2.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9808a091afccc6004350f6b539c97450dfa1382268485fe69c031d088a0f1d87
|
|
BLAKE2b-256 checksum How to use checksums |
f19549207ef324bfa340e7708a6a7668e5bbb01abd16764389454ab6d4983166
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|