Tools
Image to text API
Extract text from any image. Photos, screenshots, scanned documents, handwritten notes. One API call, structured text back.
Try it below:
Extract text from images
Upload an image or submit a URL, get the text back.
What is Exabase's image to text API?
Submit an image to the Exabase Extract API and get the text back. The API runs OCR on the image and returns the extracted text as a single string and as structured chunks you can search and index. JPEG, PNG, WebP, TIFF, BMP, and other major formats are supported.
The same POST /v2/extract endpoint accepts both file uploads and URLs pointing to hosted images. OCR runs on Exabase's infrastructure. No Tesseract installation, no OpenCV, no preprocessing pipeline on your end.
What you get back
The response includes the full OCR text in extraction.media.ocr and the text split into structured chunks. Each chunk has a sequence number and the extracted text. You also get image dimensions (width and height), MIME type, file size, and a CDN-hosted thumbnail. The API reference has the complete response schema.
One multi-modal API
The same POST /v2/extract endpoint handles every content type Exabase supports. For images, it runs OCR and returns the extracted text. For PDFs, it returns text chunks with page numbers and (for recognised document types) structured field extraction. For audio and video, it generates full transcripts with timestamps. For web pages, it renders JavaScript and extracts the content.
The submission flow is identical across all types: one endpoint, one SDK method, one webhook configuration. You learn the pattern once and use it for everything. The Extract docs cover each content type in detail.
What you can build with it
Extract text from photos of documents, receipts, whiteboards, labels, and signs. Build a searchable archive of screenshots where every word is indexed. Process business cards and pull out contact details. Digitise handwritten notes so they're searchable alongside typed documents.
Store extracted images as Resources in a Base and the OCR text becomes searchable through Deep Search at the chunk level. Feed the text into a RAG pipeline so your agent can reference what's in the image. Workers can process new images as they arrive, keeping your text index current without manual work.
Beyond OCR
The Extract API returns more than the text in the image. You get image dimensions, MIME type, file size, a CDN-hosted thumbnail, and searchable chunks. Store the output as a Resource and it's searchable through Deep Search immediately. Extract key details into Memory so your agent retains what it read between sessions. The Submitting Jobs guide at https://exabase.io/docs/developer-guide/extraction/submitting-jobs walks through the full flow.
How do I use it?
Get your API key
Free, no credit card:
Sign up at exabase.io and copy your API key from the dashboard.
Submit an image
Using the SDK (Node.js):
Get the result
Poll the job until state reaches completed, or skip polling entirely with webhooks.
One API call. No Tesseract, no OpenCV, no preprocessing.
Why Exabase
Works with other Exabase features
Use cases
FAQs
What is Exabase?
Exabase is infrastructure for AI agents. It gives your agents memory, versioned file storage, AI deep search, and context automation through a set of APIs. Store what your agent learns, search inside any content type, and keep knowledge bases current automatically. Built for production use. Give your agent precise context and cut your token spend by up to 81%.
Who uses Exabase?
Developers and teams building AI agents, copilots, and RAG applications. If your agent needs to remember things between sessions, store and retrieve files, search across documents and media, or stay up to date without manual maintenance, Exabase handles that infrastructure so you can focus on your product.
How accurate is the OCR?
Accuracy depends on image quality, text size, contrast, and orientation. Clean photos of printed or typed text produce the most reliable results. Handwriting recognition works but accuracy varies with legibility. For best results, ensure the text in the image is reasonably upright and legible.
What image formats are supported?
JPEG, PNG, WebP, TIFF, BMP, and other major image formats. The API auto-detects the content type and processes accordingly.
Does it handle rotated or skewed text?
The OCR engine handles common orientations and moderate skew. For best results, images with text that's roughly upright will produce the most accurate output.
What if the image has no text?
The API still returns image metadata (dimensions, MIME type, file size, thumbnail). The OCR field will be empty and chunk count will be zero.
Does it handle handwriting?
Yes, with caveats. Printed and typed text is extracted reliably. Handwriting recognition works but accuracy depends on legibility. Neat handwriting on a clean background produces the best results.
Can I submit a URL instead of uploading a file?
Yes. Pass a url field in the request body pointing to a publicly accessible image. Exabase fetches and processes it.
Do I have to poll for results?
No. You can configure a webhook URL and Exabase will POST the full result to your server when processing completes. The webhooks guide covers setup.
What happens if extraction fails?
The job state moves to failed. You can call the reprocess endpoint to retry without re-uploading the original file.
How long are files retained?
Stored files are retained for 1 day from job creation, then permanently deleted. Download or copy anything you need before the retention window expires.
Can I use the extracted text with other Exabase features?
Yes. Store extracted images as a Resource in a Base and the OCR text becomes searchable through Deep Search. Extract key facts into Memory so your agent retains what it read. Workers can re-extract updated images on a schedule.
How is this different from the Image to JSON tool?
The Image to JSON page covers the full extraction response: metadata, dimensions, thumbnail, OCR text, and chunks. Image to Text focuses specifically on the OCR output. Same underlying API, different emphasis.
Is there an SDK?
Yes. The @exabase/sdk package for Node.js/TypeScript handles file streaming, job polling, and chunk retrieval. Install with npm install @exabase/sdk. Or call the REST API directly from any language.
What other content types does Extract support?
PDFs, audio files (with transcription), video files (with transcription), web pages, and documents. The same POST /v2/extract endpoint handles all of them. See the PDF to JSON, Audio Transcription, Video Transcription, and Website to JSON tool pages.