Azure AI icon

Azure AI

Call Azure AI Cognitive Services — Document Intelligence, Content Safety, Translator, and Language

Batch API → Download Result

AI-generated

Summary

Download the output file from a completed Azure OpenAI batch job by providing the output_file_id and optionally receive the raw JSONL data as parsed JSON objects or as binary.

Inputs

  • Authentication (required) — Choose between API Key or Microsoft Entra ID (OAuth2) for authentication.
  • Output File ID (required) — The output_file_id corresponding to the completed batch job's result file (obtained from the Poll Batch operation).
  • Output as Binary — Optionally return the raw JSONL file as binary data instead of parsing it into JSON.
  • Binary Property Name — When returning binary data, specify the binary property name to hold the JSONL file data (default is 'data').

Output shape

a list of items, each containing either JSON with the parsed batch results or binary data containing the raw JSONL file

If 'Output as Binary' is false, the response parses each non-empty line of the JSONL file into JSON objects and returns a JSON object with 'results' array, 'count' of results, and the fileId. If true, the raw file is returned as binary data under the specified binary property name, with metadata containing the fileId.

Links

Discussion