API & MCP
Everything a person can do on Photo Tone Curves & Profile Processor, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://luminatoneprocessor.usefulweb.site/api/v1/calculate– run Photo Tone Curves & Profile ProcessorGET https://luminatoneprocessor.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Photo Tone Curves & Profile Processor
Develop a photo with black and white points, gamma, five-point master and RGB curves, and linear-light white-balance gains. Download a transparent PNG and reusable settings profile, or paste a profile saved from Lumina.
| Field | Type | Default | Description |
|---|---|---|---|
image (required) | file | — | Image (PNG, JPEG or WebP; up to 8 MB and 16 MP) |
profile | textarea | — | Lumina profile JSON (optional; overrides all manual fields) |
black | number | 0 | Input black |
white | number | 255 | Input white |
gamma | number | 1 | Midtone gamma |
exposure | number | 0 | Exposure (EV) |
contrast | number | 0 | Contrast |
saturation | number | 0 | Saturation |
redGain | number | 1 | Red linear-light gain |
greenGain | number | 1 | Green linear-light gain |
blueGain | number | 1 | Blue linear-light gain |
master | text | "0,64,128,192,255" | Master curve outputs at 0,64,128,192,255 |
red | text | "0,64,128,192,255" | Red curve outputs at 0,64,128,192,255 |
green | text | "0,64,128,192,255" | Green curve outputs at 0,64,128,192,255 |
blue | text | "0,64,128,192,255" | Blue curve outputs at 0,64,128,192,255 |
Example request
Gentle contrast curve
curl -X POST https://luminatoneprocessor.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"image":{"filename":"sample.png","contentType":"image/png","contentBase64":"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAQMAAABJtOi3AAAABlBMVEX/////AADrWueTAAAAEklEQVQI12NgIBb8/09dgjgAAPcnH+GApkH4AAAAAElFTkSuQmCC"},"master":"0,50,128,206,255"}'
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://luminatoneprocessor.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
lumina_tone_processor - Local stdio connector:
node src/mcp-stdio.ts --tool=lumina-tone-processor
{
"mcpServers": {
"lumina-tone-processor": { "type": "http", "url": "https://luminatoneprocessor.usefulweb.site/mcp" }
}
}