Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

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

let value: FilePath = {
  type: "file_path",
  fileId: "file-xyz789",
  index: 0,
};

Fields

FieldTypeRequiredDescription
type”file_path”:heavy_check_mark:N/A
fileIdstring:heavy_check_mark:N/A
indexnumber:heavy_check_mark:N/A