Skip to main content

Response and headers

Markdown (default)

With response_format=markdown you receive the converted document as a raw body:

JSON

With response_format=json you receive an object with the Markdown and its metadata:
string
Document converted to Markdown.
string
Detected or forced format of the input.
string
integer
Size of the processed document in bytes.
object
Times in milliseconds: convert_ms, clean_ms, total_worker_ms, upload_ms, total_request_ms.
integer
Size of the output Markdown in bytes.
integer
Estimation of tokens saved versus entering the raw document into the prompt.

Headers

Every response includes observability headers, useful for logging and metrics in your client. See Cache and ETag.