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

# Completions CLI

> CLI commands for chat and text completions

## Overview

Access chat completions directly from the command line.

## Commands

### Basic Completion

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai completions "What is 2 + 2?"
```

### With Model Selection

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai completions "Explain quantum computing" --model gpt-4o
```

### With System Prompt

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai completions "Write a haiku" --system "You are a poet"
```

### With Temperature

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai completions "Generate a creative story" --temperature 0.9
```

### With Max Tokens

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai completions "Summarize AI" --max-tokens 50
```

## Options

| Option | Short | Default | Description |
| - | - | - | - |
| `--model` | `-m` | gpt-4o-mini | Model to use |
| `--system` | `-s` | None | System prompt |
| `--temperature` | `-t` | 1.0 | Sampling temperature |
| `--max-tokens` | | None | Maximum tokens |

## Examples

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Simple question
praisonai completions "What is the capital of France?"

# Code generation
praisonai completions "Write a Python function to sort a list" -m gpt-4o

# Creative writing with high temperature
praisonai completions "Write a poem about the ocean" -t 0.9 -s "You are a creative poet"
```


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