{
  "x402Version": 2,
  "id": 248,
  "slug": "248",
  "resource": "https://glim.sh/api/v1/detect/ai",
  "description": "Detect AI-generated text: overall verdict with confidence, AI/human/AI-assisted fractions, and a segment-by-segment breakdown with per-segment humanizer flags. Price scales with length: $0.06 per 100 words, rounded up; minimum $0.06",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "9MkM5Ra48KFcSv9HDQ8sb3C3r5HjouEwGQ6sp1cx1vde",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "60000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xC751344Ee09B5159160173F77D4a1169bCd386A1",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "60000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:143",
      "payTo": "0xC751344Ee09B5159160173F77D4a1169bCd386A1",
      "asset": "0x754704Bc059F8C67012fEd69BC8A327a5aafb603",
      "amount": "60000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "text": "Detection quality depends on length, so pass at least a paragraph of the text you want scored rather than a single sentence."
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "confidence": "High",
            "cost_usd": 0.12,
            "fraction_ai": 0.7854,
            "fraction_ai_assisted": 0,
            "fraction_human": 0.2146,
            "headline": "AI Detected",
            "num_ai_assisted_segments": 0,
            "num_ai_segments": 1,
            "num_human_segments": 1,
            "prediction": "We believe that this text is a mix of AI and human-written content.",
            "prediction_short": "Mixed",
            "segments": [
              {
                "ai_assistance_score": 0.1847,
                "confidence": "High",
                "end_index": 232,
                "humanizer_score": 0,
                "is_humanized": false,
                "label": "Human",
                "preview": "I found the answer by the way... Just a simple wrong sequence...",
                "score": 0.1847,
                "start_index": 0,
                "text": "I found the answer by the way...\nJust a simple wrong sequence of sentences in...",
                "token_length": 56,
                "word_count": 42,
                "word_end": 42,
                "word_start": 1
              },
              {
                "ai_assistance_score": 0.8038,
                "confidence": "High",
                "end_index": 1081,
                "humanizer_score": 0.0191,
                "is_humanized": false,
                "label": "AI-Generated",
                "preview": "Gives this answer: Yes, I'm Claude 3.5 Sonnet. My knowledge...",
                "score": 0.8038,
                "start_index": 233,
                "text": "Gives this answer:\nYes, I'm Claude 3.5 Sonnet.\nMy knowledge cutoff is April 2...",
                "token_length": 205,
                "word_count": 137,
                "word_end": 179,
                "word_start": 43
              }
            ],
            "tier_used": "premium",
            "version": "4.0",
            "word_count": 179
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "description": "Input for POST /api/v1/detect/ai",
                "properties": {
                  "text": {
                    "description": "Text to analyze, plain text, 50+ characters, max 20,000. Detection reliability improves with length; very short texts return lower-confidence verdicts.",
                    "minLength": 50,
                    "type": "string"
                  }
                },
                "required": [
                  "text"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "confidence": {
                    "description": "Confidence carrying the overall verdict: High, Medium, or Low",
                    "type": "string"
                  },
                  "cost_usd": {
                    "description": "Amount charged for this call, in USD",
                    "type": "number"
                  },
                  "fraction_ai": {
                    "description": "Fraction of the text judged AI-generated, 0-1",
                    "type": "number"
                  },
                  "fraction_ai_assisted": {
                    "description": "Fraction judged AI-assisted, 0-1",
                    "type": "number"
                  },
                  "fraction_human": {
                    "description": "Fraction judged human-written, 0-1",
                    "type": "number"
                  },
                  "headline": {
                    "description": "Short verdict, e.g. 'AI Generated', 'AI Detected', 'Human Written'",
                    "type": "string"
                  },
                  "num_ai_assisted_segments": {
                    "description": "Segments labeled AI-Assisted",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  "num_ai_segments": {
                    "description": "Segments labeled AI-Generated",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  "num_human_segments": {
                    "description": "Segments labeled Human",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  "prediction": {
                    "description": "One-sentence verdict in plain English",
                    "type": "string"
                  },
                  "prediction_short": {
                    "description": "Verdict class: AI, Mixed, or Human",
                    "type": "string"
                  },
                  "segments": {
                    "description": "Per-segment breakdown, in reading order",
                    "items": {
                      "properties": {
                        "ai_assistance_score": {
                          "description": "Same value as score, under the upstream detector's field name",
                          "type": "number"
                        },
                        "confidence": {
                          "description": "Detector confidence for this segment: High, Medium, or Low",
                          "type": "string"
                        },
                        "end_index": {
                          "description": "Character offset just past this segment's last word in the text you submitted (exclusive)",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991,
                          "type": "integer"
                        },
                        "humanizer_score": {
                          "description": "Humanizer likelihood, 0-1.",
                          "type": "number"
                        },
                        "is_humanized": {
                          "description": "True when this segment reads as AI output passed through a paraphrasing/'humanizer' tool. Absent means not evaluated, not false.",
                          "type": "boolean"
                        },
                        "label": {
                          "description": "Detector verdict for this segment (e.g. 'AI-Generated', 'Human')",
                          "type": "string"
                        },
                        "preview": {
                          "description": "Opening excerpt of the segment",
                          "type": "string"
                        },
                        "score": {
                          "description": "AI-assistance score for this segment, 0-1",
                          "type": "number"
                        },
                        "start_index": {
                          "description": "Character offset of this segment's first word in the text you submitted",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991,
                          "type": "integer"
                        },
                        "text": {
                          "description": "Full text of this segment, sliced from the text you submitted",
                          "type": "string"
                        },
                        "token_length": {
                          "description": "Tokens in this segment, as counted by the detector",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991,
                          "type": "integer"
                        },
                        "word_count": {
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991,
                          "type": "integer"
                        },
                        "word_end": {
                          "description": "1-based word position where this segment ends",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991,
                          "type": "integer"
                        },
                        "word_start": {
                          "description": "1-based word position where this segment starts",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "label",
                        "score",
                        "ai_assistance_score",
                        "confidence",
                        "text",
                        "word_start",
                        "word_end",
                        "word_count",
                        "token_length",
                        "start_index",
                        "end_index",
                        "preview"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "tier_used": {
                    "const": "premium",
                    "description": "Deprecated: always 'premium' - every call runs the single remaining (highest-accuracy) detection class. Retained for backward compatibility.",
                    "type": "string"
                  },
                  "version": {
                    "description": "Detector model version that produced this verdict (e.g. '4.0')",
                    "type": "string"
                  },
                  "word_count": {
                    "description": "Words analyzed",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  }
                },
                "required": [
                  "headline",
                  "prediction",
                  "prediction_short",
                  "fraction_ai",
                  "fraction_ai_assisted",
                  "fraction_human",
                  "num_ai_segments",
                  "num_ai_assisted_segments",
                  "num_human_segments",
                  "confidence",
                  "version",
                  "word_count",
                  "tier_used",
                  "cost_usd",
                  "segments"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "glim.sh",
  "lastUpdated": "2026-08-29T06:35:19.474Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-08-29T06:35:24.594Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "glim.sh",
    "manifest_name": "glim.sh",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}