PDF Vector

Invoice Data Extraction API for developers

Extract structured data from invoices, receipts, and financial documents using AI. Define your JSON schema and get perfectly formatted data.

  • Custom JSON SchemaDefine any data structure you need - the AI extracts information to match your exact schema
  • Multiple Format SupportExtract data from PDFs, Word documents (DOCX), and image files (PNG, JPG) with consistent accuracy
  • Simple IntegrationClean REST API and TypeScript SDK for easy integration into any application

Easy to use APIs

Use our simple APIs directly or our TypeScript SDK with just a few lines of code.

Invoice Extract

API Docs
import { PDFVector } from "pdfvector";

const client = new PDFVector({
  apiKey: "pdfvector_xxxxxxx"
});

// From URL
const results = await client.invoiceExtract({
  url: "https://example.com/invoice.pdf",
  prompt: "Extract all invoice details",
  schema: {
    type: "object",
    properties: {
      invoiceNumber: { type: "string" },
      date: { type: "string" },
      totalAmount: { type: "number" },
      items: {
        type: "array",
        items: {
          type: "object",
          properties: {
            description: { type: "string" },
            quantity: { type: "number" },
            unitPrice: { type: "number" }
          }
        }
      }
    }
  }
});

// From file
import { readFile } from "fs/promises";
const results = await client.invoiceExtract({
  data: await readFile("invoice.pdf"),
  contentType: "application/pdf",
  prompt: "Extract all invoice details",
  schema: {
    type: "object",
    properties: {
      invoiceNumber: { type: "string" },
      date: { type: "string" },
      totalAmount: { type: "number" },
      items: {
        type: "array",
        items: {
          type: "object",
          properties: {
            description: { type: "string" },
            quantity: { type: "number" },
            unitPrice: { type: "number" }
          }
        }
      }
    }
  }
});

What people are saying

See how PDF Vector is helping teams improve their document processing workflows

Abdo El-Mobayad

Can't recommend PDF Vector enough! It boosts your AI workflow accuracy to 100% while dropping your costs! Especially if you're a T4 Org in the $150/m spend range!

Abdo El-Mobayad

Trent

Gotta give a shoutout to PDF Vector team for helping me set up PDF Vector for a project. They even delivered on a feature request before I purchased. Incredible customer service. 👏

Trent

Praneeth Pike

Been implementing RAG and changing a lot of things under the hood for @rabbitholesai, came across PDF Vector and it was a huge time saver. I got a document parsing solution for the rag pipeline within minutes! one less thing to worry about

Praneeth Pike

Extract Structured Data from Invoices

Extract structured data from invoices using AI. Define your own JSON schema and get perfectly formatted data that matches your exact requirements.

Get started

AI-Powered Extraction

Advanced AI understands invoice layouts, line items, and financial data to extract information accurately into your custom schema.

Custom JSON Schema

Define any JSON schema structure you need. Extract nested objects, arrays, specific fields, or complex financial data structures.

Database-Ready Output

Get structured data that's ready to insert into your database, process in your application, or integrate with your existing systems.

Financial Document Expertise

Specialized for invoices, receipts, expense reports, and bank statements. Handles tables, line items, totals, and complex financial layouts.

Example Output

Real examples of structured data extracted from invoices and financial documents based on custom JSON schemas

Original Document

Invoice

Output

AI-generated answer to your question

Question

Extract all invoice details

Schema

{
  "type": "object",
  "properties": {
    "invoiceNumber": {
      "type": "string"
    },
    "totalAmount": {
      "type": "number"
    },
    "invoiceDate": {
      "type": "string"
    }
  }
}

Answer

{
  "data": {
    "invoiceNumber": "0216-00047814",
    "totalAmount": 123155.08,
    "invoiceDate": "17/9/2025"
  },
  "pageCount": 1,
  "creditCount": 6
}

One subscription, all APIs

Start for free, then scale as you grow. No hidden fees.

Save one month

Free

$0

Credit Card Required

Perfect for testing and small projects

  • Access to all APIs
  • 100 credits
Subscribe to Free

Basic

$23/month

$275 billed annually

Great for personal projects and small businesses

  • Access to all APIs
  • 3,000 credits
Subscribe to Basic
Most Popular

Pro

$89/month

$1067 billed annually

Most popular plan for growing businesses

  • Access to all APIs
  • 100,000 credits
Subscribe to Pro

Enterprise

$457/month

$5489 billed annually

For large-scale applications and enterprises

  • Access to all APIs
  • 500,000 credits
Subscribe to Enterprise

Ready to Structure Your Invoice Data?

Transform unstructured invoices into structured data for your applications. Define your schema and get perfectly formatted JSON in minutes.

No setup fees • Integrate in minutes • Cancel anytime

Everything you need for document processing

Transform any document into clean text. Extract structured data from PDFs, Word files, Excel spreadsheets, and images with precision and speed. Also search 5M+ academic papers and fetch papers by paper IDs.

Get started for free today

No setup fees • Integrate in minutes • Cancel anytime

Frequently asked questions