MessagesOutputConfig - TypeScript SDK

MessagesOutputConfig type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Configuration for controlling output behavior. Supports the effort parameter and structured output format.

Example Usage

1import { MessagesOutputConfig } from "@openrouter/sdk/models";
2
3let value: MessagesOutputConfig = {};

Fields

FieldTypeRequiredDescriptionExample
effortmodels.MessagesOutputConfigEffortHow much effort the model should put into its response. Higher effort levels may result in more thorough analysis but take longer. Valid values are low, medium, high, xhigh, or max.medium
formatmodels.MessagesOutputConfigFormatA schema to specify Claude’s output format in responses. See structured outputs.
taskBudgetmodels.TaskBudgetTask 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.{"total": 400000,"type": "tokens"}