Skip to main content

Asynchronous Python wrapper for the GPTZero API

Project description

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)

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

gptzero-0.1.2.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file gptzero-0.1.2.tar.gz.

File metadata

  • Download URL: gptzero-0.1.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for gptzero-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9808a091afccc6004350f6b539c97450dfa1382268485fe69c031d088a0f1d87
MD5 e8ef7910719bcbdfa1c6f7382b8e7026
BLAKE2b-256 f19549207ef324bfa340e7708a6a7668e5bbb01abd16764389454ab6d4983166

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