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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

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 FailPageModeBlankPage FailPageMode = "blank_page"
const FailPageModeErrorMessage FailPageMode = "error_message"
const FailPageModeRawText FailPageMode = "raw_text"

List of items within the footer

One of the following:
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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

StartIndex int64Optional

Start index in the text

Language stringOptional

Programming language identifier

Type CodeItemTypeOptional

Code block 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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

StartIndex int64Optional

Start index in the text

Type ListItemTypeOptional

List 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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

StartIndex int64Optional

Start index in the text

Type TextItemTypeOptional

Text 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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

StartIndex int64Optional

Start index in the text

Page footer container

type Form struct{…}

One form detected on a page, in two representations of the same content.

Json []FormJsonUnion

Structured representation: an ordered tree of sections, fields, and tables

One of the following:
type FormField struct{…}

One labeled form entry: a text input, checkbox, select group, or signature line.

Field FormFieldField

Kind of entry: text (any free-text input), checkbox, single_select, multi_select, or signature

One of the following:
const FormFieldFieldCheckbox FormFieldField = "checkbox"
const FormFieldFieldMultiSelect FormFieldField = "multi_select"
const FormFieldFieldSignature FormFieldField = "signature"
const FormFieldFieldSingleSelect FormFieldField = "single_select"
const FormFieldFieldText FormFieldField = "text"
ID stringOptional

Field number/letter printed on the form (e.g. ‘1a’), if any

IsEmpty boolOptional

True for a printed-but-blank text field (mutually exclusive with value)

Label stringOptional

Printed field caption, if any

Type FormFieldTypeOptional

Form field node

Value FormFieldValueUnionOptional

Entered content: verbatim text for text fields, or a boolean for checkbox (checked) and signature (signed). Absent on blank text fields and on select groups

One of the following:
string
bool
ValueItems []FormFieldValueItemUnionOptional

Options of a single_select/multi_select group (only on select fields)

One of the following:
type FormField FormField

One labeled form entry: a text input, checkbox, select group, or signature line.

type FormSection struct{…}

A grouping of form content, in the form’s reading order.

ID stringOptional

Identifier printed on the form (e.g. ‘Part III’), if any

Label stringOptional

Printed section heading, if any

Type FormSectionTypeOptional

Form section node

type FormTable struct{…}

A fillable grid printed on the form: repeating records or a row-by-column matrix.

ID stringOptional

Identifier printed on the form, if any

Columns []stringOptional

Printed column headers in order, if any

Label stringOptional

Printed table caption, if any

Type FormTableTypeOptional

Form table node

type FormSection struct{…}

A grouping of form content, in the form’s reading order.

ID stringOptional

Identifier printed on the form (e.g. ‘Part III’), if any

Label stringOptional

Printed section heading, if any

Type FormSectionTypeOptional

Form section node

type FormTable struct{…}

A fillable grid printed on the form: repeating records or a row-by-column matrix.

ID stringOptional

Identifier printed on the form, if any

Columns []stringOptional

Printed column headers in order, if any

Label stringOptional

Printed table caption, if any

Type FormTableTypeOptional

Form table node

Flattened list representation of the same content

Items []FormListItemItemUnion

Nested lines and sub-lists, in the form’s reading order

One of the following:
type FormListTextItem struct{…}

One line of a form’s list representation.

Md string

Markdown representation of the line

Value string

Line content (e.g. ‘[1a] Wages: 29,513’)

Type FormListTextItemTypeOptional

Text line

type FormListItem FormListItem

The list representation of form content: nested lists of rendered field lines.

Md string

Markdown representation of this list

Ordered bool

Whether the list is ordered

Type FormListItemTypeOptional

List node

type FormField struct{…}

One labeled form entry: a text input, checkbox, select group, or signature line.

Field FormFieldField

Kind of entry: text (any free-text input), checkbox, single_select, multi_select, or signature

One of the following:
const FormFieldFieldCheckbox FormFieldField = "checkbox"
const FormFieldFieldMultiSelect FormFieldField = "multi_select"
const FormFieldFieldSignature FormFieldField = "signature"
const FormFieldFieldSingleSelect FormFieldField = "single_select"
const FormFieldFieldText FormFieldField = "text"
ID stringOptional

Field number/letter printed on the form (e.g. ‘1a’), if any

IsEmpty boolOptional

True for a printed-but-blank text field (mutually exclusive with value)

Label stringOptional

Printed field caption, if any

Type FormFieldTypeOptional

Form field node

Value FormFieldValueUnionOptional

Entered content: verbatim text for text fields, or a boolean for checkbox (checked) and signature (signed). Absent on blank text fields and on select groups

One of the following:
string
bool
ValueItems []FormFieldValueItemUnionOptional

Options of a single_select/multi_select group (only on select fields)

One of the following:
type FormField FormField

One labeled form entry: a text input, checkbox, select group, or signature line.

type FormSection struct{…}

A grouping of form content, in the form’s reading order.

ID stringOptional

Identifier printed on the form (e.g. ‘Part III’), if any

Label stringOptional

Printed section heading, if any

Type FormSectionTypeOptional

Form section node

type FormTable struct{…}

A fillable grid printed on the form: repeating records or a row-by-column matrix.

ID stringOptional

Identifier printed on the form, if any

Columns []stringOptional

Printed column headers in order, if any

Label stringOptional

Printed table caption, if any

Type FormTableTypeOptional

Form table node

type FormListItem struct{…}

The list representation of form content: nested lists of rendered field lines.

Items []FormListItemItemUnion

Nested lines and sub-lists, in the form’s reading order

One of the following:
type FormListTextItem struct{…}

One line of a form’s list representation.

Md string

Markdown representation of the line

Value string

Line content (e.g. ‘[1a] Wages: 29,513’)

Type FormListTextItemTypeOptional

Text line

type FormListItem FormListItem

The list representation of form content: nested lists of rendered field lines.

Md string

Markdown representation of this list

Ordered bool

Whether the list is ordered

Type FormListItemTypeOptional

List node

type FormListTextItem struct{…}

One line of a form’s list representation.

Md string

Markdown representation of the line

Value string

Line content (e.g. ‘[1a] Wages: 29,513’)

Type FormListTextItemTypeOptional

Text line

type FormSection struct{…}

A grouping of form content, in the form’s reading order.

ID stringOptional

Identifier printed on the form (e.g. ‘Part III’), if any

Label stringOptional

Printed section heading, if any

Type FormSectionTypeOptional

Form section node

type FormTable struct{…}

A fillable grid printed on the form: repeating records or a row-by-column matrix.

ID stringOptional

Identifier printed on the form, if any

Columns []stringOptional

Printed column headers in order, if any

Label stringOptional

Printed table caption, if any

Type FormTableTypeOptional

Form table node

type HeaderItem struct{…}
Items []HeaderItemItemUnion

List of items within the header

One of the following:
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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

StartIndex int64Optional

Start index in the text

Language stringOptional

Programming language identifier

Type CodeItemTypeOptional

Code block 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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

StartIndex int64Optional

Start index in the text

Type ListItemTypeOptional

List 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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

StartIndex int64Optional

Start index in the text

Type TextItemTypeOptional

Text 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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

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

A parse job (v1).

ID string

Unique parse job identifier

Status StatusEnum

Current job status

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

Enum for representing the mode of parsing to be used.

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

Enum for representing the status of a job

One of the following:
const StatusEnumCancelled StatusEnum = "CANCELLED"
const StatusEnumError StatusEnum = "ERROR"
const StatusEnumPartialSuccess StatusEnum = "PARTIAL_SUCCESS"
const StatusEnumPending StatusEnum = "PENDING"
const StatusEnumSuccess StatusEnum = "SUCCESS"
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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

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

R float64Optional

Optional visual text rotation angle in degrees. Omitted when unrotated.

StartIndex int64Optional

Start index in the text

Type TextItemTypeOptional

Text item type