The File Upload API processes various document formats, extracts text and data, and provides specialized processing options for AI workflows. It can handle documents, images, and audio files with different extraction modes.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Gately AI","colors":{"primary":"#ff006e","light":"#ff69b4","dark":"#0d1b2a"},"favicon":"/logo/favicon.svg","logo":{"light":"https://mintcdn.com/taamai-c8c27d6c/KqAOKmnFBPaFSHqI/logo/dark.png?fit=max\u0026auto=format\u0026n=KqAOKmnFBPaFSHqI\u0026q=85\u0026s=1c7b31817a35b7146a6a8303671ae174","dark":"https://mintcdn.com/taamai-c8c27d6c/KqAOKmnFBPaFSHqI/logo/light.png?fit=max\u0026auto=format\u0026n=KqAOKmnFBPaFSHqI\u0026q=85\u0026s=b3394d8ff18e9ae2351d1731fe667688","href":"https://app.gately.ai"},"api":{"openapi":"api-reference/openapi.json","playground":{"display":"simple"},"mdx":{"server":"https://api.gately.ai","auth":{"method":"bearer","name":null}}},"appearance":{"default":"dark","strict":false},"background":{"image":"https://mintlify.s3.us-west-1.amazonaws.com/taamai-c8c27d6c/images/background.png","decoration":null,"color":{"light":null,"dark":"#0d1b2a"}},"navbar":{"links":[{"label":"Discord Community","href":"https://discord.com/invite/WrH6gCt5"},{"label":"Support","href":"mailto:support@taam.cloud"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.gately.ai"}},"search":{"prompt":"Search Gately AI docs..."},"footer":{"socials":{"discord":"https://discord.gg/WrH6gCt5","twitter":"https://twitter.com/taamcloud","linkedin":"https://www.linkedin.com/company/taam-cloud/","github":"https://github.com/taamsoftadmin/taam-cloud-node-sdk"}},"integrations":{"ga4":{"measurementId":"G-82WEV7P3YX"},"intercom":{"appId":"YOUR_INTERCOM_APP_ID"}},"fonts":{"heading":{"family":"Poppins","weight":600},"body":{"family":"Inter","weight":400}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"taamai-c8c27d6c","hasAudioNarration":false,"actualSubdomain":"taamai-c8c27d6c","customDomains":["docs.gately.ai"],"gitSource":{"type":"github","owner":"taamsoftadmin","repo":"taam-cloud-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21e68133a4518725aaba4b","collectionId":"ecbb0889-4831-4f26-8e2f-3ef1f3235c7e","schemaVersion":"v2"},"feedback":{"issues":true,"edits":true,"thumbs":true},"entitlements":{},"buildId":"6a21e68133a4518725aaba4b:success","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"Documentation","count":45},{"language":"default","tag":"API Reference","count":36},{"language":"default","tag":"Playground","count":19},{"language":"default","tag":"Subscription","count":10},{"language":"default","tag":"Web \u0026 Search","count":8},{"language":"default","tag":"WEB Crawling","count":5},{"language":"default","tag":"Pricing","count":5},{"language":"default","tag":"Media","count":4},{"language":"default","tag":"AI Models API","count":3},{"language":"default","tag":"Get started","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"api-reference/endpoint/upload","slug":"/api-reference/endpoint/upload","pageMetadata":{"title":"File Upload","description":"Upload and process files with advanced extraction capabilities","openapi":"POST /upload","href":"/api-reference/endpoint/upload"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Upload and process files with advanced extraction capabilities\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Card,CardGroup,CodeBlock,Expandable,Heading,Info,Note,ParamField,ResponseField,Tab,Tabs}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`file-upload-api`,children:`File Upload API`}),`\n`,_jsx(_components.p,{children:`The File Upload API processes various document formats, extracts text and data, and provides specialized processing options for AI workflows. It can handle documents, images, and audio files with different extraction modes.`}),`\n`,_jsx(Heading,{level:`2`,id:`base-urls`,children:`Base URLs`}),`\n`,_jsx(_components.p,{children:`Gately AI offers two upload endpoints:`}),`\n`,_jsx(Card,{children:_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Standard Upload`,id:`standard-upload`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.gately.ai/v1/files`})]}),`\n`]})})}),_jsx(_components.p,{children:`Use this endpoint for simple file uploads with basic processing options.`})]}),_jsxs(Tab,{title:`Advanced Processing`,id:`advanced-processing`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://uploud.taam.cloud/upload`})]}),`\n`]})})}),_jsx(_components.p,{children:`Use this endpoint for advanced document processing, OCR, vision analysis, and chunking.`})]})]})}),`\n`,_jsx(Heading,{level:`2`,id:`supported-file-types`,children:`Supported File Types`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Documents`,icon:`file-lines`,children:_jsxs(_components.p,{children:[`PDF (`,_jsx(_components.code,{children:`.pdf`}),`), Word (`,_jsx(_components.code,{children:`.docx`}),`), PowerPoint (`,_jsx(_components.code,{children:`.pptx`}),`), Excel (`,_jsx(_components.code,{children:`.xlsx`}),`, `,_jsx(_components.code,{children:`.xls`}),`), Text (`,_jsx(_components.code,{children:`.txt`}),`)`]})}),_jsx(Card,{title:`Images`,icon:`image`,children:_jsx(_components.p,{children:`JPG, PNG, WEBP, GIF, SVG, BMP, TIFF`})}),_jsx(Card,{title:`Audio`,icon:`microphone`,children:_jsx(_components.p,{children:`MP3, WAV, OGG, M4A (requires Azure Speech config)`})}),_jsx(Card,{title:`Data`,icon:`database`,children:_jsx(_components.p,{children:`JSON, XML, CSV`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`size-limits`,children:`Size Limits`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Maximum file size: `,_jsx(_components.strong,{children:`50 MB`}),` per file`]})}),`\n`,_jsx(Heading,{level:`2`,id:`processing-options`,children:`Processing Options`}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`The OpenAPI playground above allows you to test file uploads with various processing options. Use the parameters described below.`})}),`\n`,_jsx(Heading,{level:`3`,id:`common-parameters`,children:`Common Parameters`}),`\n`,_jsx(ParamField,{query:`enable_ocr`,type:`string`,default:`false`,id:`param-enable-ocr`,children:_jsx(_components.p,{children:`Enable Optical Character Recognition for image-based documents`})}),`\n`,_jsx(ParamField,{query:`enable_vision`,type:`string`,default:`true`,id:`param-enable-vision`,children:_jsx(_components.p,{children:`Enable Vision processing for images and visually-rich content`})}),`\n`,_jsx(ParamField,{query:`save_all`,type:`string`,default:`false`,id:`param-save-all`,children:_jsx(_components.p,{children:`Save raw files along with processed output to storage`})}),`\n`,_jsx(Heading,{level:`3`,id:`advanced-parameters`,children:`Advanced Parameters`}),`\n`,_jsx(ParamField,{query:`text_only`,type:`string`,default:`false`,id:`param-text-only`,children:_jsx(_components.p,{children:`Extract only text content from the document`})}),`\n`,_jsx(ParamField,{query:`vision_only`,type:`string`,default:`false`,id:`param-vision-only`,children:_jsx(_components.p,{children:`Process with vision models only (for images)`})}),`\n`,_jsx(ParamField,{query:`page_based`,type:`string`,default:`false`,id:`param-page-based`,children:_jsx(_components.p,{children:`Return content organized by pages`})}),`\n`,_jsx(ParamField,{query:`images_only`,type:`string`,default:`false`,id:`param-images-only`,children:_jsx(_components.p,{children:`Extract only images from documents`})}),`\n`,_jsx(ParamField,{query:`extract_mode`,type:`string`,default:`default`,id:`param-extract-mode`,children:_jsx(_components.p,{children:`Extraction mode: ‘default’ or ‘embeddings’`})}),`\n`,_jsx(ParamField,{query:`remove_headers`,type:`string`,default:`true`,id:`param-remove-headers`,children:_jsx(_components.p,{children:`Remove headers/footers from documents`})}),`\n`,_jsx(Heading,{level:`2`,id:`example-usage`,children:`Example Usage`}),`\n`,_jsx(Heading,{level:`3`,id:`basic-file-upload`,children:`Basic File Upload`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://uploud.taam.cloud/upload'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'file=@/path/to/document.pdf'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`with-ocr-processing`,children:`With OCR Processing`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://uploud.taam.cloud/upload'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'file=@/path/to/document.pdf'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'enable_ocr=true'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'enable_vision=false'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`extract-for-ai-embeddings`,children:`Extract for AI Embeddings`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://uploud.taam.cloud/upload'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'file=@/path/to/document.pdf'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'extract_mode=embeddings'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`page-based-extraction`,children:`Page-Based Extraction`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://uploud.taam.cloud/upload'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'file=@/path/to/document.pdf'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'page_based=true'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`response-formats`,children:`Response Formats`}),`\n`,_jsx(Heading,{level:`3`,id:`standard-processing`,children:`Standard Processing`}),`\n`,_jsx(ResponseField,{name:`status`,type:`boolean`,id:`param-status`,children:_jsx(_components.p,{children:`Success status of the upload and processing`})}),`\n`,_jsx(ResponseField,{name:`content`,type:`string`,id:`param-content`,children:_jsx(_components.p,{children:`Extracted text or data URL`})}),`\n`,_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type`,children:_jsx(_components.p,{children:`Detected file type (pdf, docx, image, etc.)`})}),`\n`,_jsx(ResponseField,{name:`error`,type:`string`,id:`param-error`,children:_jsx(_components.p,{children:`Error message (if any)`})}),`\n`,_jsx(Heading,{level:`3`,id:`embeddings-mode`,children:`Embeddings Mode`}),`\n`,_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`Unique identifier for the request`})}),`\n`,_jsx(ResponseField,{name:`object`,type:`string`,id:`param-object`,children:_jsx(_components.p,{children:`Object type (e.g., ‘chunks’)`})}),`\n`,_jsx(ResponseField,{name:`created`,type:`integer`,id:`param-created`,children:_jsx(_components.p,{children:`Unix timestamp when the request was created`})}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`Processed Data`,children:[_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsx(_components.p,{children:`Processing success status`})}),_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data-1`,children:_jsxs(Expandable,{title:`Extracted Data`,children:[_jsx(ResponseField,{name:`metadata`,type:`object`,id:`param-metadata`,children:_jsx(_components.p,{children:`Document metadata (title, description, language)`})}),_jsx(ResponseField,{name:`chunks`,type:`array`,id:`param-chunks`,children:_jsxs(Expandable,{title:`Content Chunks`,children:[_jsx(ResponseField,{name:`content`,type:`string`,id:`param-content-1`,children:_jsx(_components.p,{children:`Text content of the chunk`})}),_jsx(ResponseField,{name:`total_tokens`,type:`integer`,id:`param-total-tokens`,children:_jsx(_components.p,{children:`Number of tokens in the chunk`})}),_jsx(ResponseField,{name:`from_page`,type:`integer`,id:`param-from-page`,children:_jsx(_components.p,{children:`Page number the chunk is from`})})]})})]})})]})}),`\n`,_jsx(ResponseField,{name:`usage`,type:`object`,id:`param-usage`,children:_jsxs(Expandable,{title:`Usage Statistics`,children:[_jsx(ResponseField,{name:`total_chunks`,type:`integer`,id:`param-total-chunks`,children:_jsx(_components.p,{children:`Total number of chunks`})}),_jsx(ResponseField,{name:`total_extracted_text`,type:`integer`,id:`param-total-extracted-text`,children:_jsx(_components.p,{children:`Total characters of extracted text`})}),_jsx(ResponseField,{name:`total_tokens`,type:`integer`,id:`param-total-tokens-1`,children:_jsx(_components.p,{children:`Total number of tokens`})}),_jsx(ResponseField,{name:`total_pages`,type:`integer`,id:`param-total-pages`,children:_jsx(_components.p,{children:`Total number of pages`})})]})}),`\n`,_jsx(Heading,{level:`2`,id:`example-response-standard`,children:`Example Response (Standard)`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"This document provides information about...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`example-response-embeddings-mode`,children:`Example Response (Embeddings Mode)`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`35`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`35`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"scrape-aec35e29-703d-4eaf-b1c4-5cda9fd66951\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"chunks\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1732654897`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Annual_Report_2023\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Annual financial report\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"language\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"en\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"chunks\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Executive Summary`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`The fiscal year 2023 showed strong performance...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`125`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"from_page\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Financial Highlights`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Revenue increased by 15% compared to the previous year...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`142`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"from_page\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_chunks\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`15`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_extracted_text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_pages\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`25`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`special-features`,children:`Special Features`}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`Document Structure Preservation`,icon:`layer-group`,id:`document-structure-preservation`,children:_jsx(_components.p,{children:`The API preserves document structure including headers, sections, lists, and tables during extraction.`})}),_jsx(Accordion,{title:`PDF Processing`,icon:`file-pdf`,id:`pdf-processing`,children:_jsx(_components.p,{children:`Advanced PDF handling including form extraction, tabular data processing, and header/footer removal.`})}),_jsx(Accordion,{title:`Image Processing`,icon:`image`,id:`image-processing`,children:_jsx(_components.p,{children:`Extract text from images using OCR or process them with vision models for content understanding.`})}),_jsx(Accordion,{title:`Audio Transcription`,icon:`waveform`,id:`audio-transcription`,children:_jsx(_components.p,{children:`Convert audio files to text transcripts (requires Azure Speech configuration).`})}),_jsx(Accordion,{title:`Embeddings Preparation`,icon:`diagram-project`,id:`embeddings-preparation`,children:_jsx(_components.p,{children:`Special formatting for AI embeddings generation with optimized chunking and token counting.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`error-handling`,children:`Error Handling`}),`\n`,_jsx(_components.p,{children:`If an error occurs, the API returns a JSON object with the error message:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"File size exceeds the maximum limit\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Common errors include:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`File size limit exceeded`}),`\n`,_jsx(_components.li,{children:`Unsupported file type`}),`\n`,_jsx(_components.li,{children:`OCR service unavailable`}),`\n`,_jsx(_components.li,{children:`Processing timeout`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`integration-with-ai-services`,children:`Integration with AI Services`}),`\n`,_jsx(_components.p,{children:`The extracted content can be used directly with Gately AI’s AI models:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-4o\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"messages\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Summarize this document\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EXTRACTED_DOCUMENT_CONTENT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`For large documents, use the embeddings mode and work with the chunked output for better AI processing.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"File Upload","description":"Upload and process files with advanced extraction capabilities","openapi":"POST /upload","href":"/api-reference/endpoint/upload"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"File Upload API","slug":"file-upload-api","depth":1,"children":[]},{"title":"Base URLs","slug":"base-urls","depth":2,"children":[]},{"title":"Supported File Types","slug":"supported-file-types","depth":2,"children":[]},{"title":"Size Limits","slug":"size-limits","depth":2,"children":[]},{"title":"Processing Options","slug":"processing-options","depth":2,"children":[{"title":"Common Parameters","slug":"common-parameters","depth":3,"children":[]},{"title":"Advanced Parameters","slug":"advanced-parameters","depth":3,"children":[]}]},{"title":"Example Usage","slug":"example-usage","depth":2,"children":[{"title":"Basic File Upload","slug":"basic-file-upload","depth":3,"children":[]},{"title":"With OCR Processing","slug":"with-ocr-processing","depth":3,"children":[]},{"title":"Extract for AI Embeddings","slug":"extract-for-ai-embeddings","depth":3,"children":[]},{"title":"Page-Based Extraction","slug":"page-based-extraction","depth":3,"children":[]}]},{"title":"Response Formats","slug":"response-formats","depth":2,"children":[{"title":"Standard Processing","slug":"standard-processing","depth":3,"children":[]},{"title":"Embeddings Mode","slug":"embeddings-mode","depth":3,"children":[]}]},{"title":"Example Response (Standard)","slug":"example-response-standard","depth":2,"children":[]},{"title":"Example Response (Embeddings Mode)","slug":"example-response-embeddings-mode","depth":2,"children":[]},{"title":"Special Features","slug":"special-features","depth":2,"children":[]},{"title":"Error Handling","slug":"error-handling","depth":2,"children":[]},{"title":"Integration with AI Services","slug":"integration-with-ai-services","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"upload","summary":"Upload and process files","description":"Upload and process files with advanced extraction capabilities","tags":["Files"],"requestBody":"ddf3b31a-b0d5-403d-b0d0-690fd5822f4c","responses":{"200":"bd3109dd-930a-42f0-8830-fffa4a605098","400":"e19024a8-d5b0-48a2-bfec-5091d79eda23","413":"4d404a25-867b-485b-97e7-bac6c7467730","500":"a490eec3-7ecc-4682-888a-f9a3289a2117"},"method":"post","type":"path","servers":["a2c06910-6e3f-4687-8760-21440d82f687","41a29d99-6011-4113-816f-89927d208d64"],"security":["414efdde-379d-4c21-933d-1c5adf0392fd"],"path":"/upload","baseUrlOptions":["https://api.gately.ai","https://uploud.taam.cloud"],"title":"Upload and process files","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"File to upload","isRequired":true,"uniqueKey":"file","typeLabel":"file"},"enable_ocr":{"type":"string","enum":["true","false"],"default":"false","description":"Enable OCR for image processing","uniqueKey":"enable_ocr","typeLabel":"enum\u003cstring>"},"enable_vision":{"type":"string","enum":["true","false"],"default":"true","description":"Enable vision-based processing for images","uniqueKey":"enable_vision","typeLabel":"enum\u003cstring>"},"save_all":{"type":"string","enum":["true","false"],"default":"false","description":"Save file to configured storage","uniqueKey":"save_all","typeLabel":"enum\u003cstring>"},"text_only":{"type":"string","enum":["true","false"],"default":"false","description":"Extract only text content","uniqueKey":"text_only","typeLabel":"enum\u003cstring>"},"vision_only":{"type":"string","enum":["true","false"],"default":"false","description":"Process with vision only","uniqueKey":"vision_only","typeLabel":"enum\u003cstring>"},"page_based":{"type":"string","enum":["true","false"],"default":"false","description":"Return page-based structured response","uniqueKey":"page_based","typeLabel":"enum\u003cstring>"},"images_only":{"type":"string","enum":["true","false"],"default":"false","description":"Extract only images from documents","uniqueKey":"images_only","typeLabel":"enum\u003cstring>"},"extract_mode":{"type":"string","enum":["default","embeddings"],"default":"default","description":"Extraction mode: 'default' or 'embeddings'","uniqueKey":"extract_mode","typeLabel":"enum\u003cstring>"},"remove_headers":{"type":"string","enum":["true","false"],"default":"true","description":"Remove headers/footers from documents","uniqueKey":"remove_headers","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"file":"\u003cstring>","enable_ocr":"false","enable_vision":"true","save_all":"false","text_only":"false","vision_only":"false","page_based":"false","images_only":"false","extract_mode":"default","remove_headers":"true"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"bd3109dd-930a-42f0-8830-fffa4a605098":{"description":"File successfully processed","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"status":{"type":"boolean","description":"Operation status","uniqueKey":"oneOf.0.status","typeLabel":"boolean"},"content":{"type":"string","description":"Extracted text or data URL","uniqueKey":"oneOf.0.content","typeLabel":"string"},"type":{"type":"string","enum":["pdf","docx","pptx","xlsx","image","audio","text","error"],"description":"Type of the processed file","uniqueKey":"oneOf.0.type","typeLabel":"enum\u003cstring>"},"error":{"type":"string","description":"Error message (if any)","uniqueKey":"oneOf.0.error","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the request","uniqueKey":"oneOf.1.id","typeLabel":"string"},"object":{"type":"string","description":"Object type (e.g., 'chunks')","uniqueKey":"oneOf.1.object","typeLabel":"string"},"created":{"type":"integer","description":"Unix timestamp when the request was created","uniqueKey":"oneOf.1.created","typeLabel":"integer"},"data":{"type":"object","properties":{"success":{"type":"boolean","uniqueKey":"oneOf.1.data.success","typeLabel":"boolean"},"data":{"type":"object","properties":{"metadata":{"type":"object","properties":{"title":{"type":"string","description":"Document title","uniqueKey":"oneOf.1.data.data.metadata.title","typeLabel":"string"},"description":{"type":"string","description":"Document description","uniqueKey":"oneOf.1.data.data.metadata.description","typeLabel":"string"},"language":{"type":"string","description":"Document language","uniqueKey":"oneOf.1.data.data.metadata.language","typeLabel":"string"}},"uniqueKey":"oneOf.1.data.data.metadata","typeLabel":"object"},"chunks":{"type":"array","items":{"type":"object","properties":{"content":{"type":"string","description":"Text content of the chunk","uniqueKey":"oneOf.1.data.data.chunks.items.[INDEX].content","typeLabel":"string"},"total_tokens":{"type":"integer","description":"Number of tokens in the chunk","uniqueKey":"oneOf.1.data.data.chunks.items.[INDEX].total_tokens","typeLabel":"integer"},"from_page":{"type":"integer","description":"Page number the chunk is from","uniqueKey":"oneOf.1.data.data.chunks.items.[INDEX].from_page","typeLabel":"integer"}},"uniqueKey":"oneOf.1.data.data.chunks.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.data.data.chunks","typeLabel":"object[]"}},"uniqueKey":"oneOf.1.data.data","typeLabel":"object"}},"uniqueKey":"oneOf.1.data","typeLabel":"object"},"usage":{"type":"object","properties":{"total_chunks":{"type":"integer","description":"Total number of chunks","uniqueKey":"oneOf.1.usage.total_chunks","typeLabel":"integer"},"total_extracted_text":{"type":"integer","description":"Total characters of extracted text","uniqueKey":"oneOf.1.usage.total_extracted_text","typeLabel":"integer"},"total_tokens":{"type":"integer","description":"Total number of tokens","uniqueKey":"oneOf.1.usage.total_tokens","typeLabel":"integer"},"total_pages":{"type":"integer","description":"Total number of pages","uniqueKey":"oneOf.1.usage.total_pages","typeLabel":"integer"}},"uniqueKey":"oneOf.1.usage","typeLabel":"object"},"type":{"type":"string","description":"Type of the processed file","uniqueKey":"oneOf.1.type","typeLabel":"string"},"error":{"type":"string","description":"Error message (if any)","uniqueKey":"oneOf.1.error","typeLabel":"string"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":true,"content":"\u003cstring>","type":"pdf","error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"e19024a8-d5b0-48a2-bfec-5091d79eda23":{"description":"Invalid file format or request","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"4d404a25-867b-485b-97e7-bac6c7467730":{"description":"File size exceeds limit","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"a490eec3-7ecc-4682-888a-f9a3289a2117":{"description":"Processing error","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"414efdde-379d-4c21-933d-1c5adf0392fd":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Enter your API key prefixed with 'Bearer '","scopes":[]}}},"servers":{"a2c06910-6e3f-4687-8760-21440d82f687":{"url":"https://api.gately.ai","description":"Main API server"},"41a29d99-6011-4113-816f-89927d208d64":{"url":"https://uploud.taam.cloud","description":"File Processing server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Enter your API key prefixed with 'Bearer '","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Enter your API key prefixed with 'Bearer '","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"taamai-c8c27d6c","siteName":"Gately AI","title":"File Upload - Gately AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T05:53:51.455Z","originalFileLocation":"api-reference/endpoint/upload.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Upload and process files with advanced extraction capabilities\">\u003cmeta data-mint-head name=\"application-name\" content=\"Gately AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/taamai-c8c27d6c/SPtdbRhi8a7TdhkY/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/taamai-c8c27d6c/SPtdbRhi8a7TdhkY/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/taamai-c8c27d6c/SPtdbRhi8a7TdhkY/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/taamai-c8c27d6c/SPtdbRhi8a7TdhkY/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/taamai-c8c27d6c/SPtdbRhi8a7TdhkY/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/taamai-c8c27d6c/SPtdbRhi8a7TdhkY/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/taamai-c8c27d6c/SPtdbRhi8a7TdhkY/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/taamai-c8c27d6c/SPtdbRhi8a7TdhkY/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/taamai-c8c27d6c/SPtdbRhi8a7TdhkY/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"File Upload - Gately AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Upload and process files with advanced extraction capabilities\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Gately AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gately.ai/api-reference/endpoint/upload\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://taamai-c8c27d6c.mintlify.app/_mintlify/api/og/v2?division=Media\u0026amp;title=File+Upload\u0026amp;description=Upload+and+process+files+with+advanced+extraction+capabilities\u0026amp;theme=f595793cfd71ffca92dac2f7\u0026amp;signature=12bf3d0d37b9a8c4afde728be17f2761ceefdd995d7f037048bdcffaadcfd4d5\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"File Upload - Gately AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Upload and process files with advanced extraction capabilities\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://taamai-c8c27d6c.mintlify.app/_mintlify/api/og/v2?division=Media\u0026amp;title=File+Upload\u0026amp;description=Upload+and+process+files+with+advanced+extraction+capabilities\u0026amp;theme=f595793cfd71ffca92dac2f7\u0026amp;signature=12bf3d0d37b9a8c4afde728be17f2761ceefdd995d7f037048bdcffaadcfd4d5\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/taamai-c8c27d6c/SPtdbRhi8a7TdhkY/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Gately AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ff006e\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gately.ai/api-reference/endpoint/upload\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/upload.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gately.ai/#organization\",\"name\":\"Gately AI\",\"url\":\"https://docs.gately.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/taamai-c8c27d6c/KqAOKmnFBPaFSHqI/logo/dark.png?fit=max\u0026auto=format\u0026n=KqAOKmnFBPaFSHqI\u0026q=85\u0026s=1c7b31817a35b7146a6a8303671ae174\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gately.ai#website\",\"name\":\"Gately AI\",\"url\":\"https://docs.gately.ai\",\"publisher\":{\"@id\":\"https://docs.gately.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gately.ai/api-reference/endpoint/upload#webpage\",\"url\":\"https://docs.gately.ai/api-reference/endpoint/upload\",\"name\":\"File Upload\",\"description\":\"Upload and process files with advanced extraction capabilities\",\"dateModified\":\"2026-01-07T05:53:51.455Z\",\"isPartOf\":{\"@id\":\"https://docs.gately.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gately.ai/api-reference/endpoint/upload#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gately.ai/api-reference/endpoint/upload#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.gately.ai/api-reference/openai-compatibility\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Media\",\"item\":\"https://docs.gately.ai/api-reference/endpoint/music\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"File Upload\",\"item\":\"https://docs.gately.ai/api-reference/endpoint/upload\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.gately.ai/api-reference/endpoint/upload#apireference\",\"headline\":\"File Upload\",\"name\":\"File Upload\",\"description\":\"Upload and process files with advanced extraction capabilities\",\"url\":\"https://docs.gately.ai/api-reference/endpoint/upload\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gately.ai/api-reference/endpoint/upload#webpage\"},\"dateModified\":\"2026-01-07T05:53:51.455Z\",\"publisher\":{\"@id\":\"https://docs.gately.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gately.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Gately AI\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Gately AI","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Subscription","pages":[{"title":"Subscription","href":"/subscription/model-pricing"}]},{"tab":"Playground","pages":[{"title":"Playground","href":"/playground/chat-interface"}]},{"tab":"API Reference","groups":[{"group":"API Reference","icon":"code","pages":[{"title":"OpenAI Compatibility","href":"/api-reference/openai-compatibility"},{"title":"SDK Installation","href":"/api-reference/sdk-installation"},{"group":"Get started","icon":"cube","pages":[{"title":"Get API Key","href":"/api-reference/endpoint/get-api"},{"title":"Quick Start","href":"/api-reference/endpoint/get-started"},{"title":"Models API","openapi":"GET /v1/models","href":"/api-reference/endpoint/models"}]},{"group":"AI Models API","icon":"message-dots","pages":[{"title":"Chat Completions","openapi":"POST /v1/chat/completions","href":"/api-reference/endpoint/chat"},{"title":"Embeddings API","openapi":"POST /v1/embeddings","href":"/api-reference/endpoint/embeddings"},{"title":"Rerank","openapi":"POST /v1/rerank","href":"/api-reference/endpoint/rerank"}]},{"group":"Media","icon":"photo-film","pages":[{"title":"Music Generation","openapi":"POST /suno/submit/music","href":"/api-reference/endpoint/music"},{"title":"Image Generation","openapi":"POST /v1/images/generations","href":"/api-reference/endpoint/images"},{"title":"Video Generation","description":"Generate dynamic videos from text descriptions or images","openapi":"POST /v1/video_generation","href":"/api-reference/endpoint/video-generation"},{"title":"File Upload","openapi":"POST /upload","href":"/api-reference/endpoint/upload"}]},{"group":"Guides","icon":"book","pages":[{"title":"Document AI Processing","description":"Processing documents with Gately AI AI models","href":"/api-reference/guides/document-ai-processing"}]}]},{"group":"Web \u0026 Search","icon":"globe","pages":[{"group":"WEB Crawling","icon":"spider","pages":[{"title":"Web Crawling API","href":"/api-reference/endpoint/crawling-intro"},{"title":"Web Scraping","href":"/api-reference/endpoint/scrape"},{"title":"Website Crawling","openapi":"POST /v1/web","href":"/api-reference/endpoint/crawl"},{"title":"Get Crawl Status","openapi":"POST /v1/web","href":"/api-reference/endpoint/crawl-status"},{"title":"Website Mapping","openapi":"POST /v1/web","href":"/api-reference/endpoint/map"}]},{"group":"AI Search Engine","icon":"magnifying-glass","pages":[{"title":"Introduction to AI Search","href":"/api-reference/endpoint/search-intro"},{"title":"AI Search","href":"/api-reference/endpoint/search"},{"title":"Search Models","href":"/api-reference/endpoint/search-models"}]}]}]}]},{"anchor":"API Reference","icon":{"name":"code","style":"duotone"},"pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"anchor":"Playground","icon":{"name":"gamepad","style":"duotone"},"pages":[{"title":"Playground","href":"/playground/get-started"}]},{"anchor":"Dashboard","href":"https://app.gately.ai","icon":{"name":"gauge","style":"duotone"}}]},"title":"File Upload - Gately AI","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-26-lDe7V.js","utils-CWQmgYtH.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-4-Aw3rSD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C2zjXYA5.js","snippetPresets-DFmpFA7C.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-FJpQavWq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D_GvPF7k.js","shallow-Bs2ZB0NO.js","getApiPlaygroundDisplay-DCcqJJk-.js","CodeSnippet-DzDxawVe.js","CodeSnippets-aUr7fU-7.js","Page-CT9uE8Ip.js","getPastedJson-Y1fKsj_I.js","icon-DI4zTsDr.js","MethodPill-C0nDlmSQ.js","DuplicateIcon-NUXbx2nQ.js","createIcon-BdTHrPAi.js","DynamicMarkdown-CtpgKJwj.js","SectionHeading-B3x35tOt.js","axios-vUo_bRtp.js","Markdown-3OmurJMP.js","clsx-DMKzROTp.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-1ms6tsT-.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Ke9xIMFx.js"]}