Skip to main content

Set up

Install the CLI with Python 3.11 or later.
Then sign in to your workspace.
Match the code in your terminal with the code in your browser, then confirm the sign-in. If you’re working on a remote machine, use modaic login --headless to open the sign-in link on another device. For CI, set MODAIC_API_KEY to a workspace API key.

Run a prediction

Save the following request as request.json. It asks the base model whether a support ticket needs immediate attention.
Run the request and read the yes/no answer in answers.urgent.noul.
For commands to manage models, upload datasets, and monitor jobs, see the CLI reference.