modellix-cli is the official command-line tool for Modellix.
It helps you call the Modellix async model API from terminal and automate workflows in scripts or AI agents.
For full API behavior and response fields, see the official REST API docs.
What You Can Do
- List supported model types
- Create async model generation tasks
- Query task status and final generation result
Install
Authentication
You can provide API key in either way:- Recommended: environment variable
MODELLIX_API_KEY - Alternative:
--api-keyflag in each command
Supported Model Types
Use this command to get the current allowed values:text-to-imagetext-to-videoimage-to-imageimage-to-videovideo-to-video
Create a Task
Use inline JSON body
Use JSON file body
Query Task Result
Use the returnedtask_id:
Recommended Workflow
- Run
modellix-cli model typesto confirm model type. - Run
modellix-cli model invoke ...to create async task. - Save
task_idfrom response. - Run
modellix-cli task get <task_id>until status issuccessorfailed.
Error Handling Guide
The CLI surfaces API errors directly with actionable messages.400: fix parameters or request body format401: verify API key402: recharge account or check billing status404: verifytask_id,model-type, andmodel-id429: retry with exponential backoff500/503: retry up to 3 times with backoff