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

Example Usage

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

let value: FormatGrammar = {
  definition: "<value>",
  syntax: "lark",
  type: "grammar",
};

Fields

FieldTypeRequiredDescription
definitionstring:heavy_check_mark:N/A
syntaxmodels.Syntax:heavy_check_mark:N/A
type”grammar”:heavy_check_mark:N/A