The Stemfard API is a JSON-based REST API that gives you programmatic access to intelligent mathematics computations for STEM education. Every request targets a specific mathematical operation, and every response returns structured results that can include step-by-step explanations, background theory, and learning pathway links. You send aDocumentation Index
Fetch the complete documentation index at: https://docsa.stemfard.com/llms.txt
Use this file to discover all available pages before exploring further.
POST request with a JSON body, and you receive a JSON response.
Base URL
All API requests are made to:/api/v1/.
Authentication
You authenticate by including your API key in theAuthorization header of every request.
Request format
All endpoints acceptPOST requests with a Content-Type: application/json body. There are no query parameters — all inputs are passed in the request body as a JSON object.
Response format
Responses are always JSON objects. A successful response returns HTTP200 with a result object whose structure depends on the endpoint and the api_level you request. See the errors reference for non-200 status codes.
Minimal complete example
The following example adds two matrices and returns a detailed response with steps.Common request parameters
Every math endpoint accepts the following shared parameters in the request body, in addition to any operation-specific fields.The name assigned to the computed result in the response object.
Controls response verbosity. Accepted values:
"lite", "standard", "detailed".When
true, includes background theory alongside each solution step.Format for rendered step content. Accepted values:
"html", "latex", "speech". Pass an empty string for plain text.Number of decimal places to round results to. Pass
null to return full precision.When
true, applies decimals rounding to intermediate step values as well as the final result.When
true, includes a normalized copy of the request parameters in the response.When
true, includes links to curated learning resources relevant to the operation.When
true, includes links to related Stemfard API endpoints in the response.When
true, includes a description of the result object’s properties in the response.The
api_level parameter is the fastest way to control response size. Use "lite" when you only need the computed result and want to minimize payload size. Use "standard" for results with steps but without background theory. Use "detailed" (the default) for the richest response, including theory, learning pathways, and related endpoint links — ideal for educational interfaces.Endpoint groups
The API is organized into endpoint groups by mathematical domain. Each group contains a combined endpoint (which accepts atype or operation parameter to select the specific computation) and individual focused endpoints for each operation.
| Group | Description | Reference |
|---|---|---|
| Matrix arithmetic | Add, subtract, multiply, divide, and raise matrices element-wise, plus standard matrix multiplication | matrix-arithmetic |
| Matrix dimensions | Query the number of rows, number of columns, or full shape of a matrix | matrix-dimensions |
| Matrix statistics | Compute min, max, sum, mean, median, variance, and standard deviation across rows, columns, or the full matrix | matrix-statistics |