Create a batch

Create a batch from an uploaded input file. Requests are processed asynchronously within the completion window and billed at 35% off each model’s list price. Only batch-eligible models may be used (check batch_supported on /v1/models).

Authentication

AuthorizationBearer

Pass your EmpirioLabs API key as a bearer token. The Anthropic-style x-api-key header is also accepted on every endpoint.

Request

This endpoint expects an object.
input_file_idstringRequired
endpointenumOptionalDefaults to /v1/chat/completions
Allowed values:
completion_windowstringOptionalDefaults to 24h
metadataobjectOptional

Response

Batch created.
idstringOptional
objectstringOptional
endpointstringOptional
input_file_idstringOptional
completion_windowstringOptional
statusenumOptional
output_file_idstring or nullOptional
error_file_idstring or nullOptional
request_countsobjectOptional
metadataobject or nullOptional
created_atinteger or nullOptional
completed_atinteger or nullOptional
expires_atinteger or nullOptional