Create a batch
Creates and executes a batch from an uploaded dataset of requests
Headers
The name of the project that is making the request.
Request body
read-only. Batch ID.
Batch name (e.g. foobar).
read-only. User ID of the creator.
read-only. Organization ID.
The possible stages of a batch life-cycle.
- BATCH_STATUS_UNSPECIFIED: Unspecified status.
- BATCH_STATUS_QUEUED: The batch has been queued.
- BATCH_STATUS_IN_PROGRESS: The batch is in-progress.
- BATCH_STATUS_CANCELING: The batch is being canceled.
- BATCH_STATUS_COMPLETED: The batch has been completed.
- BATCH_STATUS_FAILED: The batch has failed.
- BATCH_STATUS_CANCELED: The batch has been canceled.
read-only. Creation timestamp.
read-only. Latest update timestamp.
ID of the dataset the batch reads inputs from.
read-only. The total number of input tokens in the batch.
read-only. The total number of output tokens in the batch.
The name of the model the batch uses.
read-only. The total number of records in the batch.
read-only. The current number of successful records in the batch.
read-only. The current number of failed records in the batch.
read-only. More details about the reason for the status of a batch job.
Response
A successful response.