id: opencode
npm: @ai-sdk/openai-compatible
env: OPENCODE_API_KEY
api: https://opencode.ai/zen/v1
Models
Big Pickle
big-picklein $0.00/M
out $0.00/M
cache read $0.00/M
cache write $0.00/M
ctx: 200,000
max out: 32,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
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.5
claude-3-5-haikuin $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 4.5
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 4.1
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
deprecated
Claude Opus 4.5
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 Opus 5
claude-opus-5in $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 4
claude-sonnet-4in $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
Claude Sonnet 4.5
claude-sonnet-4-5in $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
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
Claude Sonnet 5
claude-sonnet-5in $2.00/M
out $10.00/M
cache read $0.20/M
cache write $2.50/M
ctx: 1,000,000
max out: 128,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
DeepSeek V4 Flash
deepseek-v4-flashin $0.14/M
out $0.28/M
cache read $0.03/M
ctx: 1,000,000
max out: 384,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
DeepSeek V4 Flash Free
deepseek-v4-flash-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 200,000
max out: 128,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
DeepSeek V4 Pro
deepseek-v4-proin $1.74/M
out $3.84/M
cache read $0.14/M
ctx: 1,000,000
max out: 384,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
Gemini 3 Flash
gemini-3-flashin $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 Pro
gemini-3-proin $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
deprecated
Gemini 3.1 Pro Preview
gemini-3.1-proin $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
Gemini 3.5 Flash
gemini-3.5-flashin $1.50/M
out $9.00/M
cache read $0.15/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.5 Flash Lite
gemini-3.5-flash-litein $0.30/M
out $2.50/M
cache read $0.03/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.6 Flash
gemini-3.6-flashin $1.50/M
out $7.50/M
cache read $0.15/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.7 Flash
gemini-3.7-flashin $1.50/M
out $7.50/M
cache read $0.15/M
ctx: 1,048,576
max out: 65,536
in: text, image, video, audio, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
GLM-4.6
glm-4.6in $0.60/M
out $2.20/M
cache read $0.10/M
ctx: 204,800
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
GLM-4.7
glm-4.7in $0.60/M
out $2.20/M
cache read $0.10/M
ctx: 204,800
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
GLM-4.7 Free
glm-4.7-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 204,800
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
GLM-5
glm-5in $1.00/M
out $3.20/M
cache read $0.20/M
ctx: 204,800
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
GLM-5 Free
glm-5-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 204,800
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
GLM-5.1
glm-5.1in $1.40/M
out $4.40/M
cache read $0.26/M
ctx: 204,800
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
GLM-5.2
glm-5.2in $1.40/M
out $4.40/M
cache read $0.26/M
ctx: 1,000,000
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5
gpt-5in $1.07/M
out $8.50/M
cache read $0.11/M
ctx: 400,000
max out: 128,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5 Codex
gpt-5-codexin $1.07/M
out $8.50/M
cache read $0.11/M
ctx: 400,000
max out: 128,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5 Nano
gpt-5-nanoin $0.05/M
out $0.40/M
cache read $0.01/M
ctx: 400,000
max out: 128,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5.1
gpt-5.1in $1.07/M
out $8.50/M
cache read $0.11/M
ctx: 400,000
max out: 128,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5.1 Codex
gpt-5.1-codexin $1.07/M
out $8.50/M
cache read $0.11/M
ctx: 400,000
max out: 128,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5.1 Codex Max
gpt-5.1-codex-maxin $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.1 Codex Mini
gpt-5.1-codex-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.2
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.2 Codex
gpt-5.2-codexin $1.75/M
out $14.00/M
cache read $0.17/M
ctx: 400,000
max out: 128,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5.3 Codex
gpt-5.3-codexin $1.75/M
out $14.00/M
cache read $0.17/M
ctx: 400,000
max out: 128,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5.3 Codex Spark
gpt-5.3-codex-sparkin $1.75/M
out $14.00/M
cache read $0.17/M
ctx: 128,000
max out: 128,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5.4
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, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5.4 Mini
gpt-5.4-miniin $0.75/M
out $4.50/M
cache read $0.07/M
ctx: 400,000
max out: 128,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5.4 Nano
gpt-5.4-nanoin $0.20/M
out $1.25/M
cache read $0.02/M
ctx: 400,000
max out: 128,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5.4 Pro
gpt-5.4-proin $30.00/M
out $180.00/M
cache read $30.00/M
ctx: 1,050,000
max out: 128,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5.5
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
GPT-5.5 Pro
gpt-5.5-proin $30.00/M
out $180.00/M
cache read $30.00/M
ctx: 1,050,000
max out: 128,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5.6 Luna
gpt-5.6-lunain $0.20/M
out $1.20/M
cache read $0.02/M
cache write $0.25/M
ctx: 1,050,000
max out: 128,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5.6 Sol (50% Off)
gpt-5.6-solin $2.00/M
out $10.00/M
cache read $0.20/M
cache write $2.50/M
ctx: 1,050,000
max out: 128,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5.6 Terra
gpt-5.6-terrain $2.50/M
out $15.00/M
cache read $0.25/M
cache write $3.13/M
ctx: 1,050,000
max out: 128,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Grok 4.5
grok-4.5in $2.00/M
out $6.00/M
cache read $0.50/M
ctx: 500,000
max out: 500,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
Grok 4.6
grok-4.6in $2.00/M
out $6.00/M
cache read $0.50/M
ctx: 500,000
max out: 500,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
Grok Build 0.1
grok-build-0.1in $1.00/M
out $2.00/M
cache read $0.20/M
ctx: 256,000
max out: 256,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Grok Code Fast 1
grok-codein $0.00/M
out $0.00/M
cache read $0.00/M
cache write $0.00/M
ctx: 256,000
max out: 256,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Hy3 Free
hy3-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 190,000
max out: 64,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
Hy3 preview Free
hy3-preview-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 256,000
max out: 64,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Kimi K2
kimi-k2in $0.40/M
out $2.50/M
cache read $0.40/M
ctx: 262,144
max out: 262,144
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Kimi K2 Thinking
kimi-k2-thinkingin $0.40/M
out $2.50/M
cache read $0.40/M
ctx: 262,144
max out: 262,144
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Kimi K2.5
kimi-k2.5in $0.60/M
out $3.00/M
cache read $0.08/M
ctx: 262,144
max out: 65,536
in: text, image, video
out: text
reasoning
tools
vision
structured
temp
open weights
Kimi K2.5 Free
kimi-k2.5-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 262,144
max out: 262,144
in: text, image, video
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Kimi K2.6
kimi-k2.6in $0.95/M
out $4.00/M
cache read $0.16/M
ctx: 262,144
max out: 65,536
in: text, image, video
out: text
reasoning
tools
vision
structured
temp
open weights
Kimi K2.7 Code
kimi-k2.7-codein $0.95/M
out $4.00/M
cache read $0.19/M
ctx: 262,144
max out: 262,144
in: text, image, video
out: text
reasoning
tools
vision
structured
temp
open weights
Kimi K3
kimi-k3in $3.00/M
out $15.00/M
cache read $0.30/M
ctx: 1,048,576
max out: 131,072
in: text, image, video
out: text
reasoning
tools
vision
structured
temp
open weights
Laguna S 2.1 Free
laguna-s-2.1-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 256,000
max out: 32,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Ling 2.6 Flash Free
ling-2.6-flash-freein $0.00/M
out $0.00/M
ctx: 262,100
max out: 32,800
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Ling-3.0-flash Free
ling-3.0-flash-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 262,144
max out: 32,768
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Ling-3.0-tiny Free
ling-3.0-tiny-freein $0.00/M
out $0.00/M
ctx: 262,144
max out: 32,768
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
LongCat-2.0 Free
longcat-2.0-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 1,000,000
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
MiMo V2 Flash Free
mimo-v2-flash-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 262,144
max out: 65,536
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
MiMo V2 Omni Free
mimo-v2-omni-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 262,144
max out: 64,000
in: text, image, audio, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
MiMo V2 Pro Free
mimo-v2-pro-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 1,048,576
max out: 64,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
MiMo V2.5 Free
mimo-v2.5-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 200,000
max out: 32,000
in: text, image, audio, video
out: text
reasoning
tools
vision
structured
temp
open weights
MiniMax-M2.1
minimax-m2.1in $0.30/M
out $1.20/M
cache read $0.10/M
ctx: 204,800
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
MiniMax-M2.1 Free
minimax-m2.1-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 204,800
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
MiniMax-M2.5
minimax-m2.5in $0.30/M
out $1.20/M
cache read $0.06/M
ctx: 204,800
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
MiniMax-M2.5 Free
minimax-m2.5-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 204,800
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
MiniMax-M2.7
minimax-m2.7in $0.30/M
out $1.20/M
cache read $0.06/M
ctx: 204,800
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
MiniMax-M3
minimax-m3in $0.30/M
out $1.20/M
cache read $0.06/M
ctx: 512,000
max out: 128,000
in: text, image, video
out: text
reasoning
tools
vision
structured
temp
open weights
MiniMax-M3 Free
minimax-m3-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 200,000
max out: 32,000
in: text, image, video
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Muse Spark 1.2
muse-spark-1.2in $1.25/M
out $4.25/M
cache read $0.15/M
ctx: 1,048,576
max out: 131,072
in: text, image, video, pdf, audio
out: text
reasoning
tools
vision
structured
temp
open weights
Muse Spark 1.2 Free
muse-spark-1.2-contributor-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 1,048,576
max out: 131,072
in: text, image, video, pdf, audio
out: text
reasoning
tools
vision
structured
temp
open weights
Nemotron 3 Super Free
nemotron-3-super-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 204,800
max out: 128,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Nemotron 3 Ultra Free
nemotron-3-ultra-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 1,000,000
max out: 128,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
Nemotron 3.5 Lightning Free
nemotron-3.5-lightning-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 262,144
max out: 262,144
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
North Mini Code Free
north-mini-code-freein $0.00/M
out $0.00/M
ctx: 256,000
max out: 64,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Ox Alpha Free (Unlimited)
x-preview-f-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 1,000,000
max out: 131,072
in: text, image, video
out: text
reasoning
tools
vision
structured
temp
open weights
Qwen3 Coder
qwen3-coderin $0.45/M
out $1.80/M
ctx: 262,144
max out: 65,536
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Qwen3.5 Plus
qwen3.5-plusin $0.20/M
out $1.20/M
cache read $0.02/M
cache write $0.25/M
ctx: 262,144
max out: 65,536
in: text, image, video
out: text
reasoning
tools
vision
structured
temp
open weights
Qwen3.6 Plus
qwen3.6-plusin $0.50/M
out $3.00/M
cache read $0.05/M
cache write $0.63/M
ctx: 262,144
max out: 65,536
in: text, image, video
out: text
reasoning
tools
vision
structured
temp
open weights
Qwen3.6 Plus Free
qwen3.6-plus-freein $0.00/M
out $0.00/M
cache read $0.00/M
ctx: 262,144
max out: 65,536
in: text, image, video
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Ring 2.6 1T Free
ring-2.6-1t-freein $0.00/M
out $0.00/M
ctx: 262,000
max out: 66,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated
Trinity Large Preview
trinity-large-preview-freein $0.00/M
out $0.00/M
ctx: 131,072
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deprecated