inferenceClient.batches.retrieve()
Generated on 13 Nov 2026
from DoTs version
v1.24.0
Usage
inferenceClient.batches.retrieve(batchId: string, query?: Record<string, any>): Promise<any>Description
Returns the current state of a batch job. Poll until status reaches a terminal value (completed, failed, expired, or cancelled).
Parameters
batch_idstring requiredExample:
0e9d1d35-3d1e-4d66-9a2f-8c7e0f6b3e21The batch job identifier.
Request Sample
Response Example
More Information
See /v1/batches/{batch_id} in the API reference for additional detail on responses, headers, parameters, and more.