Prism is in beta. Scores and the response shape may change.
Check a text
Set your Morph API key, then run:state. Read answers.is_ai.noul, the probability that an AI model wrote it, from 0 to 1:
Find which provider wrote it
Add onechoice 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
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
questionsholds exactly onenoulquestion and at most onechoicequestion over providers. Thenoulquestion’sinstructionsdon’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_tokensis always 0.
Errors
400: the text is under 25 words, a question breaks the rules above, orcriterianames a provider outside the 11. The message says which.401: missing or invalid key.404: unknownmodel.429: your key’s rate limit.
{"error": {"message", "type", "param", "code"}}.
Try it without code in the AI Detector playground.