PDF Vector

Image Extraction API for developers

Extract structured data from any image using AI and JSON Schema. Perfect for receipts, forms, invoices, screenshots, and any visual data that needs to be digitized.

  • Schema-Based ExtractionDefine your data structure with JSON Schema and extract consistently from any image
  • Visual + OCR IntelligenceAdvanced AI combines OCR with visual understanding to extract data accurately
  • Type-Safe ResultsGet validated, structured JSON output ready for your database or application

Easy to use APIs

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

Image Extract

API Docs
import { PDFVector } from "pdfvector";

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

// From URL
const results = await client.extract({
    url: "https://example.com/invoice.jpg",
    prompt: "Extract all invoice details",
    schema: {
      type: "object",
      properties: {
        invoiceNumber: { type: "string" },
        date: { type: "string" },
        totalAmount: { type: "number" }
      }
  }
  });

// From file
import { readFile } from "fs/promises";
const results = await client.extract({
    data: await readFile("document.jpg"),
    contentType: "image/jpeg",
    prompt: "Extract all invoice details",
    schema: {
      type: "object",
      properties: {
        invoiceNumber: { type: "string" },
        date: { type: "string" },
        totalAmount: { 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

Structured Data from Images

Turn images into structured, validated data. Define your schema once and extract consistently from screenshots, photos, scanned documents, and more.

Get started

Schema-Driven Extraction

Define your data structure with JSON Schema. Extract exactly what you need with type-safe, validated results every time.

Visual AI Extraction

Combines OCR with visual understanding to extract data from any image format, handling text, tables, forms, and visual elements.

Application-Ready Data

Receive clean, validated JSON that's ready for your database or application. No manual processing or cleanup required.

Universal Image Support

Extract from receipts, invoices, screenshots, forms, ID cards, and more. Handles PNG, JPEG, GIF, BMP, TIFF with high accuracy.

Example Output

Real examples of structured data extracted from images

Original Document

With invoice

Output

AI-generated answer to your question

Question

Extract all invoice details

Schema

{
  "type": "object",
  "properties": {
    "date": {
      "type": "string"
    },
    "totalAmount": {
      "type": "number"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "quantity": {
            "type": "number"
          },
          "price": {
            "type": "number"
          }
        }
      }
    }
  },
  "required": [
    "date",
    "totalAmount"
  ],
  "additionalProperties": false
}

Answer

{
  "data": {
    "date": "11/02/2019",
    "totalAmount": 154.06,
    "items": [
      {
        "name": "Front and rear brake cables",
        "quantity": 1,
        "price": 100
      },
      {
        "name": "New set of pedal arms",
        "quantity": 2,
        "price": 15
      },
      {
        "name": "Labor 3hrs",
        "quantity": 3,
        "price": 5
      }
    ]
  },
  "pageCount": 1,
  "creditCount": 3
}

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 Extract Structured Data from Images?

Transform images into structured data with our powerful extraction API. Define your schema once, extract data from any image format consistently.

No setup fees • Integrate in minutes • Cancel anytime

Frequently asked questions