Skip to content
Framework Docs

Parsing

Parse File
client.Parsing.New(ctx, params) (*ParsingNewResponse, error)
POST/api/v2/parse
Get Parse Job
client.Parsing.Get(ctx, jobID, query) (*ParsingGetResponse, error)
GET/api/v2/parse/{job_id}
List Parse Jobs
client.Parsing.List(ctx, query) (*PaginatedCursor[ParsingListResponse], error)
GET/api/v2/parse
ModelsExpand Collapse
type BBox struct{…}

Bounding box with coordinates and optional metadata.

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

type CodeItem struct{…}
Md string

Markdown representation preserving formatting

Value string

Code content

Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Language stringoptional

Programming language identifier

Type CodeItemTypeoptional

Code block item type

type FailPageMode string

Enum for representing the different available page error handling modes.

One of the following:
const FailPageModeRawText FailPageMode = "raw_text"
const FailPageModeBlankPage FailPageMode = "blank_page"
const FailPageModeErrorMessage FailPageMode = "error_message"

List of items within the footer

One of the following:
type TextItem struct{…}
Md string

Markdown representation preserving formatting

Value string

Text content

Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Type TextItemTypeoptional

Text item type

type HeadingItem struct{…}
Level int64

Heading level (1-6)

Md string

Markdown representation preserving formatting

Value string

Heading text content

Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Type HeadingItemTypeoptional

Heading item type

type ListItem struct{…}
Items []ListItemItemUnion

List of nested text or list items

One of the following:
type TextItem struct{…}
Md string

Markdown representation preserving formatting

Value string

Text content

Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Type TextItemTypeoptional

Text item type

type ListItem ListItem
Md string

Markdown representation preserving formatting

Ordered bool

Whether the list is ordered or unordered

Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Type ListItemTypeoptional

List item type

type CodeItem struct{…}
Md string

Markdown representation preserving formatting

Value string

Code content

Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Language stringoptional

Programming language identifier

Type CodeItemTypeoptional

Code block item type

type TableItem struct{…}
Csv string

CSV representation of the table

HTML string

HTML representation of the table

Md string

Markdown representation preserving formatting

Rows [][]TableItemRowUnion

Table data as array of arrays (string, number, or null)

One of the following:
string
float64
Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

MergedFromPages []int64optional

List of page numbers with tables that were merged into this table (e.g., [1, 2, 3, 4])

MergedIntoPage int64optional

Populated when merged into another table. Page number where the full merged table begins (used on empty tables).

ParseConcerns []TableItemParseConcernoptional

Quality concerns detected during table extraction, indicating the table may have issues

Details string

Human-readable details about the concern

Type string

Type of parse concern (e.g. header_value_type_mismatch, inconsistent_row_cell_count)

Type TableItemTypeoptional

Table item type

type ImageItem struct{…}
Caption string

Image caption

Md string

Markdown representation preserving formatting

URL string

URL to the image

Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Type ImageItemTypeoptional

Image item type

Markdown representation preserving formatting

Display text of the link

URL of the link

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Link item type

Markdown representation preserving formatting

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Page footer container

type HeaderItem struct{…}
Items []HeaderItemItemUnion

List of items within the header

One of the following:
type TextItem struct{…}
Md string

Markdown representation preserving formatting

Value string

Text content

Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Type TextItemTypeoptional

Text item type

type HeadingItem struct{…}
Level int64

Heading level (1-6)

Md string

Markdown representation preserving formatting

Value string

Heading text content

Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Type HeadingItemTypeoptional

Heading item type

type ListItem struct{…}
Items []ListItemItemUnion

List of nested text or list items

One of the following:
type TextItem struct{…}
Md string

Markdown representation preserving formatting

Value string

Text content

Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Type TextItemTypeoptional

Text item type

type ListItem ListItem
Md string

Markdown representation preserving formatting

Ordered bool

Whether the list is ordered or unordered

Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Type ListItemTypeoptional

List item type

type CodeItem struct{…}
Md string

Markdown representation preserving formatting

Value string

Code content

Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Language stringoptional

Programming language identifier

Type CodeItemTypeoptional

Code block item type

type TableItem struct{…}
Csv string

CSV representation of the table

HTML string

HTML representation of the table

Md string

Markdown representation preserving formatting

Rows [][]TableItemRowUnion

Table data as array of arrays (string, number, or null)

One of the following:
string
float64
Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

MergedFromPages []int64optional

List of page numbers with tables that were merged into this table (e.g., [1, 2, 3, 4])

MergedIntoPage int64optional

Populated when merged into another table. Page number where the full merged table begins (used on empty tables).

ParseConcerns []TableItemParseConcernoptional

Quality concerns detected during table extraction, indicating the table may have issues

Details string

Human-readable details about the concern

Type string

Type of parse concern (e.g. header_value_type_mismatch, inconsistent_row_cell_count)

Type TableItemTypeoptional

Table item type

type ImageItem struct{…}
Caption string

Image caption

Md string

Markdown representation preserving formatting

URL string

URL to the image

Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Type ImageItemTypeoptional

Image item type

Markdown representation preserving formatting

Display text of the link

URL of the link

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Link item type

Md string

Markdown representation preserving formatting

Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Type HeaderItemTypeoptional

Page header container

type HeadingItem struct{…}
Level int64

Heading level (1-6)

Md string

Markdown representation preserving formatting

Value string

Heading text content

Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Type HeadingItemTypeoptional

Heading item type

type ImageItem struct{…}
Caption string

Image caption

Md string

Markdown representation preserving formatting

URL string

URL to the image

Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Type ImageItemTypeoptional

Image item type

Markdown representation preserving formatting

Display text of the link

URL of the link

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Link item type

type ListItem struct{…}
Items []ListItemItemUnion

List of nested text or list items

One of the following:
type TextItem struct{…}
Md string

Markdown representation preserving formatting

Value string

Text content

Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Type TextItemTypeoptional

Text item type

type ListItem ListItem
Md string

Markdown representation preserving formatting

Ordered bool

Whether the list is ordered or unordered

Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Type ListItemTypeoptional

List item type

type LlamaParseSupportedFileExtensions string

Enum for supported file extensions.

One of the following:
const LlamaParseSupportedFileExtensionsPdf LlamaParseSupportedFileExtensions = ".pdf"
const LlamaParseSupportedFileExtensionsAbw LlamaParseSupportedFileExtensions = ".abw"
const LlamaParseSupportedFileExtensionsAwt LlamaParseSupportedFileExtensions = ".awt"
const LlamaParseSupportedFileExtensionsCgm LlamaParseSupportedFileExtensions = ".cgm"
const LlamaParseSupportedFileExtensionsCwk LlamaParseSupportedFileExtensions = ".cwk"
const LlamaParseSupportedFileExtensionsDoc LlamaParseSupportedFileExtensions = ".doc"
const LlamaParseSupportedFileExtensionsDocm LlamaParseSupportedFileExtensions = ".docm"
const LlamaParseSupportedFileExtensionsDocx LlamaParseSupportedFileExtensions = ".docx"
const LlamaParseSupportedFileExtensionsDot LlamaParseSupportedFileExtensions = ".dot"
const LlamaParseSupportedFileExtensionsDotm LlamaParseSupportedFileExtensions = ".dotm"
const LlamaParseSupportedFileExtensionsDotx LlamaParseSupportedFileExtensions = ".dotx"
const LlamaParseSupportedFileExtensionsFodg LlamaParseSupportedFileExtensions = ".fodg"
const LlamaParseSupportedFileExtensionsFodp LlamaParseSupportedFileExtensions = ".fodp"
const LlamaParseSupportedFileExtensionsFopd LlamaParseSupportedFileExtensions = ".fopd"
const LlamaParseSupportedFileExtensionsFodt LlamaParseSupportedFileExtensions = ".fodt"
const LlamaParseSupportedFileExtensionsFb2 LlamaParseSupportedFileExtensions = ".fb2"
const LlamaParseSupportedFileExtensionsHwp LlamaParseSupportedFileExtensions = ".hwp"
const LlamaParseSupportedFileExtensionsLwp LlamaParseSupportedFileExtensions = ".lwp"
const LlamaParseSupportedFileExtensionsMcw LlamaParseSupportedFileExtensions = ".mcw"
const LlamaParseSupportedFileExtensionsMw LlamaParseSupportedFileExtensions = ".mw"
const LlamaParseSupportedFileExtensionsMwd LlamaParseSupportedFileExtensions = ".mwd"
const LlamaParseSupportedFileExtensionsOdf LlamaParseSupportedFileExtensions = ".odf"
const LlamaParseSupportedFileExtensionsOdt LlamaParseSupportedFileExtensions = ".odt"
const LlamaParseSupportedFileExtensionsOtg LlamaParseSupportedFileExtensions = ".otg"
const LlamaParseSupportedFileExtensionsOtt LlamaParseSupportedFileExtensions = ".ott"
const LlamaParseSupportedFileExtensionsPages LlamaParseSupportedFileExtensions = ".pages"
const LlamaParseSupportedFileExtensionsPbd LlamaParseSupportedFileExtensions = ".pbd"
const LlamaParseSupportedFileExtensionsPsw LlamaParseSupportedFileExtensions = ".psw"
const LlamaParseSupportedFileExtensionsRtf LlamaParseSupportedFileExtensions = ".rtf"
const LlamaParseSupportedFileExtensionsSda LlamaParseSupportedFileExtensions = ".sda"
const LlamaParseSupportedFileExtensionsSdd LlamaParseSupportedFileExtensions = ".sdd"
const LlamaParseSupportedFileExtensionsSdp LlamaParseSupportedFileExtensions = ".sdp"
const LlamaParseSupportedFileExtensionsSdw LlamaParseSupportedFileExtensions = ".sdw"
const LlamaParseSupportedFileExtensionsSgl LlamaParseSupportedFileExtensions = ".sgl"
const LlamaParseSupportedFileExtensionsStd LlamaParseSupportedFileExtensions = ".std"
const LlamaParseSupportedFileExtensionsStw LlamaParseSupportedFileExtensions = ".stw"
const LlamaParseSupportedFileExtensionsSxd LlamaParseSupportedFileExtensions = ".sxd"
const LlamaParseSupportedFileExtensionsSxg LlamaParseSupportedFileExtensions = ".sxg"
const LlamaParseSupportedFileExtensionsSxm LlamaParseSupportedFileExtensions = ".sxm"
const LlamaParseSupportedFileExtensionsSxw LlamaParseSupportedFileExtensions = ".sxw"
const LlamaParseSupportedFileExtensionsUof LlamaParseSupportedFileExtensions = ".uof"
const LlamaParseSupportedFileExtensionsUop LlamaParseSupportedFileExtensions = ".uop"
const LlamaParseSupportedFileExtensionsUot LlamaParseSupportedFileExtensions = ".uot"
const LlamaParseSupportedFileExtensionsVor LlamaParseSupportedFileExtensions = ".vor"
const LlamaParseSupportedFileExtensionsWpd LlamaParseSupportedFileExtensions = ".wpd"
const LlamaParseSupportedFileExtensionsWps LlamaParseSupportedFileExtensions = ".wps"
const LlamaParseSupportedFileExtensionsWpt LlamaParseSupportedFileExtensions = ".wpt"
const LlamaParseSupportedFileExtensionsWri LlamaParseSupportedFileExtensions = ".wri"
const LlamaParseSupportedFileExtensionsWn LlamaParseSupportedFileExtensions = ".wn"
const LlamaParseSupportedFileExtensionsXml LlamaParseSupportedFileExtensions = ".xml"
const LlamaParseSupportedFileExtensionsZabw LlamaParseSupportedFileExtensions = ".zabw"
const LlamaParseSupportedFileExtensionsKey LlamaParseSupportedFileExtensions = ".key"
const LlamaParseSupportedFileExtensionsOdp LlamaParseSupportedFileExtensions = ".odp"
const LlamaParseSupportedFileExtensionsOdg LlamaParseSupportedFileExtensions = ".odg"
const LlamaParseSupportedFileExtensionsOtp LlamaParseSupportedFileExtensions = ".otp"
const LlamaParseSupportedFileExtensionsPot LlamaParseSupportedFileExtensions = ".pot"
const LlamaParseSupportedFileExtensionsPotm LlamaParseSupportedFileExtensions = ".potm"
const LlamaParseSupportedFileExtensionsPotx LlamaParseSupportedFileExtensions = ".potx"
const LlamaParseSupportedFileExtensionsPpt LlamaParseSupportedFileExtensions = ".ppt"
const LlamaParseSupportedFileExtensionsPptm LlamaParseSupportedFileExtensions = ".pptm"
const LlamaParseSupportedFileExtensionsPptx LlamaParseSupportedFileExtensions = ".pptx"
const LlamaParseSupportedFileExtensionsSti LlamaParseSupportedFileExtensions = ".sti"
const LlamaParseSupportedFileExtensionsSxi LlamaParseSupportedFileExtensions = ".sxi"
const LlamaParseSupportedFileExtensionsVsd LlamaParseSupportedFileExtensions = ".vsd"
const LlamaParseSupportedFileExtensionsVsdm LlamaParseSupportedFileExtensions = ".vsdm"
const LlamaParseSupportedFileExtensionsVsdx LlamaParseSupportedFileExtensions = ".vsdx"
const LlamaParseSupportedFileExtensionsVdx LlamaParseSupportedFileExtensions = ".vdx"
const LlamaParseSupportedFileExtensionsBmp LlamaParseSupportedFileExtensions = ".bmp"
const LlamaParseSupportedFileExtensionsGif LlamaParseSupportedFileExtensions = ".gif"
const LlamaParseSupportedFileExtensionsHeic LlamaParseSupportedFileExtensions = ".heic"
const LlamaParseSupportedFileExtensionsHeif LlamaParseSupportedFileExtensions = ".heif"
const LlamaParseSupportedFileExtensionsJpg LlamaParseSupportedFileExtensions = ".jpg"
const LlamaParseSupportedFileExtensionsJpeg LlamaParseSupportedFileExtensions = ".jpeg"
const LlamaParseSupportedFileExtensionsPng LlamaParseSupportedFileExtensions = ".png"
const LlamaParseSupportedFileExtensionsSvg LlamaParseSupportedFileExtensions = ".svg"
const LlamaParseSupportedFileExtensionsTif LlamaParseSupportedFileExtensions = ".tif"
const LlamaParseSupportedFileExtensionsTiff LlamaParseSupportedFileExtensions = ".tiff"
const LlamaParseSupportedFileExtensionsWebp LlamaParseSupportedFileExtensions = ".webp"
const LlamaParseSupportedFileExtensionsHtm LlamaParseSupportedFileExtensions = ".htm"
const LlamaParseSupportedFileExtensionsHTML LlamaParseSupportedFileExtensions = ".html"
const LlamaParseSupportedFileExtensionsXhtm LlamaParseSupportedFileExtensions = ".xhtm"
const LlamaParseSupportedFileExtensionsCsv LlamaParseSupportedFileExtensions = ".csv"
const LlamaParseSupportedFileExtensionsDbf LlamaParseSupportedFileExtensions = ".dbf"
const LlamaParseSupportedFileExtensionsDif LlamaParseSupportedFileExtensions = ".dif"
const LlamaParseSupportedFileExtensionsEt LlamaParseSupportedFileExtensions = ".et"
const LlamaParseSupportedFileExtensionsEth LlamaParseSupportedFileExtensions = ".eth"
const LlamaParseSupportedFileExtensionsFods LlamaParseSupportedFileExtensions = ".fods"
const LlamaParseSupportedFileExtensionsNumbers LlamaParseSupportedFileExtensions = ".numbers"
const LlamaParseSupportedFileExtensionsOds LlamaParseSupportedFileExtensions = ".ods"
const LlamaParseSupportedFileExtensionsOts LlamaParseSupportedFileExtensions = ".ots"
const LlamaParseSupportedFileExtensionsPrn LlamaParseSupportedFileExtensions = ".prn"
const LlamaParseSupportedFileExtensionsQpw LlamaParseSupportedFileExtensions = ".qpw"
const LlamaParseSupportedFileExtensionsSlk LlamaParseSupportedFileExtensions = ".slk"
const LlamaParseSupportedFileExtensionsStc LlamaParseSupportedFileExtensions = ".stc"
const LlamaParseSupportedFileExtensionsSxc LlamaParseSupportedFileExtensions = ".sxc"
const LlamaParseSupportedFileExtensionsSylk LlamaParseSupportedFileExtensions = ".sylk"
const LlamaParseSupportedFileExtensionsTsv LlamaParseSupportedFileExtensions = ".tsv"
const LlamaParseSupportedFileExtensionsUos1 LlamaParseSupportedFileExtensions = ".uos1"
const LlamaParseSupportedFileExtensionsUos2 LlamaParseSupportedFileExtensions = ".uos2"
const LlamaParseSupportedFileExtensionsUos LlamaParseSupportedFileExtensions = ".uos"
const LlamaParseSupportedFileExtensionsWb1 LlamaParseSupportedFileExtensions = ".wb1"
const LlamaParseSupportedFileExtensionsWb2 LlamaParseSupportedFileExtensions = ".wb2"
const LlamaParseSupportedFileExtensionsWb3 LlamaParseSupportedFileExtensions = ".wb3"
const LlamaParseSupportedFileExtensionsWk1 LlamaParseSupportedFileExtensions = ".wk1"
const LlamaParseSupportedFileExtensionsWk2 LlamaParseSupportedFileExtensions = ".wk2"
const LlamaParseSupportedFileExtensionsWk3 LlamaParseSupportedFileExtensions = ".wk3"
const LlamaParseSupportedFileExtensionsWk4 LlamaParseSupportedFileExtensions = ".wk4"
const LlamaParseSupportedFileExtensionsWks LlamaParseSupportedFileExtensions = ".wks"
const LlamaParseSupportedFileExtensionsWq1 LlamaParseSupportedFileExtensions = ".wq1"
const LlamaParseSupportedFileExtensionsWq2 LlamaParseSupportedFileExtensions = ".wq2"
const LlamaParseSupportedFileExtensionsXlr LlamaParseSupportedFileExtensions = ".xlr"
const LlamaParseSupportedFileExtensionsXls LlamaParseSupportedFileExtensions = ".xls"
const LlamaParseSupportedFileExtensionsXlsb LlamaParseSupportedFileExtensions = ".xlsb"
const LlamaParseSupportedFileExtensionsXlsm LlamaParseSupportedFileExtensions = ".xlsm"
const LlamaParseSupportedFileExtensionsXlsx LlamaParseSupportedFileExtensions = ".xlsx"
const LlamaParseSupportedFileExtensionsXlw LlamaParseSupportedFileExtensions = ".xlw"
const LlamaParseSupportedFileExtensionsAzw LlamaParseSupportedFileExtensions = ".azw"
const LlamaParseSupportedFileExtensionsAzw3 LlamaParseSupportedFileExtensions = ".azw3"
const LlamaParseSupportedFileExtensionsAzw4 LlamaParseSupportedFileExtensions = ".azw4"
const LlamaParseSupportedFileExtensionsCb7 LlamaParseSupportedFileExtensions = ".cb7"
const LlamaParseSupportedFileExtensionsCbc LlamaParseSupportedFileExtensions = ".cbc"
const LlamaParseSupportedFileExtensionsCbr LlamaParseSupportedFileExtensions = ".cbr"
const LlamaParseSupportedFileExtensionsCbz LlamaParseSupportedFileExtensions = ".cbz"
const LlamaParseSupportedFileExtensionsChm LlamaParseSupportedFileExtensions = ".chm"
const LlamaParseSupportedFileExtensionsDjvu LlamaParseSupportedFileExtensions = ".djvu"
const LlamaParseSupportedFileExtensionsEpub LlamaParseSupportedFileExtensions = ".epub"
const LlamaParseSupportedFileExtensionsFbz LlamaParseSupportedFileExtensions = ".fbz"
const LlamaParseSupportedFileExtensionsHtmlz LlamaParseSupportedFileExtensions = ".htmlz"
const LlamaParseSupportedFileExtensionsLit LlamaParseSupportedFileExtensions = ".lit"
const LlamaParseSupportedFileExtensionsLrf LlamaParseSupportedFileExtensions = ".lrf"
const LlamaParseSupportedFileExtensionsMd LlamaParseSupportedFileExtensions = ".md"
const LlamaParseSupportedFileExtensionsMobi LlamaParseSupportedFileExtensions = ".mobi"
const LlamaParseSupportedFileExtensionsPdb LlamaParseSupportedFileExtensions = ".pdb"
const LlamaParseSupportedFileExtensionsPml LlamaParseSupportedFileExtensions = ".pml"
const LlamaParseSupportedFileExtensionsPrc LlamaParseSupportedFileExtensions = ".prc"
const LlamaParseSupportedFileExtensionsRb LlamaParseSupportedFileExtensions = ".rb"
const LlamaParseSupportedFileExtensionsSnb LlamaParseSupportedFileExtensions = ".snb"
const LlamaParseSupportedFileExtensionsTcr LlamaParseSupportedFileExtensions = ".tcr"
const LlamaParseSupportedFileExtensionsTxtz LlamaParseSupportedFileExtensions = ".txtz"
const LlamaParseSupportedFileExtensionsM4a LlamaParseSupportedFileExtensions = ".m4a"
const LlamaParseSupportedFileExtensionsMP3 LlamaParseSupportedFileExtensions = ".mp3"
const LlamaParseSupportedFileExtensionsMP4 LlamaParseSupportedFileExtensions = ".mp4"
const LlamaParseSupportedFileExtensionsMpeg LlamaParseSupportedFileExtensions = ".mpeg"
const LlamaParseSupportedFileExtensionsMpga LlamaParseSupportedFileExtensions = ".mpga"
const LlamaParseSupportedFileExtensionsWav LlamaParseSupportedFileExtensions = ".wav"
const LlamaParseSupportedFileExtensionsWebm LlamaParseSupportedFileExtensions = ".webm"
type ParsingJob struct{…}

A parse job (v1).

ID string

Unique parse job identifier

Status StatusEnum

Current job status

One of the following:
const StatusEnumPending StatusEnum = "PENDING"
const StatusEnumSuccess StatusEnum = "SUCCESS"
const StatusEnumError StatusEnum = "ERROR"
const StatusEnumPartialSuccess StatusEnum = "PARTIAL_SUCCESS"
const StatusEnumCancelled StatusEnum = "CANCELLED"
ErrorCode stringoptional

Machine-readable error code when failed

ErrorMessage stringoptional

Human-readable error details when failed

type ParsingLanguages string

Enum for representing the languages supported by the parser.

One of the following:
const ParsingLanguagesAf ParsingLanguages = "af"
const ParsingLanguagesAz ParsingLanguages = "az"
const ParsingLanguagesBs ParsingLanguages = "bs"
const ParsingLanguagesCs ParsingLanguages = "cs"
const ParsingLanguagesCy ParsingLanguages = "cy"
const ParsingLanguagesDa ParsingLanguages = "da"
const ParsingLanguagesDe ParsingLanguages = "de"
const ParsingLanguagesEn ParsingLanguages = "en"
const ParsingLanguagesEs ParsingLanguages = "es"
const ParsingLanguagesEt ParsingLanguages = "et"
const ParsingLanguagesFr ParsingLanguages = "fr"
const ParsingLanguagesGa ParsingLanguages = "ga"
const ParsingLanguagesHr ParsingLanguages = "hr"
const ParsingLanguagesHu ParsingLanguages = "hu"
const ParsingLanguagesID ParsingLanguages = "id"
const ParsingLanguagesIs ParsingLanguages = "is"
const ParsingLanguagesIt ParsingLanguages = "it"
const ParsingLanguagesKu ParsingLanguages = "ku"
const ParsingLanguagesLa ParsingLanguages = "la"
const ParsingLanguagesLt ParsingLanguages = "lt"
const ParsingLanguagesLv ParsingLanguages = "lv"
const ParsingLanguagesMi ParsingLanguages = "mi"
const ParsingLanguagesMs ParsingLanguages = "ms"
const ParsingLanguagesMt ParsingLanguages = "mt"
const ParsingLanguagesNl ParsingLanguages = "nl"
const ParsingLanguagesNo ParsingLanguages = "no"
const ParsingLanguagesOc ParsingLanguages = "oc"
const ParsingLanguagesPi ParsingLanguages = "pi"
const ParsingLanguagesPl ParsingLanguages = "pl"
const ParsingLanguagesPt ParsingLanguages = "pt"
const ParsingLanguagesRo ParsingLanguages = "ro"
const ParsingLanguagesRsLatin ParsingLanguages = "rs_latin"
const ParsingLanguagesSk ParsingLanguages = "sk"
const ParsingLanguagesSl ParsingLanguages = "sl"
const ParsingLanguagesSq ParsingLanguages = "sq"
const ParsingLanguagesSv ParsingLanguages = "sv"
const ParsingLanguagesSw ParsingLanguages = "sw"
const ParsingLanguagesTl ParsingLanguages = "tl"
const ParsingLanguagesTr ParsingLanguages = "tr"
const ParsingLanguagesUz ParsingLanguages = "uz"
const ParsingLanguagesVi ParsingLanguages = "vi"
const ParsingLanguagesAr ParsingLanguages = "ar"
const ParsingLanguagesFa ParsingLanguages = "fa"
const ParsingLanguagesUg ParsingLanguages = "ug"
const ParsingLanguagesUr ParsingLanguages = "ur"
const ParsingLanguagesBn ParsingLanguages = "bn"
const ParsingLanguagesAs ParsingLanguages = "as"
const ParsingLanguagesMni ParsingLanguages = "mni"
const ParsingLanguagesRu ParsingLanguages = "ru"
const ParsingLanguagesRsCyrillic ParsingLanguages = "rs_cyrillic"
const ParsingLanguagesBe ParsingLanguages = "be"
const ParsingLanguagesBg ParsingLanguages = "bg"
const ParsingLanguagesUk ParsingLanguages = "uk"
const ParsingLanguagesMn ParsingLanguages = "mn"
const ParsingLanguagesAbq ParsingLanguages = "abq"
const ParsingLanguagesAdy ParsingLanguages = "ady"
const ParsingLanguagesKbd ParsingLanguages = "kbd"
const ParsingLanguagesAva ParsingLanguages = "ava"
const ParsingLanguagesDar ParsingLanguages = "dar"
const ParsingLanguagesInh ParsingLanguages = "inh"
const ParsingLanguagesChe ParsingLanguages = "che"
const ParsingLanguagesLbe ParsingLanguages = "lbe"
const ParsingLanguagesLez ParsingLanguages = "lez"
const ParsingLanguagesTab ParsingLanguages = "tab"
const ParsingLanguagesTjk ParsingLanguages = "tjk"
const ParsingLanguagesHi ParsingLanguages = "hi"
const ParsingLanguagesMr ParsingLanguages = "mr"
const ParsingLanguagesNe ParsingLanguages = "ne"
const ParsingLanguagesBh ParsingLanguages = "bh"
const ParsingLanguagesMai ParsingLanguages = "mai"
const ParsingLanguagesAng ParsingLanguages = "ang"
const ParsingLanguagesBho ParsingLanguages = "bho"
const ParsingLanguagesMah ParsingLanguages = "mah"
const ParsingLanguagesSck ParsingLanguages = "sck"
const ParsingLanguagesNew ParsingLanguages = "new"
const ParsingLanguagesGom ParsingLanguages = "gom"
const ParsingLanguagesSa ParsingLanguages = "sa"
const ParsingLanguagesBgc ParsingLanguages = "bgc"
const ParsingLanguagesTh ParsingLanguages = "th"
const ParsingLanguagesChSim ParsingLanguages = "ch_sim"
const ParsingLanguagesChTra ParsingLanguages = "ch_tra"
const ParsingLanguagesJa ParsingLanguages = "ja"
const ParsingLanguagesKo ParsingLanguages = "ko"
const ParsingLanguagesTa ParsingLanguages = "ta"
const ParsingLanguagesTe ParsingLanguages = "te"
const ParsingLanguagesKn ParsingLanguages = "kn"
type ParsingMode string

Enum for representing the mode of parsing to be used.

One of the following:
const ParsingModeParsePageWithoutLlm ParsingMode = "parse_page_without_llm"
const ParsingModeParsePageWithLlm ParsingMode = "parse_page_with_llm"
const ParsingModeParsePageWithLvm ParsingMode = "parse_page_with_lvm"
const ParsingModeParsePageWithAgent ParsingMode = "parse_page_with_agent"
const ParsingModeParsePageWithLayoutAgent ParsingMode = "parse_page_with_layout_agent"
const ParsingModeParseDocumentWithLlm ParsingMode = "parse_document_with_llm"
const ParsingModeParseDocumentWithLvm ParsingMode = "parse_document_with_lvm"
const ParsingModeParseDocumentWithAgent ParsingMode = "parse_document_with_agent"
type StatusEnum string

Enum for representing the status of a job

One of the following:
const StatusEnumPending StatusEnum = "PENDING"
const StatusEnumSuccess StatusEnum = "SUCCESS"
const StatusEnumError StatusEnum = "ERROR"
const StatusEnumPartialSuccess StatusEnum = "PARTIAL_SUCCESS"
const StatusEnumCancelled StatusEnum = "CANCELLED"
type TableItem struct{…}
Csv string

CSV representation of the table

HTML string

HTML representation of the table

Md string

Markdown representation preserving formatting

Rows [][]TableItemRowUnion

Table data as array of arrays (string, number, or null)

One of the following:
string
float64
Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

MergedFromPages []int64optional

List of page numbers with tables that were merged into this table (e.g., [1, 2, 3, 4])

MergedIntoPage int64optional

Populated when merged into another table. Page number where the full merged table begins (used on empty tables).

ParseConcerns []TableItemParseConcernoptional

Quality concerns detected during table extraction, indicating the table may have issues

Details string

Human-readable details about the concern

Type string

Type of parse concern (e.g. header_value_type_mismatch, inconsistent_row_cell_count)

Type TableItemTypeoptional

Table item type

type TextItem struct{…}
Md string

Markdown representation preserving formatting

Value string

Text content

Bbox []BBoxoptional

List of bounding boxes

H float64

Height of the bounding box

W float64

Width of the bounding box

X float64

X coordinate of the bounding box

Y float64

Y coordinate of the bounding box

Confidence float64optional

Confidence score

EndIndex int64optional

End index in the text

Label stringoptional

Label for the bounding box

StartIndex int64optional

Start index in the text

Type TextItemTypeoptional

Text item type