Vercel's AI Gateway adds a model built for document extraction
ScaleDown Extract-1 pulls typed fields, like an invoice number or a list of contacts, out of text, images and PDFs, with a confidence score attached to each one.
Vercel’s AI Gateway now supports extraction models, a new category alongside chat and image generation. The first one available is ScaleDown Extract-1, which takes text, images or PDFs and a set of fields you describe, then returns each field as a typed value rather than a blob of text you have to parse yourself.
It ships through the AI SDK’s new experimental_extract function, available from ai@7.0.176:
import { experimental_extract as extract } from 'ai';
const result = await extract({
model: 'scaledown/extract-1',
state: 'Invoice INV-2041 from Acme Corp. Contacts: Ana, Bo.',
fields: {
invoiceNumber: { type: 'text', instructions: 'The invoice number' },
contacts: { type: 'list', items: 'text', instructions: 'Contact names' },
},
});
Each field comes back with a confidence score from 0 to 1, including for individual items in a list, and text input also gets character offsets showing where the match was found. A field that cannot be found returns null rather than a hallucinated guess. Vercel points at invoices, contracts and similar records as the intended use. Extraction calls show up in AI Gateway logs and spend tracking like any other model call.
Why it matters: this replaces a pattern a lot of people already hand-roll, prompting a chat model to return JSON and hoping the keys and types hold up across a thousand documents. A model built to extract fields, with per-field confidence, gives you something to check before you trust the result, rather than a string you parse and pray over.