Create batch
/v1/batchesCreate an asynchronous batch job from a previously uploaded JSONL input file (purpose=batch). Token360 validates the file, ensures a single body.model across all lines, resolves the execution path (auto / provider / platform), and queues work.
MVP supports only endpoint=/v1/chat/completions and completion_window=24h.
See Batch Jobs for JSONL format, dual execution, and constraints.
Authentication
Authorization Bearer
Request Body
input_file_idstringrequiredFile ID from POST /v1/files with purpose=batch.
endpointstringMust be /v1/chat/completions (default if omitted).
completion_windowstringMust be 24h (default if omitted).
executionstringauto (default) | provider | platform. auto prefers upstream Batch Infer when available, otherwise platform fan-out.
callback_urlstringOptional HTTPS URL. POST when the batch reaches completed/failed/cancelled/expired. Overrides the console account webhook. See Webhook docs. Private/loopback URLs are rejected.
metadataobjectOptional key/value metadata stored on the batch object.
Response
idstringBatch ID (batch_ prefix).
objectstringbatch
endpointstring/v1/chat/completions
statusstringvalidating, then in_progress, etc.
execution_preferencestringRequested path: auto | provider | platform.
executionstringResolved path: provider | platform.
fallback_from_providerbooleanTrue when auto fell back from provider to platform.
input_file_idstringInput file ID.
client_modelstringPublic model name from the JSONL.
output_file_idstringSet when completed.
error_file_idstringSet when partial failures or errors are written.
completion_windowstring24h
request_countsobjecttotal, completed, failed counts when available.
request_counts.totalintegerTotal number of requests in the batch.
request_counts.completedintegerNumber of completed requests.
request_counts.failedintegerNumber of failed requests.
created_atintegerUnix timestamp.
expires_atintegerEstimated Unix timestamp (created + 24h). Display only on platform execution; jobs are not force-stopped at this time.
metadataobjectEcho of request metadata.
Common errors
batch_multiple_models | More than one distinct body.model in the input file. |
batch_invalid_jsonl | Malformed line or invalid fields. |
batch_model_not_supported | Model cannot run as a batch on this account (no eligible route). |
batch_routing_unavailable | No active SKU for the model. |
missing_execution_api_key | Create with a session that cannot seal an inference API key Bearer (use an API key Authorization header). |