← All models
Image2svg
image2svg
Image editby infery
Image2SVG transforms raster images into clean vector graphics, preserving visual quality while enabling scalable, customizable SVG outputs with precise control over detail levels.
images
Details
- Accepts
- image
Pricing
- Price
- 0.625 cr / image
Prices in credits (1 credit = $0.01).
Data schema
Input
| Field | Type | Description |
|---|---|---|
| mode | stringenum: spline, polygon | Mode: spline (curved) or polygon (straight lines) |
| colormode | stringenum: color, binary | Choose between color or binary (black and white) output |
| image_urlrequired | string | The image to convert to SVG |
| hierarchical | stringenum: stacked, cutout | Hierarchical mode: stacked or cutout |
| filter_speckle | integer | Filter out small speckles and noise |
| max_iterations | integer | Maximum number of iterations for optimization |
| path_precision | integer | Decimal precision for path coordinates |
| color_precision | integer | Color quantization level |
| corner_threshold | integer | Corner detection threshold in degrees |
| layer_difference | integer | Layer difference threshold for hierarchical mode |
| length_threshold | number | Length threshold for curves/lines |
| splice_threshold | integer | Splice threshold for joining paths |
Output
| Field | Type | Description |
|---|---|---|
| images | array | The converted SVG file |