Vectorize image
vectorize_imageConvert a raster image (PNG/JPG/WebP, max 5 MB) into a clean, editable SVG. Provide image_url or image_base64. no_background defaults to true and isolates the subject (4 credits). Set no_background false with mode 'direct' to trace as-is (1 credit); mode 'enhance' redraws with AI first (4 credits). Runs async, so poll with wait_for_task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | direct | |
| prompt | No | Optional guidance for enhance mode | |
| image_url | No | Public URL of the image | |
| image_base64 | No | Base64 image data (raw or data URL) | |
| no_background | No | Isolate the subject on a transparent background |