# GPTZero API > The GPTZero API detects whether text was written by AI. Send text or files, and get back probabilities for the whole document, each paragraph and each sentence. - Base URL: `https://api.gptzero.me` - Authentication: send an API key in the `x-api-key` header. Create one at https://app.gptzero.me/app/api. - MCP server: `https://api.gptzero.me/mcp` lets AI assistants such as Claude, ChatGPT and Cursor run GPTZero scans. It uses GPTZero account sign-in instead of an API key. Setup and tools: https://docs.gptzero.me/mcp.md - Every endpoint, with request and response schemas, is in the OpenAPI spec: https://docs.gptzero.me/openapi/public.yaml - The whole API reference, as Markdown: https://docs.gptzero.me/api-reference.md - Every docs page is also served as Markdown at its URL plus `.md`. An endpoint's Markdown is its API reference URL with `#` removed, plus `.md`. ## Get started - [Introduction](https://docs.gptzero.me/index.md): 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. - [Quickstart](https://docs.gptzero.me/quickstart.md): Get a GPTZero API key and scan your first document for AI-generated text with a single curl request. - [MCP server](https://docs.gptzero.me/mcp.md): Connect Claude, ChatGPT, Cursor and other AI assistants to GPTZero with the GPTZero MCP server, and scan text for AI and hallucinated citations. ## API reference ### AI Detection - [Detect AI in text](https://docs.gptzero.me/api-reference/POST/v2/predict/text.md): `POST /v2/predict/text` - [Detect AI in files](https://docs.gptzero.me/api-reference/POST/v2/predict/files.md): `POST /v2/predict/files` ### AI Patterns - [Stream AI patterns](https://docs.gptzero.me/api-reference/POST/v3/ai/patterns/stream.md): `POST /v3/ai/patterns/stream` ### Bibliography Scan - [Bibliography scan (text)](https://docs.gptzero.me/api-reference/POST/v2/bibliography-scan/text.md): `POST /v2/bibliography-scan/text` - [Bibliography scan (files)](https://docs.gptzero.me/api-reference/POST/v2/bibliography-scan/files.md): `POST /v2/bibliography-scan/files` ### Utilities - [Get usage stats](https://docs.gptzero.me/api-reference/GET/v3/usage-stats.md): `GET /v3/usage-stats` - [List model versions](https://docs.gptzero.me/api-reference/GET/v2/model-versions/ai-scan.md): `GET /v2/model-versions/ai-scan` ## Optional - [Changelog](https://docs.gptzero.me/changelog.md): New features and changes to the GPTZero AI detection API, newest first.