inferenceClient.batches.files.create()
Generated on 13 Nov 2026
from DoTs version
v1.24.0
Usage
inferenceClient.batches.files.create(params: Record<string, any>): Promise<any>inferenceClient.files.create(params: object): Promise<any>Description
Creates a file record and returns a file_id plus a short-lived presigned PUT URL (typically valid for ~15 minutes). Upload the raw JSONL bytes to upload_url (see PUT /{upload_path}) before calling POST /v1/batches.
Parameters
file_namestring requiredExample:
batch_requests.jsonlThe file you plan to upload. Must end with
.jsonl(case-insensitive) and contain one request per line in the schema expected by the targetprovider.
Request Sample
Response Example
More Information
See /v1/batches/files in the API reference for additional detail on responses, headers, parameters, and more.