System Requirements

To run Documind, your system should meet the following requirements:


Install the Package

To install Documind, run the following command:

npm install documind

Set Up Environment Variables

Create a .env file and configure your environment variables based on the model you want to use. Here’s a list of supported models:

ProviderModelsVariable
OpenAIgpt-4o-mini
gpt-4o
OPENAI_API_KEY
Googlegemini-2.0-flash-001
gemini-2.0-flash-lite-preview-02-05
gemini-1.5-flash
gemini-1.5-flash-8b
gemini-1.5-pro
GEMINI_API_KEY
Ollamallama3.2-visionBASE_URL

Usage

Here’s an example of how to use Documind:

If you don’t set a model, gpt-4o-mini will be used by default.
import { extract } from 'documind';

const result = await extract({
  file: 'https://example.com/bank_statement.pdf',
  model: 'gpt-4o-mini',
  schema: []
});

console.log(result);