Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Stop once cumulative cost across the loop exceeds this dollar threshold.

Example Usage

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

let value: StopServerToolsWhenMaxCost = {
  maxCostInDollars: 7287.97,
  type: "max_cost",
};

Fields

FieldTypeRequiredDescription
maxCostInDollarsnumber:heavy_check_mark:N/A
type”max_cost”:heavy_check_mark:N/A