Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: ScanForAI Injection API
description: 'Detect AI-written text and clean it up. Public endpoints: **scan** a document for AI-writing signals, and **cleanup** (strip machine typography, no rewriting). Authenticate with an `at_sk_` API key: `Authorization: Bearer `. The score is a signal, not a verdict.'
version: '1'
tags:
- name: injection
paths:
/api/injection/image:
post:
tags:
- injection
summary: Scan Image
description: 'Scan one image. Returns a density, a band, a confidence and the reads behind them.
Query/form flags:
deep=true ask for the OCR tier (runs on a model worker; degrades to the
light read if no worker answers — never 5xx)
redact=true return classifications and hashes only, never extracted payload text
save=true keep this scan in the account''s history (result + a small
thumbnail + a hash of the upload — never the original file).
Default is NOT saved: nothing about an image scan is stored
unless asked.'
operationId: scan_image_api_injection_image_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
parameters:
- $ref: '#/components/parameters/XUILang'
- $ref: '#/components/parameters/LangQuery'
/api/injection/quota:
get:
tags:
- injection
summary: Quota
description: 'What this account may scan, so a client can show it without guessing (the same limits the scan applies,
channel modifier included).'
operationId: quota_api_injection_quota_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
parameters:
- $ref: '#/components/parameters/XUILang'
- $ref: '#/components/parameters/LangQuery'
components:
parameters:
XUILang:
name: X-UI-Lang
in: header
required: false
description: Language of the answer's `message` fields (a language code such as `en` or `es`; only the part before any `-` is used). Without it, the answer is English as always and error bodies carry no `message`.
schema:
type: string
maxLength: 16
LangQuery:
name: lang
in: query
required: false
description: The same as the `X-UI-Lang` header, for requests a browser makes without custom headers. If both are sent, `lang` wins.
schema:
type: string
maxLength: 16