Skip to main content
Prism is in beta. Scores and the response shape may change.
Prism scores text for AI authorship. Send the text. Prism returns the probability that an AI model wrote it, plus a distribution over which provider’s model it came from. It generates no text, so there’s nothing to parse.

Check a text

Set your Morph API key, then run:
Put the text in state. Read answers.is_ai.noul, the probability that an AI model wrote it, from 0 to 1:
Above 0.5 means AI. The cutoff is set so that 0.1% of the human-written texts in our evaluation set score above it. To trade more false positives for more catches, pick your own threshold.

Find which provider wrote it

Add one choice question. Its criteria lists the providers to choose between, at least two of these 11: openai, anthropic, google, deepseek, meta-llama, qwen, z-ai, moonshotai, minimax, x-ai, mistralai
For the text above, this returned:
choice is the most likely provider, and probabilities sum to 1 over the options you listed. If you list fewer providers, Prism picks among those only. Use that when you already know the shortlist. Read provider only when is_ai.noul is above your threshold. Prism answers the provider question for every text, human-written ones included, and on human text that answer is noise.

Requests

  • questions holds exactly one noul question and at most one choice question over providers. The noul question’s instructions don’t change the score.
  • Texts must be at least 25 words. Over 300 words, Prism scores the text in windows of whole sentences, up to 300 words each. It calls the text AI when more than 30% of its words are in windows scored as AI.
  • The request body is capped at 1 MB.
  • usage.output_tokens is always 0.

Errors

  • 400: the text is under 25 words, a question breaks the rules above, or criteria names a provider outside the 11. The message says which.
  • 401: missing or invalid key.
  • 404: unknown model.
  • 429: your key’s rate limit.
Errors use the Reflex API envelope: {"error": {"message", "type", "param", "code"}}. Try it without code in the AI Detector playground.