AI Gateway now supports extraction models
Vercel added extraction models to AI Gateway, starting with ScaleDown Extract-1, which pulls typed fields from text, images and PDFs via AI SDK 7.0.176.
By Dillip Chowdary • Nov 28, 2026 • Source: Vercel Blog

At a glance
- Product
- ScaleDown Extract-1 on Vercel AI Gateway
- Model ID
- scaledown/extract-1
- SDK
- ai 7.0.176 or later, experimental_extract
- Inputs
- Text, images and PDF files
- Field types
- text, and list of text
- Price
- $0.05 per 1M input tokens
In this post
Vercel has added extraction models to AI Gateway, a new model class that finds specific details in supplied content, such as an invoice number or a list of contact names, and returns each one as a separate field that application code can use directly. According to Vercel Blog's report, ScaleDown Extract-1 is the first extraction model available on the gateway.
This piece covers what Extract-1 can pull out of text, images and PDFs, the AI SDK call that drives it, the shape of the answers it returns, and how requests show up in billing and logs. It is written for developers who process invoices, contracts and other business records and want typed values back instead of free-form model output.
01ScaleDown Extract-1 on AI Gateway
Extract-1, listed under the model ID scaledown/extract-1, extracts text values or lists of text values from text, images and PDF files. Vercel pitches it for invoice processing, contract analysis and record parsing, where a program needs a known set of fields rather than a paragraph of prose.
The AI Gateway model page lists Extract-1 at $0.05 per 1 million input tokens, with a context window of 1,000,000 tokens. Vercel's extraction documentation describes the difference from a chat model plainly: an extraction model returns one structured answer per field instead of free-form text.
Developers can find other extraction models as they arrive through the Extraction filter on the AI Gateway Models page. For now, Extract-1 is the only one Vercel names.
02experimental_extract in AI SDK 7.0.176
Extraction is available through the AI SDK only. It requires the ai package at version 7.0.176 or later, and the documentation states that it is not supported through the gateway's OpenAI-compatible or Anthropic-compatible endpoints.
The function is exported as experimental_extract. A call takes three things: the model ID, a state value holding the content to search, and a fields object that names each value wanted, its type and a plain-language instruction. Vercel's example extracts an invoice number and contact names from one sentence.
```ts
import { experimental_extract as extract } from 'ai';In that example, result.answers.invoiceNumber.value returns 'INV-2041' and result.answers.contacts.value returns the list ['Ana', 'Bo']. Teams using an AI Gateway provider instance instead pass the model as gateway.extractionModel('scaledown/extract-1').
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
03Answers, null values and confidence scores
Each key in fields has a matching entry in result.answers. When the content does not contain a field, that field's value is null, so code can branch on a missing invoice number instead of parsing a sentence that says none was found.
Extract-1 returns confidence scores from 0 to 1 for its matches, including a score for each individual item in a list. Vercel suggests using those scores to flag uncertain results for human review, so a low-scoring vendor name or total can go to a person instead of straight into a ledger.
For text input, the model can also return character offsets showing where each match appears. In the documented response, the invoice number carries a source entry with part 0, start 8 and end 16, and each contact name has its own offsets.
04PDF and image extraction as file parts
To extract from a PDF or an image, developers pass the document as a file part inside state rather than as a string. Vercel's second example reads ./invoice.pdf from disk with readFile, sets the media type to application/pdf, and asks for three fields.
Those fields are vendor, described as the company that issued the invoice; total, the total amount due; and lineItems, a list of text values for the line items. The supported field types for Extract-1 are text, and list with items set to text.
The state parameter accepts a string, an object or an array of parts. That is the same structured-state format AI Gateway uses for its decision models, so code that already builds state for one can reuse it for the other.
05Quickstart, gateway logs and spend tracking
Extraction requests appear in AI Gateway logs and spend tracking alongside other model traffic, so teams can track what extraction calls cost. Vercel's extraction quickstart walks through a first request in Node.js 22.18 or later and needs a team with available AI Gateway Credits.
- Set the key Export AI_GATEWAY_API_KEY in the current shell, creating a key in the dashboard if needed.
- Install the SDK Run pnpm add ai@latest to get version 7.0.176 or later.
- Write the script Create index.mts that calls experimental_extract with scaledown/extract-1 and an invoiceNumber field.
- Run it Execute node index.mts and print result.answers.
Note: The function ships under an experimental_ prefix and works only through the AI SDK, so the API surface may change and the OpenAI-compatible and Anthropic-compatible endpoints cannot call it.
Frequently asked questions
What is ScaleDown Extract-1 on Vercel AI Gateway?
It is the first extraction model on AI Gateway. It pulls text values or lists of text values, such as invoice numbers or contact names, out of text, images and PDFs and returns them as separate fields.
Which AI SDK version supports experimental_extract?
Extraction requires the ai package at version 7.0.176 or later. It is available through the AI SDK only, not the OpenAI-compatible or Anthropic-compatible endpoints.
What happens when Extract-1 cannot find a field?
Every key in fields has an entry in result.answers, and a field that is not found has a value of null.
Does Extract-1 return confidence scores?
Yes. It returns scores from 0 to 1 for matches, including individual list items, and for text input it can return character offsets showing where each match appears.
How much does Extract-1 cost on AI Gateway?
The AI Gateway model page lists it at $0.05 per 1 million input tokens, and extraction requests appear in gateway logs and spend tracking.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Three new iPhones will launch early next year, here’s what’s coming
Read →
100,000 Potentially Impacted by Colorado Data Breach
Read →
Product(RED) HomePod mini 2 seemingly surfaces ahead of rumored announcement [U]
Read →
WhatsApp announces travel eSIMs, tests view-once texts and a cleaner interface
Read →
Today's Tech Pulse briefing
Full briefing →
Advertisement