GPTZero API
Detect AI-generated text with the GPTZero API. Get an API key, scan text and files, and see results for each document, paragraph and sentence.
QuickstartMake your first API request.
API referenceExplore endpoints and try requests.
Base URL
Section titled “Base URL”All endpoints are served from https://api.gptzero.me.
Authentication
Section titled “Authentication”Send your API key in the x-api-key header. Requests with a missing or expired key get a 401, and an unrecognized key gets a 403. You can create a key on the API page of the GPTZero app.
To check that your key works, fetch your usage for the current billing cycle:
curl https://api.gptzero.me/v3/usage-stats \ -H "x-api-key: $GPTZERO_API_KEY"