Extraction models 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.
ScaleDown 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.
Extraction is currently available through the AI SDK only. With
Each key in
To extract from a PDF or image, pass it as a file part in
Extraction requests appear in AI Gateway logs and spend tracking. See the extraction quickstart for setup and authentication.
Read more
Continue reading...
ScaleDown 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.
Extraction 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:Each 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.To extract from a PDF or image, pass it as a file part in
state:Extraction requests appear in AI Gateway logs and spend tracking. See the extraction quickstart for setup and authentication.
Read more
Continue reading...