Skip to content
Get started
GENERATION API CALLS
Vectorization Models

Vision Cortex

This page is auto-generated from model configurations. Last updated: 2026-11-05.

This reference lists all available Vision Cortex vectorization models and their parameters. Use these parameter names when calling the Generation API.


Converts raster images to SVG format using VisionCortex VTracer with customizable vectorization parameters.

Model ID: model_visioncortex-vtracer

Capabilities: img2img

LLM Markdown: https://app.scenario.com/api/models/model_visioncortex-vtracer/markdown

Parameter Type Required Default Min Max Allowed Values Description
image file Yes - - - - The raster image, such as a PNG or JPG, to convert into an SVG.
presetName string No poster - - bw, poster, illustration, photo, custom Ready-made settings for black and white, poster, illustration or photo images. Choose Custom to set every option yourself.
colorMode string No color - - color, binary, watershed Color mode: โ€˜colorโ€™, โ€˜binaryโ€™ or โ€˜watershedโ€™ (region-forming on the colour gradient; best for flat art). Only used with preset is Custom.
colorPrecision number No 6 1 8 - Higher values keep more subtle color differences, giving more detail but larger files. Custom preset only.
layerDifference number No 16 0 255 - How different colors must be to form separate layers. Lower values give smoother gradients but larger files. Custom preset only.
watershedDetail number No 230 0 400 - Region count dial for the watershed color mode (0-400, each +25 roughly doubles the regions; values above 255 suit gradient-heavy content, pair with Hierarchical Mode Stacked). Only used with preset is Custom and Color Mode is Watershed.
hierarchical string No stacked - - stacked, cutout Stacked places shapes on top of one another; Cutout cuts them apart so none overlap. Custom preset only.
mode string No spline - - spline, polygon, pixel, none Curve fitting mode: โ€˜splineโ€™ (smooth curves), โ€˜polygonโ€™ (straight lines), โ€˜pixelโ€™ (pixelated), or โ€˜noneโ€™. Only used with preset=โ€˜customโ€™.
filterSpeckle number No 4 0 128 - Removes specks smaller than this many pixels. Higher values give cleaner SVGs but lose tiny details. Custom preset only.
cornerThreshold number No 60 0 180 - Turns sharper than this angle stay corners. Lower values keep more corners; higher values round more into curves. Custom preset only.
lengthThreshold number No 4 3.5 10 - Curves are smoothed until segments are shorter than this. Lower values follow shapes more closely but give larger files. Custom preset only.
spliceThreshold number No 45 0 180 - Lower values split curves into more segments for accuracy; higher values give fewer, smoother curves. Custom preset only.
simplify number No 0 0 10 - Curve simplification tolerance in pixels (0 = unset). Around 1.0 roughly halves the SVG size with no visible change. Applies on top of any preset.
binaryThreshold number No 128 0 255 - Luminance cutoff for binary mode (0-255): pixels darker than this become black. Applies to the Black and white preset and to Custom with Binary color mode.
adaptive boolean No false - - - Binary mode: use adaptive (Bradley-Roth) thresholding instead of a fixed cutoff, for unevenly lit scans or photos of drawings.
colorPaletteSize number No 0 0 256 - Quantize the output palette to at most this many colors (0 = unset, minimum 2). Applies on top of any preset.
colorPalette string_array No - - - - Fixed list of hex colors (#RRGGBB); every region snaps to the nearest palette color. Applies on top of any preset.