> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rivvr.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# rivvr model

> Create, watch, call, update, and delete models.

A model is a set of files from storage, running in a cluster and ready to answer prompts. These commands create models, show their status, send them prompts, and change or delete them. See [create models](https://docs.rivvr.ai/guides/create-models.md) and [manage models](https://docs.rivvr.ai/guides/manage-models.md).

| Command | What it does |
| - | - |
| [`list`](#rivvr-model-list) | List models in the current project. |
| [`get`](#rivvr-model-get) | Show a model's status, settings, and failure details. |
| [`create`](#rivvr-model-create) | Create a model from a storage entry. |
| [`wait`](#rivvr-model-wait) | Watch a model until it's `DEPLOY_READY`, or until it fails. |
| [`testing-runs`](#rivvr-model-testing-runs) | Show the tests Rivvr ran while deploying a model. |
| [`endpoint`](#rivvr-model-endpoint) | Show a model's inference URL and current status. |
| [`infer`](#rivvr-model-infer) | Send one prompt to a model using a saved inference key. |
| [`performance`](#rivvr-model-performance) | Show latency, throughput, errors, and cost from a model's real traffic. |
| [`update`](#rivvr-model-update) | Change a model's serving settings, such as its spending limit or SLO mode, or turn automatic optimization on or off. |
| [`delete`](#rivvr-model-delete) | Delete a model. |

## rivvr model list

List models in the current project. Add `--cluster` to see only one cluster.

```bash Usage theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model list [flags]
```

```bash Examples theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model list --wide
rivvr model list --cluster development
```

| Flag | Default | Description |
| - | - | - |
| `--wide` | | Show full IDs and more columns |

## rivvr model get

Show a model's status, settings, and failure details.

```bash Usage theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model get <name-or-id> [flags]
```

## rivvr model create

Create a model from a storage entry. Testing and deployment start right away.

```bash Usage theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model create <name> [flags]
```

```bash Examples theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model create hello --storage MODEL_ENTRY_ID --max-cost-per-hour 3 --wait
rivvr model create support --storage MODEL_ENTRY_ID --lora support=LORA_ENTRY_ID --max-cost-per-hour 3 --wait
```

| Flag | Default | Description |
| - | - | - |
| `--automatic-optimization` | `true` | Let Rivvr tune how the model runs. Add `=false` to turn it off |
| `--average-decode-tokens <n>` | `100` | How long you expect a typical answer to be, in tokens |
| `--average-prefill-tokens <n>` | `200` | How long you expect a typical prompt to be, in tokens |
| `--kv-cache-dtype <dtype>` | `AUTO` | Number format for the KV cache: `AUTO` or `FP8` |
| `--lora <name=entry>` | | Attach a LoRA adapter from storage under a name. Repeatable |
| `--max-cost-per-hour <usd>` | required | Maximum serving cost in USD per hour. At least 0.01, or 0 with scale to zero |
| `--max-model-length <n>` | `300` | Context length: the most tokens one request can use, prompt and answer together |
| `--max-qps <n>` | | Highest number of requests per second you expect |
| `--min-qps <n>` | | Lowest number of requests per second you expect |
| `--model-dtype <dtype>` | `AUTO` | Number format for the weights: `AUTO`, `FLOAT16`, `BFLOAT16`, `FLOAT`, or `FLOAT32` |
| `--quantization <method>` | `NONE` | How the weights are compressed (quantization): `NONE`, `AWQ`, `GPTQ`, `GGUF`, `INT4`, `INT8`, or `FP8` |
| `--scale-to-zero` | | Let the model use no GPUs while nobody sends it requests. The lowest allowed cost becomes 0 |
| `--slo-mode <mode>` | `BALANCED` | What to favor: lower cost (`ECONOMY`), speed (`SPEED`), or a mix (`BALANCED`) |
| `--storage <entry>` | required | Storage entry with the model weights |
| `--timeout <duration>` | `30m` | How long `--wait` waits |
| `--tps-p50 <n>` | | Target writing speed in tokens per second: half of requests should be at least this fast (p50) |
| `--tps-p90 <n>` | | Target writing speed in tokens per second: 90% of requests should be at least this fast (p90) |
| `--ttft-p50-ms <n>` | | Target wait for the first token in milliseconds: half of requests should wait no longer (p50) |
| `--ttft-p90-ms <n>` | | Target wait for the first token in milliseconds: 90% of requests should wait no longer (p90) |
| `--wait` | | Wait until the model is `DEPLOY_READY` |

## rivvr model wait

Watch a model until it's `DEPLOY_READY`, or until it fails. Doesn't create or restart anything.

```bash Usage theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model wait <name-or-id> [flags]
```

```bash Example theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model wait hello --timeout 30m
```

| Flag | Default | Description |
| - | - | - |
| `--timeout <duration>` | `30m` | How long to wait |

## rivvr model testing-runs

Show the tests Rivvr ran while deploying a model. Doesn't start a new one.

```bash Usage theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model testing-runs <name-or-id> [flags]
```

```bash Example theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model testing-runs hello --wide
```

| Flag | Default | Description |
| - | - | - |
| `--wide` | | Show full IDs and more columns |

## rivvr model endpoint

Show a model's inference URL and current status.

```bash Usage theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model endpoint <name-or-id> [flags]
```

## rivvr model infer

Send one prompt to a model using a saved inference key.

```bash Usage theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model infer <name-or-id> [flags]
```

```bash Examples theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model infer hello --key-id KEY_ID --prompt "Say hello in one sentence."
rivvr model infer hello --key-id KEY_ID --prompt-stdin < prompt.txt
```

| Flag | Default | Description |
| - | - | - |
| `--key-id <key-id>` | required | ID of a key saved with `inference-key store` |
| `--max-tokens <n>` | `64` | Maximum output tokens |
| `--prompt <text>` | | Prompt text. Ends up in your shell history |
| `--prompt-stdin` | | Read the prompt from stdin, up to 1 MiB, so it stays out of shell history |
| `--timeout <duration>` | `5m` | Request timeout, up to `30m`. Requests aren't retried |

## rivvr model performance

Show latency, throughput, errors, and cost from a model's real traffic.

```bash Usage theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model performance <REF> [flags]
```

```bash Examples theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model performance hello --since 24h --step 1h
rivvr model performance hello --from 2026-10-01T00:00:00Z --to 2026-10-02T00:00:00Z --json
```

| Flag | Default | Description | | |
| - | - | - | - | - |
| `--from <time>` | | Start time, RFC 3339. Can't be combined with `--since` | | |
| `--since <duration>` | | How far back to look, like `30m`, `24h`, or `168h`. Can't be combined with `--from` or `--to` | | |
| \`--step 1m | 1h | 1d\` | | Split the range into steps of this size. Rivvr picks one if you leave it out |
| `--to <time>` | | End time, RFC 3339 | | |

## rivvr model update

Change a model's serving settings, such as its spending limit or SLO mode, or turn automatic optimization on or off. Settings you don't mention stay the same.

```bash Usage theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model update <name-or-id> [flags]
```

```bash Examples theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model update hello --max-cost-per-hour 4
rivvr model update hello --clear min-qps --clear ttft-p50-ms
rivvr model update hello --automatic-optimization=false
```

| Flag | Default | Description |
| - | - | - |
| `--automatic-optimization` | | Turn automatic optimization on, or off with `=false`. Can't be combined with other changes |
| `--average-decode-tokens <n>` | | New value |
| `--average-prefill-tokens <n>` | | New value |
| `--clear <field>` | | Remove a target: `min-qps`, `max-qps`, `ttft-p50-ms`, `ttft-p90-ms`, `tps-p50`, or `tps-p90`. Repeatable |
| `--max-cost-per-hour <usd>` | | New maximum in USD per hour. At least 0.01, or 0 with scale to zero |
| `--max-qps <n>` | | New value |
| `--min-qps <n>` | | New value |
| `--scale-to-zero` | | Allow scaling to zero (minimum cost 0). `=false` sets the minimum back to 0.01 |
| `--slo-mode <mode>` | | What to favor: lower cost (`ECONOMY`), speed (`SPEED`), or a mix (`BALANCED`) |
| `--tps-p50 <n>` | | New value |
| `--tps-p90 <n>` | | New value |
| `--ttft-p50-ms <n>` | | New value |
| `--ttft-p90-ms <n>` | | New value |

## rivvr model delete

Delete a model. Its storage entries are kept.

```bash Usage theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model delete <name-or-id> [flags]
```

| Flag | Default | Description |
| - | - | - |
| `--yes` | | Confirm without a prompt |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.