Download File Content
Stream a file’s bytes at /v1/files//content
Overview
Streams the file asapplication/octet-stream, one JSON object per line. For a batch’s output_file_id every line is a BatchOutputLine; for its error_file_id every line is a BatchErrorLine. Lines are not in input order, so join them to your requests on custom_id.Authorizations
Morph API key, passed as Authorization: Bearer sk-.... Create keys at https://www.morphllm.com/dashboard/api-keys.
Path Parameters
Identifies the file to download.
The file_ prefixed id to download: your upload, or a batch's output_file_id / error_file_id.
"file_9c2c1c3e-5b6a-4f0e-8d0f-2a1b3c4d5e6f"
Response
The file body, one JSON object per line.
- Option 1
- Option 2
- Option 3
The shape of each JSONL line, depending on which file you downloaded.
Server-assigned id for this request, batch_req_ prefixed.
"batch_req_1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d"
The custom_id from your input line.
"req-0001"
What the model returned.
Always null in the output file. Client-side failures go to the error file instead.
null