Skip to main content
POST
Read any file into Markdown ready for a model (Word, PowerPoint, Excel, PDF, .doc/.ppt/.xls, TXT, Markdown)

Autorizaciones

Authorization
string
header
requerido

Authorization: Bearer ak_eu_…. The prefix is the project's region and must match the server (api.eu / api.us).

Cuerpo

file
requerido

A file uploaded with POST /files.

Pattern: ^file_
store
boolean
predeterminado:true

false: its content is deleted 15 minutes after it finishes.

Respuesta

The text, as Markdown.

object
string
requerido
Allowed value: "extraction"
document_id
string
requerido
Pattern: ^doc_[0-9A-HJKMNP-TV-Z]{26}$
format
enum<string>
requerido
Opciones disponibles:
docx,
pptx,
xlsx,
pdf,
doc,
ppt,
xls,
txt,
md,
png,
jpg,
gif,
webp
markdown
string
requerido

Headings, lists and tables kept; one section per slide or sheet; page markers in a PDF. Scanned pages and pictures are read with OCR.

chars
integer
requerido

Length of the whole text, before any cut.

Rango requerido: -9007199254740991 <= x <= 9007199254740991
truncated
boolean
requerido

true when longer than 2 000 000 characters.

pages
integer | null
requerido

Pages (PDF), slides (PowerPoint) or sheets (Excel).

Rango requerido: -9007199254740991 <= x <= 9007199254740991