Skip to main content
POST
Detect AI content in a text

Authorizations

API-KEY
string
header
required

Body

application/json
text
string
required

The text to detect AI content in

Maximum string length: 100000
max_chunk_size
integer

The maximum size of the chunk. The unit is tokens number we use for the given model. If not specified we will use largest chunk size possible for the given model.

The maximum chunk sizes for models are:

  • surfer-ai-detector-v1: 510
  • surfer-ai-detector-v2: 8190
  • surfer-ai-detector-v3: 8190
Required range: 200 <= x <= 8190
model
enum<string>

The model to use for detection. We advise not specifying this option for the best results.

We reserve the right to deprecate models in the future. If the model you selected is deprecated, we will use the default model instead.

Available options:
surfer-ai-detector-v1,
surfer-ai-detector-v2,
surfer-ai-detector-v3
semantic_chunking
boolean
default:true

Whether to use semantic chunking. If enabled, for each chunk, we will find the largest semantic part of the text that is not longer than max_chunk_size.

Response

OK

ai_probability
number<float>

Probability that the text is AI-generated

Example:

0.9

chunks
object[]

Chunks of the text that were used for detection

Example:
model
string

The model that was used for detection

Example:

"surfer-ai-detector-v1"