Skip to main content

IndieML - Substance API

A lightweight, transformer-based API that evaluates text for substance, depth, and clarity in under 25ms while achieving 87% of the accuracy of a full-scale LLM. This package provides REST API, Python SDK, and MCP configuration details to natively connect the hosted Substance API to a wide variety of applications. For more information, including API key requests, please visit https://indieml.app.

REST API

For integrations outside the Python and MCP ecosystems (such as standard OpenAI function calling, custom AI scripts, or raw HTTP requests), the hosted endpoint accepts standard JSON payload requests.

cURL

curl -X POST https://indieml.app/v1/score/substance \
  -H "X-API-Key: YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{"input_text": "This is a test run."}'

Python (Requests)

import requests

response = requests.post(
    "https://indieml.app/v1/score/substance",
    headers={"X-API-Key": "YOUR_API_KEY_HERE"},
    json={"input_text": "This is a test run."}
)
print(response.json())

Node.js (Fetch)

const response = await fetch("https://indieml.app/v1/score/substance", {
  method: "POST",
  headers: {
    "X-API-Key": "YOUR_API_KEY_HERE",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({ input_text: "This is a test run." })
});
console.log(await response.json());

Python SDK

Installation (requires Python 3.11 or higher)

pip install indieml

Usage

from indieml import Substance

# Initialize the API
api = Substance(api_key="YOUR_API_KEY_HERE")

# Evaluate text for substance, depth, and clarity
result = api.score("This is a test run.")
print(result)

MCP Server Integration

You can integrate the Substance API into AI coding assistants by routing them to our cloud-native ASGI endpoints.

Cursor, ChatGPT, and Claude Code (Streamable HTTP)

For agents that support native Streamable HTTP / SSE configurations, provide the remote URL and authorization header directly:

{
  "mcpServers": {
    "indieml": {
      "type": "http",
      "url": "https://indieml.app/mcp/",
      "headers": {
        "X-API-Key": "YOUR_API_KEY_HERE"
      }
    }
  }
}

Claude Desktop (stdio via npx Bridge)

For local Linux, Mac, and Windows clients that require stdio transport, use the npx mcp-remote bridge to route the connection to the cloud endpoint. Node.js v20+ is required. Ensure your OS environment variables include INDIEML_API_KEY.

{
  "mcpServers": {
    "indieml": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://indieml.app/mcp/",
        "--header",
        "X-Api-Key:${INDIEML_API_KEY}"
      ],
      "env": {
        "INDIEML_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

Applications & Use Cases

The Substance API is a fast and inexpensive pre-screening tool designed to integrate with your existing classification pipeline.

While it evaluates substance across any text, it is uniquely suited for high-volume, automated data pipelines:

1. RAG & AI Knowledge-Base Preprocessing

Pre-filter text before expensive LLM vectorization and processing.

  • Knowledge Portals: Filter out bloated, low-signal documentation prior to indexing.
  • Document Archives: Rank corporate or research archives based on actual information density.
  • Feed Aggregation: Rank news, newsletters, or educational content by structural depth rather than just recency or click-through rates.

2. Automated Content Triage & Large-Scale Screening

Route inbound text based on substance, clarity, and depth rather than relying solely on keywords or sentiment analysis.

  • Support Tickets: Identify highly detailed bug reports and instantly route them past basic classification bots to human operators.
  • Customer Feedback: Isolate high-quality product critiques from generic "it's great" or "it's broken" noise.
  • User-Generated Content: Surface high-effort, high-value forum posts and survey responses while automatically burying low-effort spam.

Metadata

Release files for indieml 0.1.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for indieml 0.1.14
File Size Uploaded
indieml-0.1.14.tar.gz 66.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for indieml 0.1.14
File Interpreter ABI Platform
indieml-0.1.14-py3-none-any.whl Python 3 none any Details

Total release size: 71.5 kB

Release files / indieml-0.1.14.tar.gz

Download URL indieml-0.1.14.tar.gz
Size 66.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c5d9ceafa362551050a48f366a6a439cc478e81b8a4ec3c1c91d83c3eece1003
BLAKE2b-256 checksum
How to use checksums
e31e57ba116f6be39dc3964937f358d6315ae7a480c0e18fccb5b61aefa64302
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release files / indieml-0.1.14-py3-none-any.whl

Download URL indieml-0.1.14-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1fb6e186f1ca415f87d48605fcc5bf2ce9e282fd4d8229766a67c7ae3fd2eee6
BLAKE2b-256 checksum
How to use checksums
5b97ccd2bee20537d6f149b1ecf089a800b032e388dc6b2a53dc7cccbc359c53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.14 This release

2 release files

0.1.13

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page