OpenCode Zen

[PROVIDER]
id: opencode
npm: @ai-sdk/openai-compatible
env: OPENCODE_API_KEY
api: https://opencode.ai/zen/v1

Models

Big Pickle

big-pickle
in $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-5
in $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 deprecated

Claude Haiku 3.5

claude-3-5-haiku
in $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-5
in $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-1
in $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
in $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-6
in $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-7
in $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-8
in $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-4
in $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-5
in $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-6
in $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

DeepSeek V4 Flash

deepseek-v4-flash
in $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-free
in $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

DeepSeek V4 Pro

deepseek-v4-pro
in $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-flash
in $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-pro
in $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-pro
in $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-flash
in $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

GLM-4.6

glm-4.6
in $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.7
in $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-free
in $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-5
in $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-free
in $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.1
in $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.2
in $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-5
in $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-codex
in $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-nano
in $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.1
in $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-codex
in $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-max
in $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-mini
in $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.2
in $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-codex
in $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-codex
in $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-spark
in $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.4
in $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-mini
in $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-nano
in $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-pro
in $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.5
in $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-pro
in $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

Grok Build 0.1

grok-build-0.1
in $1.00/M
out $2.00/M
cache read $0.20/M
ctx: 256,000 max out: 256,000 in: text, image out: text
reasoning tools vision structured temp open weights

Grok Code Fast 1

grok-code
in $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 preview Free

hy3-preview-free
in $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-k2
in $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-thinking
in $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.5
in $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-free
in $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.6
in $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

Ling 2.6 Flash Free

ling-2.6-flash-free
in $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

MiMo V2 Flash Free

mimo-v2-flash-free
in $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-free
in $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-free
in $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-free
in $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.1
in $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-free
in $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.5
in $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-free
in $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.7
in $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 Free

minimax-m3-free
in $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

Nemotron 3 Super Free

nemotron-3-super-free
in $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-free
in $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

North Mini Code Free

north-mini-code-free
in $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

Qwen3 Coder

qwen3-coder
in $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-plus
in $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-plus
in $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-free
in $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-free
in $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-free
in $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