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

Example Usage

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

let value: URLCitation = {
  type: "url_citation",
  url: "https://openrouter.ai/docs",
  title: "OpenRouter Documentation",
  startIndex: 0,
  endIndex: 42,
};

Fields

FieldTypeRequiredDescription
type”url_citation”:heavy_check_mark:N/A
urlstring:heavy_check_mark:N/A
titlestring:heavy_check_mark:N/A
startIndexnumber:heavy_check_mark:N/A
endIndexnumber:heavy_check_mark:N/A