Skip to main content

GPTZero API Wrapper

PyPi version
Latest release
Maintenance
GitHub license
PRs Welcome

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)

Source distribution for gptzero 0.1.2
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

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

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