AI Today

📄 Vercel AI Gateway adds extraction models: ScaleDown Extract-1 pulls named fields from text, images and PDFs

· 3 min

In brief


Vercel has added extraction models to its AI Gateway. Instead of free text, an extraction model finds specific details in the content you give it, such as an invoice number or contact names, and returns each as its own field. The first model is ScaleDown Extract-1, which reads text, images and PDFs and is meant for records such as invoices and contracts. You define the fields and say what each should contain; a field that is not found comes back as null. Matches carry a confidence score between 0 and 1, including each item of a list, so uncertain results can be flagged for review. Extraction is currently available through the AI SDK only, from version 7.0.176, using the function experimental_extract. 🧾


This is a changelog entry from Vercel, written by Bruce Liu, dated 23 November 2026, and the page is the source for everything below.

**How a call looks.** In the AI SDK, with version 7.0.176 or later, you import experimental_extract from the ai package and use the model ID scaledown/extract-1. You pass the content as state and describe the fields you want. Each field has a type, either text for a single value or list with items of type text for several, and an instruction in plain words, such as "The invoice number" or "Contact names". The page's example takes the line "Invoice INV-2041 from Acme Corp. Contacts: Ana, Bo." and returns the invoice number INV-2041 and the contacts Ana and Bo, each available under result.answers with a value.

**PDFs and images.** For a PDF or an image you pass the file as a file part in state, read from disk for example. The second example on the page asks for the vendor that issued an invoice, the total amount due and the line items. Extract-1 extracts text values or lists of text values; the page does not mention other data types.

**Confidence and positions.** Because a model can be wrong, every match comes with a score from 0 to 1, and list items are scored individually. A developer can use those scores to send low-confidence results to a person for review. For text input, the model can also return character offsets, which show where in the source text a match appears. When a field is missing from the content, its value is null instead of a guess.

**Operations.** Extraction requests show up in AI Gateway logs and spend tracking like other requests, and the page points to an extraction quickstart for setup and authentication. The gateway is Vercel's service for reaching several model providers through one interface; the page does not give a price for Extract-1 and says nothing about languages or file size limits, so those are worth checking in the [Vercel documentation](https://vercel.com/docs) before relying on it. It also marks the function as experimental, so its name and shape could change.

Sources

Open in the interactive reader →

This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources. Imprint, privacy policy and terms of service