---
title: "Match the style of another picture"
description: "Redraw in a reference's style."
sidebar:
  label: restyle
---

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

## Synopsis

```sh
motif restyle [image] --like <image> [options]
```

## Example

Redraw the room in the style of a second image.

```sh
motif restyle room.jpg --like reference.jpg
```

<div class="docs-pictures docs-pictures-3">
  <figure>
    <img src="/docs/images/commands/interior.jpg" alt="A bright room photographed" loading="lazy" />
    <figcaption>Before</figcaption>
  </figure>
  <figure>
    <img src="/docs/images/commands/restyle-reference.jpg" alt="The style reference" loading="lazy" />
    <figcaption>Reference</figcaption>
  </figure>
  <figure>
    <img src="/docs/images/commands/restyle-result.jpg" alt="The room redrawn in the reference's style" loading="lazy" />
    <figcaption>After</figcaption>
  </figure>
</div>

## Options

| Flag | What it does |
| --- | --- |
| `--like <image>` | Style reference image to redraw it like. |
| `--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 where a Model has one; any other shows how it is billed. A rate that depends on the size of the file or the length of the clip is a rate, not a total, so check it with a dry run.

| Model | Chosen at | Price |
| --- | --- | ---: |
| TeleStyle v2 | Balanced | $0.035/megapixel |

## Dry run

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

```sh
motif restyle room.jpg --like reference.jpg --dry-run --fields cost,costBasis,output
```

```json
{
  "cost": 0.038269000000000004,
  "costBasis": "projected",
  "output": "room-restyle.png"
}
```
