Constructor
Signature
Methods
available_models()
Signature
run and help.
close()
Signature
get_info()
Signature
- version (str): Grid-Cortex version (e.g., “v0.2.49”)
- models (list): List of deployed models with:
- name (str): Model identifier
- status (str): Deployment status (“RUNNING”, etc.)
- route (str): HTTP route prefix
- replicas (int): Number of running replicas
help()
Signature
run.
Returns:
A formatted string containing:
- Class-level docstring with usage examples and parameter descriptions
- Preprocess method documentation (input parameters and validation)
- Postprocess method documentation (output format and data types)
run()
Signature
The identifier of the model to run (use
available_models to see all available options). Examples: “zoedepth”, “owlv2”, “gsam2”.If True, enables detailed logging for this specific call to help troubleshoot issues.
Model-specific input parameters. Each model’s page in the Cortex Models docs section and
help document its exact inputs.help.
Raises:
NotImplementedError: If model_id is not found in available models.
CortexAPIError: If the API returns an error response.
CortexNetworkError: If network communication fails.
ValueError: If input validation or processing fails.
run_with_detections()
Signature
run, but returns per-instance detections (currently SAM3 text/box prompts).