---
title: Commands
description: "Every command, grouped by what it does, and the options they share."
sidebar:
  label: All commands
---

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

## Make

<table class="docs-commands">
  <thead class="docs-sr"><tr><th>Command</th><th>What it does</th></tr></thead>
  <tbody>
    <tr><td><a href="/docs/commands/generate"><code>generate</code></a></td><td>Make an image from a prompt</td></tr>
    <tr><td><a href="/docs/commands/vary"><code>vary</code></a></td><td>Variations of an image</td></tr>
    <tr><td><a href="/docs/commands/series"><code>series</code></a></td><td>A consistent set from a theme</td></tr>
  </tbody>
</table>

## Edit

<table class="docs-commands">
  <thead class="docs-sr"><tr><th>Command</th><th>What it does</th></tr></thead>
  <tbody>
    <tr><td><a href="/docs/commands/erase"><code>erase</code></a></td><td>Remove something, fill the gap</td></tr>
    <tr><td><a href="/docs/commands/cutout"><code>cutout</code></a></td><td>Remove the background</td></tr>
    <tr><td><a href="/docs/commands/reframe"><code>reframe</code></a></td><td>Extend to a new aspect ratio</td></tr>
    <tr><td><a href="/docs/commands/upscale"><code>upscale</code></a></td><td>Make it larger</td></tr>
    <tr><td><a href="/docs/commands/restore"><code>restore</code></a></td><td>Fix noise, blur, damage and colour</td></tr>
    <tr><td><a href="/docs/commands/relight"><code>relight</code></a></td><td>Relight to a described light or a Mood</td></tr>
    <tr><td><a href="/docs/commands/restyle"><code>restyle</code></a></td><td>Redraw in a reference's style</td></tr>
    <tr><td><a href="/docs/commands/try-on"><code>try-on</code></a></td><td>Dress a person in a garment</td></tr>
  </tbody>
</table>

## Analyse

<table class="docs-commands">
  <thead class="docs-sr"><tr><th>Command</th><th>What it does</th></tr></thead>
  <tbody>
    <tr><td><a href="/docs/commands/ask"><code>ask</code></a></td><td>Caption, count, find or ask</td></tr>
    <tr><td><a href="/docs/commands/segment"><code>segment</code></a></td><td>Mask or cut out a named thing</td></tr>
    <tr><td><a href="/docs/commands/map"><code>map</code></a></td><td>Depth, edge, normal or pose map</td></tr>
  </tbody>
</table>

## Materials and files

<table class="docs-commands">
  <thead class="docs-sr"><tr><th>Command</th><th>What it does</th></tr></thead>
  <tbody>
    <tr><td><a href="/docs/commands/material"><code>material</code></a></td><td>PBR maps from a surface photo</td></tr>
    <tr><td><a href="/docs/commands/tile"><code>tile</code></a></td><td>A seamlessly tiling texture</td></tr>
    <tr><td><a href="/docs/commands/layers"><code>layers</code></a></td><td>Split into transparent layers</td></tr>
    <tr><td><a href="/docs/commands/vectorize"><code>vectorize</code></a></td><td>Trace to a clean SVG</td></tr>
    <tr><td><a href="/docs/commands/mesh"><code>mesh</code></a></td><td>A textured 3D mesh, rigged if asked</td></tr>
    <tr><td><a href="/docs/commands/animate"><code>animate</code></a></td><td>Turn an image into a video</td></tr>
    <tr><td><a href="/docs/commands/sheet"><code>sheet</code></a></td><td>A captioned contact sheet</td></tr>
  </tbody>
</table>

## Terminal

<table class="docs-commands">
  <thead class="docs-sr"><tr><th>Command</th><th>What it does</th></tr></thead>
  <tbody>
    <tr><td><a href="/docs/commands/studio"><code>studio</code></a></td><td>The interactive terminal Studio</td></tr>
    <tr><td><a href="/docs/commands/describe"><code>describe</code></a></td><td>Print the CLI schema as JSON</td></tr>
    <tr><td><a href="/docs/commands/last"><code>last</code></a></td><td>Show the latest Generation</td></tr>
    <tr><td><a href="/docs/commands/history"><code>history</code></a></td><td>Past Generations and spend</td></tr>
  </tbody>
</table>

## Common options

Every command takes these, alongside its own.

| Flag | What it does |
| --- | --- |
| `-m, --model <id>` | Run this Model instead of the ranked choice. |
| `--param <key=value>` | A Model-only request field; repeat for more. Needs -m. |
| `--seed <n>` | Reproducible seed, where the Model takes one. |
| `-o, --output <file-or-dir>` | Write here; a trailing / writes every output file. |
| `--format <format>` | Output format: json, human, ndjson (default: auto-detect from TTY). |
| `--fields <fields>` | Comma-separated fields to include in output. |
| `--no-open` | Don't open the result in a viewer. |
