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.
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
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 natively 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"
}
}
}
}
Metadata
Release files for indieml 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| indieml-0.1.9.tar.gz | 65.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| indieml-0.1.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 70.0 kB
Release files / indieml-0.1.9.tar.gz
| Download URL | indieml-0.1.9.tar.gz |
|---|---|
| Size | 65.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e345ec5ea188db1e6f3e48603ac1e30932ccce1cf96d4e8cb64ca4f9f3f4822a
|
|
BLAKE2b-256 checksum How to use checksums |
b889de5cb9936ccb9ce3f75f043139993825e1c47ad146ea19f8c0c3a7625c7b
|
| 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 28, 2026.
Transparency logRelease files / indieml-0.1.9-py3-none-any.whl
| Download URL | indieml-0.1.9-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d21d7c049cdfcd8bc45d104638ccc02dfccda79297468f0da47fd34313a29b7
|
|
BLAKE2b-256 checksum How to use checksums |
70bf9739ae5d8e8d2b0ea6b791f348cb19b755a33e26ba9e5e5032d3b8257528
|
| 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 28, 2026.
Transparency log