MixtrainDocs

List Models

mixtrain model list

List all models in the workspace.

Options:

OptionDescription
--provider, -pFilter by provider: openai, anthropic, workspace, etc.
mixtrain model list                    # Workspace models
mixtrain model list --provider openai  # OpenAI models
mixtrain model list -p workspace       # All workspace models

Create Model

mixtrain model create <files...>

Create a model from files. Supports directories and glob patterns.

Options:

OptionDescription
--name, -nModel name (defaults to first .py filename)
--description, -dModel description
# Single directory (most common)
mixtrain model create ./model-dir/ --name my-model

# Multiple files
mixtrain model create model.py utils.py --name my-model

# Glob patterns
mixtrain model create "*.py" Dockerfile --name my-model

# With description
mixtrain model create model.py -n my-model -d "Image classifier"

Run Model

mixtrain model run <name>

Run a model. Streams logs in real-time for native models; external models (fal, openai, etc.) return immediately.

Options:

OptionDescription
--input, -iInput JSON or path to JSON file
--detach, -dStart run and exit without streaming logs
mixtrain model run my-model --input '{"prompt": "A sunset"}'
mixtrain model run my-model -i '{"prompt": "Hello"}' --detach
mixtrain model run my-model -i input.json

View Model

mixtrain model get <name>

View model details and recent runs.

mixtrain model get my-model

Edit Model

mixtrain model edit <name>

View and modify model files and metadata.

Options:

OptionDescription
--file, -fEdit file in $EDITOR
--view, -vView file contents
--delete, -dDelete file/folder at this path
--add, -aAdd local files to model
--name, -nRename model
--description, -DUpdate description
--yes, -ySkip confirmation prompts
mixtrain model edit my-model              # List all files
mixtrain model edit my-model -v model.py  # View file contents
mixtrain model edit my-model -f model.py  # Edit file in $EDITOR
mixtrain model edit my-model --add ./src/ # Add files
mixtrain model edit my-model -d old.py    # Delete file
mixtrain model edit my-model -n new-name  # Rename model
mixtrain model edit my-model -D "Updated" # Update description

View Logs

mixtrain model logs <name> [run_number]

View logs for a model run.

mixtrain model logs my-model       # Latest run
mixtrain model logs my-model 5     # Run #5

List Runs

mixtrain model runs <name>

List all runs for a model.

mixtrain model runs my-model

Delete Model

mixtrain model delete <name>

Delete a model.

Options:

OptionDescription
--yes, -ySkip confirmation
mixtrain model delete my-model
mixtrain model delete my-model --yes

On this page