Skip to main content

Step 1: Install Required Libraries

Step 2: Set Up API Configuration

Step 3: Create and Configure Your Optimizer

First, create your function, dataset, and optimizer configuration as shown in the previous tutorials. Here’s a quick example:

Step 4: Prepare Your Batch Input File

Create a JSON file containing an array of inputs you want to process. Each input should include an object_id for tracking results:

Step 5: Submit the Batch Run

Submit your batch run request with the input file:

Step 6: Monitor Batch Run Status

Check the status of your batch run:

Step 7: Retrieve Batch Results

Once the batch run is complete, retrieve the results:

Step 8: Get Results for Specific Inputs

You can also retrieve results for specific inputs using their object IDs:
The batch run feature allows you to process multiple inputs efficiently in a single request. This is particularly useful when you need to analyze large datasets in parallel. The results are stored and can be retrieved either all at once or individually using object IDs.