The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { FileParserPlugin } from "@openrouter/sdk/models";
let value: FileParserPlugin = {
id: "file-parser",
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
enabled | boolean | :heavy_minus_sign: | Set to false to disable the file-parser plugin for this request. Defaults to true. | |
id | ”file-parser” | :heavy_check_mark: | N/A | |
pdf | models.PDFParserOptions | :heavy_minus_sign: | Options for PDF parsing. | {"engine": "cloudflare-ai"} |