{"slug": "ai-gateway-now-supports-extraction-models", "title": "AI Gateway now supports extraction models", "summary": "Vercel's AI Gateway added support for extraction models, with ScaleDown Extract-1 as the first available model, pulling specific fields such as invoice numbers or contact names from text, images and PDFs and returning them as separate fields for code to use. Extraction is available only through the AI SDK, requiring ai@7.0.176 or later and the model ID scaledown/extract-1 via experimental_extract; Extract-1 returns confidence scores from 0 to 1 for matches, including individual list items, and character offsets for text input, with missing fields returned as null. Extraction requests appear in AI Gateway logs and spend tracking.", "body_md": "[Extraction models](https://vercel.com/docs/ai-gateway/modalities/extraction) are now on AI Gateway. They find specific details in the content you provide, such as an invoice number or contact names, and return them as separate fields your code can use.\n\n[ScaleDown Extract-1](https://vercel.com/ai-gateway/models/extract-1) is the first available extraction model. It extracts text values or lists of text values from text, images, and PDFs. You can use it to process invoices, contracts, and other records.\n\nExtraction is currently available through the AI SDK only. With `ai@7.0.176` or later, use `experimental_extract` and the model ID `scaledown/extract-1`:\n\nEach key in `fields` has an entry in `result.answers`. If a field is not found, its `value` is `null`. Extract-1 returns confidence scores from 0 to 1 for matches, including individual list items, so you can flag uncertain results for review. For text input, it can also return character offsets showing where a match appears.\n\nTo extract from a PDF or image, pass it as a file part in `state`:\n\nExtraction requests appear in [AI Gateway logs](https://vercel.com/docs/ai-gateway/observability-and-spend/logs) and spend tracking. See the [extraction quickstart](https://vercel.com/docs/ai-gateway/getting-started/extraction) for setup and authentication.", "url": "https://wpnews.pro/news/ai-gateway-now-supports-extraction-models", "canonical_source": "https://vercel.com/changelog/ai-gateway-now-supports-extraction-models", "published_at": "2026-11-23 05:00:00+00:00", "updated_at": "2026-11-23 23:13:26.675433+00:00", "lang": "en", "topics": ["ai-products", "developer-tools", "ai-tools", "large-language-models"], "entities": ["Vercel", "AI Gateway", "ScaleDown Extract-1", "AI SDK"], "also_reported_by": [], "takeaway": "With ai@7.0.176 or later, call experimental_extract with model ID scaledown/extract-1 to pull named fields from text, images and PDFs, and use the returned 0-to-1 confidence scores to flag uncertain matches for review.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/ai-gateway-now-supports-extraction-models", "markdown": "https://wpnews.pro/news/ai-gateway-now-supports-extraction-models.md", "text": "https://wpnews.pro/news/ai-gateway-now-supports-extraction-models.txt", "jsonld": "https://wpnews.pro/news/ai-gateway-now-supports-extraction-models.jsonld"}}