Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Task budget for an agentic turn. The model sees a countdown of remaining tokens and uses it to prioritize work and wind down gracefully. Advisory — does not enforce a hard cap.

Example Usage

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

let value: TaskBudget = {
  total: 400000,
  type: "tokens",
};

Fields

FieldTypeRequiredDescription
remainingnumber:heavy_minus_sign:N/A
totalnumber:heavy_check_mark:N/A
typemodels.TypeTokens:heavy_check_mark:N/A