Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Checkfor.ai Python

Installation

pip install checkforai

Add your API key

Either export it as a variable.

export CHECKFORAI_API_KEY=<your API key>

Or pass it in to the constructor:

my_api_key = ''  # Fill this in with your API key.
classifier = TextClassifier(api_key=my_api_key)

Make a request

from checkforai import TextClassifier

classifier = TextClassifier()
result = classifier.predict(text)
# Score in range [0, 1] where 0 is human-written and 1 is AI-generated.
score = result['ai_likelihood']

Make a batch request

from checkforai import TextClassifier

text_batch = ["abc", "def"]

classifier = TextClassifier()
results = classifier.batch_predict(text_batch)
for result in results:
    text = result['text']
    score = result['ai_likelihood']

Questions? Email me at max@checkfor.ai!

Metadata

Release files for checkforai 0.2.0

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

Source distribution (sdist)

Source distribution for checkforai 0.2.0
File Size Uploaded Provenance Actions
checkforai-0.2.0.tar.gz 2.6 kB Without provenance Details for checkforai-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 5.9 kB

Release files / checkforai-0.2.0.tar.gz

Download URL checkforai-0.2.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
371e5ad96026b72fd43c1922d6f016171ee5c2e1f798b19e3513c12efdebcf42
BLAKE2b-256 checksum
How to use checksums
fbcf3d13f4c34c6ebf07a86405b2daf237590888f272fa33f41d4d98ae8caa6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / checkforai-0.2.0-py3-none-any.whl

Download URL checkforai-0.2.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
349d3b3cf82b33e579c78e202518f4021afbc700adbd91de20225d5da30a6467
BLAKE2b-256 checksum
How to use checksums
af293a2420de540f9eced395c9787152a35869741ccb97f3f8d581676289da08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Security for checkforai 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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