Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
A schema to specify Claude’s output format in responses. See structured outputs.

Example Usage

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

let value: MessagesOutputConfigFormat = {
  schema: {},
  type: "json_schema",
};

Fields

FieldTypeRequiredDescription
schemaRecord<string, *any*>:heavy_check_mark:N/A
typemodels.MessagesOutputConfigTypeJSONSchema:heavy_check_mark:N/A