API & MCP
Everything a person can do on Render Sampling Budget, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://kerfwiserenderbudget.usefulweb.site/api/v1/calculate– run Render Sampling BudgetGET https://kerfwiserenderbudget.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Render Sampling Budget
Plan a local Render Desk image before starting the worker. Compare the chosen sample count with a target, see pixel and ray bounds, buffer estimates and the expected relative sampling noise under independent samples.
| Field | Type | Default | Description |
|---|---|---|---|
width | number | 640 | Width (px) |
height | number | 480 | Height (px) |
samples | number | 8 | Samples per pixel |
target | number | 16 | Comparison samples per pixel |
Example request
Standard versus fine preview
curl -X POST https://kerfwiserenderbudget.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://kerfwiserenderbudget.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
kerfwise_render_budget - Local stdio connector:
node src/mcp-stdio.ts --tool=kerfwise-render-budget
{
"mcpServers": {
"kerfwise-render-budget": { "type": "http", "url": "https://kerfwiserenderbudget.usefulweb.site/mcp" }
}
}