Studiov0.1.1
signal:// developers

API & Agent Control

The same isomorphic engine that streams video in the studio renders single images over HTTP — for scripts, automations, and AI agents. Perceptually-correct linear-light luminance, high-quality pyramid downscaling, unsharp-mask detail enhancement, Floyd–Steinberg dithering, Sobel edge detection, and an adaptive Bayesian temporal filter, all under the hood.

Live playground

POST /api/v1/render
Columns · 100
Charset
Format
cURL
curl -X POST /api/v1/render \
  -H "Content-Type: application/json" \
  -d '{"imageUrl":"/test-portrait.png","columns":100,"charset":"detailed","format":"text","color":false,"edges":false}'
Response

Run a request to see the output.

Endpoints

GET/api/health
POST/api/v1/render
GET/api/v1/a2v-handoff
POST/api/mcp
GET/api/v1/agent
GET/api/openapi.json

Render parameters

ParamTypeDefaultDescription
columnsinteger 8–400120Output width in characters.
charsetenumdetailedOne of: standard, detailed, blocks, binary, dots, minimal.
formatenumtexttext | ansi | html | json | json-compact | svg.
colorbooleanfalsePer-cell 24-bit color (ignored by plain text).
invertbooleanfalseInvert luminance mapping.
contrastfloat 0.2–41.15Tonal contrast multiplier.
brightnessfloat -150–1500Luminance offset.
saturationfloat 0–41.4Color-mode saturation boost.
gammafloat 0.2–31Perceptual midtone response.
edgesbooleanfalseSobel edge-detection line-art mode.
edgeStrengthfloat 0.1–51.8Edge magnitude multiplier.
ditherbooleanfalseFloyd–Steinberg error diffusion.
sharpenfloat 0–10.35Unsharp-mask detail enhancement.
autoLevelsfloat 0–10.9Automatic percentile histogram stretch.
structurefloat 0–10.55Contour-aware directional glyph substitution ( - / | \ ).
denoisefloat 0–10.35Edge-preserving bilateral denoising before detail recovery.
motionSensitivityfloat 0–10.7Motion responsiveness in the final Bayesian posterior update.
autoOptimizefloat 0–10.9Strength of source-aware Auto Director tuning against the selected quality rubric.
qualityTargetenumbalancedbalanced | portrait | motion | low-light | round-trip.
glyphStrategyenumadaptiveadaptive chooses the smallest glyph codebook under maxGlyphRmse; fixed preserves the selected ramp.
maxGlyphRmsefloat 0.005–0.10.03Maximum normalized luminance quantization RMSE for adaptive glyph selection.
monoColorhex#e5e5e5Color for mono/ansi/svg/html output.
Formats:textansihtmljsonjson-compactsvgCharsets:standarddetailedblocksbinarydotsminimal

Agents & MCP

POST /api/mcp

The Model Context Protocol endpoint speaks JSON-RPC 2.0 and exposes a single render_ascii tool. Point any MCP-compatible agent at the endpoint, or fetch the agent manifest for ready-to-run recipes.

MCP tool call
curl -X POST /api/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "render_ascii",
      "arguments": { "imageUrl": "https://asciicast.stream/test-portrait.png", "color": true, "format": "ansi" }
    }
  }'

Discovery