id: anthropic
npm: @ai-sdk/anthropic
env: ANTHROPIC_API_KEY
Models
Claude Fable 5
claude-fable-5in $10.00/M
out $50.00/M
cache read $1.00/M
cache write $12.50/M
ctx: 1,000,000
max out: 128,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Claude Haiku 3
claude-3-haiku-20240307in $0.25/M
out $1.25/M
cache read $0.03/M
cache write $0.30/M
ctx: 200,000
max out: 4,096
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Claude Haiku 3.5
claude-3-5-haiku-20241022in $0.80/M
out $4.00/M
cache read $0.08/M
cache write $1.00/M
ctx: 200,000
max out: 8,192
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Claude Haiku 3.5 (latest)
claude-3-5-haiku-latestin $0.80/M
out $4.00/M
cache read $0.08/M
cache write $1.00/M
ctx: 200,000
max out: 8,192
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Claude Haiku 4.5
claude-haiku-4-5-20251001in $1.00/M
out $5.00/M
cache read $0.10/M
cache write $1.25/M
ctx: 200,000
max out: 64,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Claude Haiku 4.5 (latest)
claude-haiku-4-5in $1.00/M
out $5.00/M
cache read $0.10/M
cache write $1.25/M
ctx: 200,000
max out: 64,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Claude Opus 3
claude-3-opus-20240229in $15.00/M
out $75.00/M
cache read $1.50/M
cache write $18.75/M
ctx: 200,000
max out: 4,096
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Claude Opus 4
claude-opus-4-20250514in $15.00/M
out $75.00/M
cache read $1.50/M
cache write $18.75/M
ctx: 200,000
max out: 32,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Claude Opus 4 (latest)
claude-opus-4-0in $15.00/M
out $75.00/M
cache read $1.50/M
cache write $18.75/M
ctx: 200,000
max out: 32,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Claude Opus 4.1
claude-opus-4-1-20250805in $15.00/M
out $75.00/M
cache read $1.50/M
cache write $18.75/M
ctx: 200,000
max out: 32,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Claude Opus 4.1 (latest)
claude-opus-4-1in $15.00/M
out $75.00/M
cache read $1.50/M
cache write $18.75/M
ctx: 200,000
max out: 32,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Claude Opus 4.5
claude-opus-4-5-20251101in $5.00/M
out $25.00/M
cache read $0.50/M
cache write $6.25/M
ctx: 200,000
max out: 64,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Claude Opus 4.5 (latest)
claude-opus-4-5in $5.00/M
out $25.00/M
cache read $0.50/M
cache write $6.25/M
ctx: 200,000
max out: 64,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Claude Opus 4.6
claude-opus-4-6in $5.00/M
out $25.00/M
cache read $0.50/M
cache write $6.25/M
ctx: 1,000,000
max out: 128,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Claude Opus 4.7
claude-opus-4-7in $5.00/M
out $25.00/M
cache read $0.50/M
cache write $6.25/M
ctx: 1,000,000
max out: 128,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Claude Opus 4.8
claude-opus-4-8in $5.00/M
out $25.00/M
cache read $0.50/M
cache write $6.25/M
ctx: 1,000,000
max out: 128,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Claude Sonnet 3
claude-3-sonnet-20240229in $3.00/M
out $15.00/M
cache read $0.30/M
cache write $0.30/M
ctx: 200,000
max out: 4,096
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Claude Sonnet 3.5
claude-3-5-sonnet-20240620in $3.00/M
out $15.00/M
cache read $0.30/M
cache write $3.75/M
ctx: 200,000
max out: 8,192
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Claude Sonnet 3.5 v2
claude-3-5-sonnet-20241022in $3.00/M
out $15.00/M
cache read $0.30/M
cache write $3.75/M
ctx: 200,000
max out: 8,192
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Claude Sonnet 3.7
claude-3-7-sonnet-20250219in $3.00/M
out $15.00/M
cache read $0.30/M
cache write $3.75/M
ctx: 200,000
max out: 64,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Claude Sonnet 4
claude-sonnet-4-20250514in $3.00/M
out $15.00/M
cache read $0.30/M
cache write $3.75/M
ctx: 200,000
max out: 64,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Claude Sonnet 4 (latest)
claude-sonnet-4-0in $3.00/M
out $15.00/M
cache read $0.30/M
cache write $3.75/M
ctx: 200,000
max out: 64,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Claude Sonnet 4.5
claude-sonnet-4-5-20250929in $3.00/M
out $15.00/M
cache read $0.30/M
cache write $3.75/M
ctx: 200,000
max out: 64,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Claude Sonnet 4.5 (latest)
claude-sonnet-4-5in $3.00/M
out $15.00/M
cache read $0.30/M
cache write $3.75/M
ctx: 200,000
max out: 64,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Claude Sonnet 4.6
claude-sonnet-4-6in $3.00/M
out $15.00/M
cache read $0.30/M
cache write $3.75/M
ctx: 1,000,000
max out: 64,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights