ContentPartInputFile - TypeScript SDK

ContentPartInputFile type definition

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

Example Usage

1import { ContentPartInputFile } from "@openrouter/sdk/models";
2
3let value: ContentPartInputFile = {
4 inputFile: {
5 data: "data:application/pdf;base64,JVBERi0xLjQKJeLjz9MKMyAw...",
6 },
7 type: "input_file",
8};

Fields

FieldTypeRequiredDescriptionExample
inputFilemodels.MultimodalMedia✔️N/A{"data": "data:audio/wav;base64,UklGRiQAAABXQVZFZm10IBAAAAA...","format": "wav"}
type”input_file”✔️N/A