Interface: AnthropicModelOptions
@providerprotocol/ai / anthropic / AnthropicModelOptions
Interface: AnthropicModelOptions
Section titled “Interface: AnthropicModelOptions”Defined in: src/providers/anthropic/index.ts:29
Options for configuring an Anthropic model reference.
Example
Section titled “Example”import { anthropic, betas } from 'provider-protocol/anthropic';
// Enable structured outputs betaconst model = anthropic('claude-sonnet-4-20250514', { betas: [betas.structuredOutputs],});
// Enable multiple betasconst modelWithBetas = anthropic('claude-sonnet-4-20250514', { betas: [betas.structuredOutputs, betas.interleavedThinking],});
// Use string values for new/unlisted betasconst modelWithCustomBeta = anthropic('claude-sonnet-4-20250514', { betas: ['new-beta-2025-12-01'],});Properties
Section titled “Properties”betas?
Section titled “betas?”
optionalbetas:string[]
Defined in: src/providers/anthropic/index.ts:36
Beta features to enable for this model.
Use values from the betas export or pass arbitrary strings for new betas.
Multiple betas are combined into a comma-separated anthropic-beta header.