/generate/vectorize

[DEPRECATED] This API is deprecated.

Advanced vectorization of an image.

Note: Please use POST /generate/custom/{modelId} endpoint instead. You can retrieve the model inputs from the GET /models/{modelId} endpoint. Please use model_visioncortex-vtracer modelId for example. See https://docs.scenario.com/docs/tools-parameters-reference for more details.

Query Params
string

If set to true, returns the original asset without transformation

string
Body Params
string
enum
Defaults to spline

Curver fitting mode none, polygon, spline

Allowed:
string
required

The asset ID (example: "asset_GTrL3mq4SXWyMxkOHRxlpw") to vectorize.

number
0 to 255

Represents the color difference between gradient layers (higher value will reduce the number of layers)

Only applicable to color colorMode.

number
1 to 100000

Max iterations for rendering

number
0 to 180

Minimum momentary angle (degree) to be considered a corner (higher value will smooth corners)

Only applicable to spline mode.

number
1 to 16

Number of significant bits to use in an RGB channel, min 1, max 16 (higher value will increase precision)

Only applicable to color colorMode.

number
0 to 180

Minimum angle displacement (degree) to splice a spline (higher value reduce accuracy)

Only applicable to spline mode.

number
3.5 to 10

Minimum length of a segment (higher value will generate more coarse output)

Only applicable to spline mode.

string
enum
Defaults to color

Color mode bw, color. If bw, the image will be considered as black and white.

Allowed:
number
0 to 128

Discard patches smaller than X px in size (higher value will reduce the number of patches, cleaner output)

string
enum
Defaults to custom

If preset given, all other parameters will be ignored (mode, colorMode, filterSpeckle, ...), except for custom.

Allowed:
number
≥ 0

Number of decimal places to use in path string

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json