File Upload
Upload and process files with advanced extraction capabilities
File Upload API
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.
Base URLs
Taam Cloud offers two upload endpoints:
Use this endpoint for simple file uploads with basic processing options.
Supported File Types
Documents
PDF (.pdf
), Word (.docx
), PowerPoint (.pptx
), Excel (.xlsx
, .xls
), Text (.txt
)
Images
JPG, PNG, WEBP, GIF, SVG, BMP, TIFF
Audio
MP3, WAV, OGG, M4A (requires Azure Speech config)
Data
JSON, XML, CSV
Size Limits
Maximum file size: 50 MB per file
Processing Options
The OpenAPI playground above allows you to test file uploads with various processing options. Use the parameters described below.
Common Parameters
Enable Optical Character Recognition for image-based documents
Enable Vision processing for images and visually-rich content
Save raw files along with processed output to storage
Advanced Parameters
Extract only text content from the document
Process with vision models only (for images)
Return content organized by pages
Extract only images from documents
Extraction mode: ‘default’ or ‘embeddings’
Remove headers/footers from documents
Example Usage
Basic File Upload
With OCR Processing
Extract for AI Embeddings
Page-Based Extraction
Response Formats
Standard Processing
Success status of the upload and processing
Extracted text or data URL
Detected file type (pdf, docx, image, etc.)
Error message (if any)
Embeddings Mode
Unique identifier for the request
Object type (e.g., ‘chunks’)
Unix timestamp when the request was created
Example Response (Standard)
Example Response (Embeddings Mode)
Special Features
Error Handling
If an error occurs, the API returns a JSON object with the error message:
Common errors include:
- File size limit exceeded
- Unsupported file type
- OCR service unavailable
- Processing timeout
Integration with AI Services
The extracted content can be used directly with Taam Cloud’s AI models:
For large documents, use the embeddings mode and work with the chunked output for better AI processing.
Authorizations
Enter your API key prefixed with 'Bearer '
Body
File to upload
Enable OCR for image processing
true
, false
Enable vision-based processing for images
true
, false
Save file to configured storage
true
, false
Extract only text content
true
, false
Process with vision only
true
, false
Return page-based structured response
true
, false
Extract only images from documents
true
, false
Extraction mode: 'default' or 'embeddings'
default
, embeddings
Remove headers/footers from documents
true
, false
Was this page helpful?