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.
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"Credits
Section titled “Credits”Each request uses credits from your plan - credit calculation is detailed here. If your plan allows overage, credits past your plan’s allotment are billed as overage.
GET /v3/usage-stats returns the credits you’ve used and have left in the current billing cycle.