Detect AI-generated text
Changed onSubmit a passage of text and classify it as AI-generated or human-written.
Processing is asynchronous by default: the response returns immediately with status: processing, and you can poll GET /text_detect/{uuid} or supply a callback_url to be notified. Send the Prefer: wait header to block until the verdict is available and receive the completed item in the same response. Allow a generous client timeout when waiting, since the first request after a period of inactivity can take several minutes while the model warms up.
Requests are rejected with a 400 when text is missing, exceeds 100,000 characters, or contains fewer than 25 words. Each successfully scored request bills one Text Detection unit; abstained (uncertain) results are not billed.
Request
- Base URL: https://app.resemble.ai/api/v2
- URL: https://app.resemble.ai/api/v2/text_detect
- Auth: HTTP bearer
Headers
When set to "wait", the API processes synchronously and returns the completed result.
Request body
Response
Text detection created (or completed when Prefer: wait was sent)
Changes
- info
endpoint added
- info