v1

latestOpenAPI 3.1.0Apache 2.02026-07-264001921002.3 KB
OpenAI Integration

Create batch job (OpenAI format)

Creates a batch processing job.

Note: This endpoint also works without the /v1 prefix (e.g., /openai/batches).

post/openai/v1/batches

Request body

modelstring required

Model in provider/model format

input_file_idstring

OpenAI-style file ID

endpoint'/v1/chat/completions' | '/v1/embeddings' | '/v1/completions' | '/v1/responses' | '/v1/messages'
completion_windowstring

e.g., "24h"

metadataobject

Response

Successful response

idstring
objectstring
endpointstring
input_file_idstring
completion_windowstring
status'validating' | 'failed' | 'in_progress' | 'finalizing' | 'completed' | 'expired' | 'cancelling' | 'canceled' | 'ended'
metadataobject
created_atinteger
expires_atinteger
output_file_idstring
error_file_idstring
processing_statusstring
results_urlstring
operation_namestring