Melange
API Reference

CLI Reference

Complete command reference for the ZETIC Melange CLI tool.

The ZETIC Melange CLI (zetic) provides command-line access to model deployment and management.

Installation

pip install zetic

Verify the installation:

zetic --help

Commands

zetic auth login

Authenticate with your ZETIC account. Opens a browser window for authentication. Credentials are stored locally.

zetic auth login

You only need to log in once. Your session will persist until you log out.


zetic gen

Upload and deploy a model to an existing repository.

zetic gen -p <REPOSITORY> -i <INPUT_FILE> [... -i <INPUT_FILE>] <MODEL_PATH>

Parameters

ParameterRequiredDescription
-p, --projectYesRepository identifier in username/repository_name format.
-i, --inputYesPath to input file (.npy format). Repeat for multiple inputs.
MODEL_PATHYesPath to the model file (.pt2, .onnx, or .pt).

Supported Model Formats

ExtensionFormatStatus
.pt2PyTorch Exported ProgramRecommended
.onnxONNXSupported
.ptTorchScriptDeprecated

Examples

Single input:

zetic gen -p steve/mobileclip-image -i input_image.npy mobileclip.onnx

Multiple inputs:

zetic gen \
  -p steve/llama-chat \
  -i input_ids.npy \
  -i attention_mask.npy \
  llama_model.pt2

Output

On success, the CLI prints the model key and a dashboard link:

Upload completed successfully!
Your model key is MODEL_KEY_HASH
Check your dashboard at: https://melange.zetic.ai/p/USER_NAME/MODEL_NAME/models/MODEL_KEY_HASH

Ensure your inputs are in the correct order. The order of -i flags must match the model's expected input order. See Supported Formats for details on verifying input order.


Prerequisites

  • Python 3.8+
  • A repository created on the Melange Dashboard
  • Active authentication session (zetic auth login)

See Also