Skip to main content
1

Install the SDK

2

Configure your API key

You can provide your API key in two ways.Option 1: Environment variable
Option 2: Pass directly to the constructor
3

Discover available models

Model availability is specific to your API key. Retrieve the current catalog instead of hard-coding it.
Use one returned value as the keyword-only model argument on text and bulk requests.
4

Detect AI-generated text

Main prediction

Returns detailed analysis with AI-assistance detection and segment-level metrics. The SDK submits an async inference task and waits for the completed result before returning.
5

Analyze many texts with the Bulk API

Use the Bulk API for asynchronous AI detection across many inputs. Submit the job, wait for a terminal status, then fetch results. Completion time depends on the number and length of submitted items and current system load. Use get_bulk_status() or wait_for_bulk() to monitor progress.
For large jobs, process one results page at a time:
6

Check for plagiarism

The plagiarism detection API checks text against a vast database of online content:
The response includes:
  • Whether plagiarism was detected
  • List of plagiarized content with source URLs
  • Total number of sentences checked
  • List of plagiarized sentences
  • Percentage of text that was plagiarized
For backward compatibility, the SDK temporarily permits omitted model selection, preserves the existing wire payload, and emits a DeprecationWarning. Pass model="default" or another value from list_models() in new code. The argument will be required after September 30, 2026.

Deprecated Methods

The following SDK compatibility methods are deprecated and may be removed on August 1, 2026. Use predict() for one-off calls or submit_bulk() for asynchronous bulk jobs.
  • predict_short() — Forwards to predict() and returns the current async result schema
  • batch_predict() — Calls predict() once per input text