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 = {
  fileId: "file-abc123",
  index: 0,
  type: "file_path",
};

Fields

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