---
title: "Convert to SVG"
description: "Trace to a clean SVG."
sidebar:
  label: vectorize
---

{/* Generated by scripts/generate-commands.ts. Do not edit. */}

## Synopsis

```sh
motif vectorize [image] [options]
```

## Example

A mark traced to clean paths.

```sh
motif vectorize mark.jpg
```

<div class="docs-pictures docs-pictures-2">
  <figure>
    <img src="/docs/images/commands/mark.jpg" alt="A sprig inside a ring, printed in olive on paper" loading="lazy" />
    <figcaption>Before</figcaption>
  </figure>
  <figure>
    <img src="/docs/images/commands/mark.svg" alt="The mark traced to a vector file" loading="lazy" />
    <figcaption>After</figcaption>
  </figure>
</div>

## Options

| Flag | What it does |
| --- | --- |
| `--tier <tier>` | Trade cost against quality: fast, balanced, quality. |
| `--dry-run` | Validate and price the call without running it. |

It also takes the [common options](/docs/commands#common-options).

## Models and price

Motif picks the Model for the Tier. Prices are per image.

| Model | Chosen at | Price |
| --- | --- | ---: |
| Recraft Vectorize | Balanced | $0.040 |
| Image to SVG | Fast | $0.005 |

## Dry run

Check the cost before you spend. The output path is where the file would go.

```sh
motif vectorize mark.jpg --dry-run --fields cost,costBasis,output
```

```json
{
  "cost": 0.04,
  "costBasis": "projected",
  "output": "mark-vectorize.svg"
}
```
