Batches

Retrieve batch

get/v1/batches/{batch_id}

Request

  • Base URL: https://api.tokenlab.sh
  • URL: https://api.tokenlab.sh/v1/batches/{batch_id}
  • Auth: HTTP bearer

Path parameters

batch_idstring required

Response

Batch object

idstring required
object'batch' required
endpoint'/v1/chat/completions' | '/v1/embeddings' required
errorsobject nullable
input_file_idstring required
completion_window'24h' required
status'validating' | 'queued' | 'in_progress' | 'finalizing' | 'completed' | 'failed' | 'cancelling' | 'cancelled' | 'expired' required
output_file_idstring nullable
error_file_idstring nullable
created_atinteger required
in_progress_atinteger nullable
expires_atinteger nullable
finalizing_atinteger nullable
completed_atinteger nullable
failed_atinteger nullable
expired_atinteger nullable
cancelling_atinteger nullable
cancelled_atinteger nullable
metadataobject nullable

Example response

{
  "id": "batch_abc123"
}

Changes

No recorded changes to this operation across all 1 revision of this API.