Command Line Interface (CLI)
The CLI provides a command-line interface to interact with the API. It’s most useful for retrieving and managing job status and results. See theinstallation
guide to install the CLI.
Account Management
Authentication
To authenticate you’ll need an API key. We’re currently in beta, please contact us to get signed up on our web app, where you’ll create and manage your API keys. Once you have an API key, you can authenticate with the CLI using:Viewing quotas
To get your current quotas, use:Job Commands
Listing current and historical jobs
To list jobs associated with your API key, use:--all
flag:
Getting job status by job_id
To get the status of a job by its ID, use:Getting job results by job_id
To get the results of a job by its ID, use:- You can also include the inputs in the results by using the
--include-inputs
flag. - You can also include the cumulative logprobs by using the
--include-cumulative-logprobs
flag. - You can also save the results to a file by using the
--save
flag. - If using the
--save
flag, you can also specify the format of the output file by using the--format
flag. Options areparquet
andcsv
, default isparquet
.
--save
flag:
Cancelling a running job by job_id
To cancel a running priority 1 job by its ID, use:Attaching to a running job by job_id
To attach to a running job by its ID, use:--latest
flag: