Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
File content part for document processing

Example Usage

import { ChatContentFile } from "@openrouter/sdk/models";

let value: ChatContentFile = {
  file: {},
  type: "file",
};

Fields

FieldTypeRequiredDescription
filemodels.FileT:heavy_check_mark:N/A
type”file”:heavy_check_mark:N/A