List Models
mixtrain model listList all models in the workspace.
Options:
| Option | Description |
|---|---|
--provider, -p | Filter 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 modelsCreate Model
mixtrain model create <files...>Create a model from files. Supports directories and glob patterns.
Options:
| Option | Description |
|---|---|
--name, -n | Model name (defaults to first .py filename) |
--description, -d | Model 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:
| Option | Description |
|---|---|
--input, -i | Input JSON or path to JSON file |
--detach, -d | Start 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.jsonView Model
mixtrain model get <name>View model details and recent runs.
mixtrain model get my-modelEdit Model
mixtrain model edit <name>View and modify model files and metadata.
Options:
| Option | Description |
|---|---|
--file, -f | Edit file in $EDITOR |
--view, -v | View file contents |
--delete, -d | Delete file/folder at this path |
--add, -a | Add local files to model |
--name, -n | Rename model |
--description, -D | Update description |
--yes, -y | Skip 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 descriptionView 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 #5List Runs
mixtrain model runs <name>List all runs for a model.
mixtrain model runs my-modelDelete Model
mixtrain model delete <name>Delete a model.
Options:
| Option | Description |
|---|---|
--yes, -y | Skip confirmation |
mixtrain model delete my-model
mixtrain model delete my-model --yes