Skip to content

Interface: AnthropicModelOptions

@providerprotocol/ai


@providerprotocol/ai / anthropic / AnthropicModelOptions

Defined in: src/providers/anthropic/index.ts:29

Options for configuring an Anthropic model reference.

import { anthropic, betas } from 'provider-protocol/anthropic';
// Enable structured outputs beta
const model = anthropic('claude-sonnet-4-20250514', {
betas: [betas.structuredOutputs],
});
// Enable multiple betas
const modelWithBetas = anthropic('claude-sonnet-4-20250514', {
betas: [betas.structuredOutputs, betas.interleavedThinking],
});
// Use string values for new/unlisted betas
const modelWithCustomBeta = anthropic('claude-sonnet-4-20250514', {
betas: ['new-beta-2025-12-01'],
});

optional betas: 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.