FileParserPlugin - TypeScript SDK

FileParserPlugin type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

1import { FileParserPlugin } from "@openrouter/sdk/models";
2
3let value: FileParserPlugin = {
4 id: "file-parser",
5};

Fields

FieldTypeRequiredDescriptionExample
enabledbooleanSet to false to disable the file-parser plugin for this request. Defaults to true.
id”file-parser”✔️N/A
pdfmodels.PDFParserOptionsOptions for PDF parsing.{"engine": "cloudflare-ai"}