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

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.

Inputs of Photo Tone Curves & Profile Processor
FieldTypeDefaultDescription
image (required)file—Image (PNG, JPEG or WebP; up to 8 MB and 16 MP)
profiletextarea—Lumina profile JSON (optional; overrides all manual fields)
blacknumber0Input black
whitenumber255Input white
gammanumber1Midtone gamma
exposurenumber0Exposure (EV)
contrastnumber0Contrast
saturationnumber0Saturation
redGainnumber1Red linear-light gain
greenGainnumber1Green linear-light gain
blueGainnumber1Blue linear-light gain
mastertext"0,64,128,192,255"Master curve outputs at 0,64,128,192,255
redtext"0,64,128,192,255"Red curve outputs at 0,64,128,192,255
greentext"0,64,128,192,255"Green curve outputs at 0,64,128,192,255
bluetext"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)

{
  "mcpServers": {
    "lumina-tone-processor": { "type": "http", "url": "https://luminatoneprocessor.usefulweb.site/mcp" }
  }
}