id: perplexity-agent
npm: @ai-sdk/openai
env: PERPLEXITY_API_KEY
api: https://api.perplexity.ai/v1
Models
Claude Haiku 4.5
anthropic/claude-haiku-4-5in $1.00/M
out $5.00/M
cache read $0.10/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
anthropic/claude-opus-4-5in $5.00/M
out $25.00/M
cache read $0.50/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
anthropic/claude-opus-4-6in $5.00/M
out $25.00/M
cache read $0.50/M
ctx: 200,000
max out: 128,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Claude Opus 4.7
anthropic/claude-opus-4-7in $5.00/M
out $25.00/M
cache read $0.50/M
ctx: 1,000,000
max out: 128,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Claude Sonnet 4.5
anthropic/claude-sonnet-4-5in $3.00/M
out $15.00/M
cache read $0.30/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
anthropic/claude-sonnet-4-6in $3.00/M
out $15.00/M
cache read $0.30/M
ctx: 200,000
max out: 64,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Gemini 2.5 Flash
google/gemini-2.5-flashin $0.30/M
out $2.50/M
cache read $0.03/M
ctx: 1,048,576
max out: 65,536
in: text, image, audio, video, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Gemini 2.5 Pro
google/gemini-2.5-proin $1.25/M
out $10.00/M
cache read $0.13/M
ctx: 1,048,576
max out: 65,536
in: text, image, audio, video, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Gemini 3 Flash Preview
google/gemini-3-flash-previewin $0.50/M
out $3.00/M
cache read $0.05/M
ctx: 1,048,576
max out: 65,536
in: text, image, video, audio, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Gemini 3.1 Pro Preview
google/gemini-3.1-pro-previewin $2.00/M
out $12.00/M
cache read $0.20/M
ctx: 1,048,576
max out: 65,536
in: text, image, video, audio, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5 Mini
openai/gpt-5-miniin $0.25/M
out $2.00/M
cache read $0.03/M
ctx: 400,000
max out: 128,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5.1
openai/gpt-5.1in $1.25/M
out $10.00/M
cache read $0.13/M
ctx: 400,000
max out: 128,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5.2
openai/gpt-5.2in $1.75/M
out $14.00/M
cache read $0.17/M
ctx: 400,000
max out: 128,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5.4
openai/gpt-5.4in $2.50/M
out $15.00/M
cache read $0.25/M
ctx: 1,050,000
max out: 128,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5.5
openai/gpt-5.5in $5.00/M
out $30.00/M
cache read $0.50/M
ctx: 1,050,000
max out: 128,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Grok 4.1 Fast (Non-Reasoning)
xai/grok-4-1-fast-non-reasoningin $0.20/M
out $0.50/M
cache read $0.05/M
ctx: 2,000,000
max out: 30,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
Nemotron 3 Super 120B
nvidia/nemotron-3-super-120b-a12bin $0.25/M
out $2.50/M
ctx: 1,000,000
max out: 32,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
Sonar
perplexity/sonarin $0.25/M
out $2.50/M
cache read $0.06/M
ctx: 128,000
max out: 8,192
in: text
out: text
reasoning
tools
vision
structured
temp
open weights