# Function createBatchInput

- createBatchInput(requests: AzureOpenAiCreateChatCompletionRequest[]): Blob
  `Experimental`

  Creates a JSONL Blob for upload via FileApi from typed chat completion requests. Each request is assigned a sequential custom_id (request-1, request-2, ...).

  #### Parameters

  - requests: AzureOpenAiCreateChatCompletionRequest[]

    Chat completion requests to include in the batch.

  #### Returns Blob

  A Blob containing one JSON object per line. This API is experimental and may change at any time without prior notice.

  Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.

  - Defined in packages/foundation-models/dist/azure-openai/azure-openai-batch-input.d.ts:9