from ai21 import AI21Clientclient = AI21Client(api_key="your-api-key") # Replace with your API keyrun_id = "your_run_id_here"# Retrieve the Maestro run by IDretrieved_run = client.beta.maestro.runs.retrieve(run_id)print(retrieved_run)
AI21 Maestro
Retrieve run status
Retrieves the status of the run execution based on its ID. The status can be completed, failed, or in_progress.
GET
https://api.ai21.com
/
studio
/
v1
/
maestro
/
runs
/
{run_id}
Copy
Ask AI
from ai21 import AI21Clientclient = AI21Client(api_key="your-api-key") # Replace with your API keyrun_id = "your_run_id_here"# Retrieve the Maestro run by IDretrieved_run = client.beta.maestro.runs.retrieve(run_id)print(retrieved_run)
from ai21 import AI21Clientclient = AI21Client(api_key="your-api-key") # Replace with your API keyrun_id = "your_run_id_here"# Retrieve the Maestro run by IDretrieved_run = client.beta.maestro.runs.retrieve(run_id)print(retrieved_run)