id: 302ai
npm: @ai-sdk/openai-compatible
env: 302AI_API_KEY
api: https://api.302.ai/v1
doc: https://doc.302.ai
Models
chatgpt-4o-latest
chatgpt-4o-latestin $5.00/M
out $15.00/M
ctx: 128,000
max out: 16,384
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
claude-3-5-haiku-20241022
claude-3-5-haiku-20241022in $0.80/M
out $4.00/M
ctx: 200,000
max out: 8,192
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
claude-3-5-haiku-latest
claude-3-5-haiku-latestin $0.80/M
out $4.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-5in $1.00/M
out $5.00/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-20251001
claude-haiku-4-5-20251001in $1.00/M
out $5.00/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-20250805
claude-opus-4-1-20250805in $15.00/M
out $75.00/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-20250805-thinking
claude-opus-4-1-20250805-thinkingin $15.00/M
out $75.00/M
ctx: 200,000
max out: 32,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
claude-opus-4-20250514
claude-opus-4-20250514in $15.00/M
out $75.00/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-5in $5.00/M
out $25.00/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-20251101
claude-opus-4-5-20251101in $5.00/M
out $25.00/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-20251101-thinking
claude-opus-4-5-20251101-thinkingin $5.00/M
out $25.00/M
ctx: 200,000
max out: 64,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
claude-opus-4-6
claude-opus-4-6in $5.00/M
out $25.00/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-6-thinking
claude-opus-4-6-thinkingin $5.00/M
out $25.00/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-sonnet-4-20250514
claude-sonnet-4-20250514in $3.00/M
out $15.00/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-5in $3.00/M
out $15.00/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-20250929
claude-sonnet-4-5-20250929in $3.00/M
out $15.00/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-20250929-thinking
claude-sonnet-4-5-20250929-thinkingin $3.00/M
out $15.00/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
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-thinking
claude-sonnet-4-6-thinkingin $3.00/M
out $15.00/M
ctx: 1,000,000
max out: 64,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
Deepseek-Chat
deepseek-chatin $0.29/M
out $0.43/M
ctx: 128,000
max out: 8,192
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
Deepseek-Reasoner
deepseek-reasonerin $0.29/M
out $0.43/M
ctx: 128,000
max out: 128,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
deepseek-v3.2
deepseek-v3.2in $0.29/M
out $0.43/M
ctx: 128,000
max out: 8,192
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
DeepSeek-V3.2-Thinking
deepseek-v3.2-thinkingin $0.29/M
out $0.43/M
ctx: 128,000
max out: 128,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
doubao-seed-1-6-thinking-250715
doubao-seed-1-6-thinking-250715in $0.12/M
out $1.21/M
ctx: 256,000
max out: 16,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
doubao-seed-1-6-vision-250815
doubao-seed-1-6-vision-250815in $0.11/M
out $1.14/M
ctx: 256,000
max out: 32,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
doubao-seed-1-8-251215
doubao-seed-1-8-251215in $0.11/M
out $0.29/M
ctx: 224,000
max out: 64,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
doubao-seed-code-preview-251028
doubao-seed-code-preview-251028in $0.17/M
out $1.14/M
ctx: 256,000
max out: 32,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gemini-2.0-flash-lite
gemini-2.0-flash-litein $0.07/M
out $0.30/M
ctx: 2,000,000
max out: 8,192
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gemini-2.5-flash
gemini-2.5-flashin $0.30/M
out $2.50/M
ctx: 1,000,000
max out: 65,536
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gemini-2.5-flash-image
gemini-2.5-flash-imagein $0.30/M
out $30.00/M
ctx: 32,768
max out: 32,768
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gemini-2.5-flash-lite-preview-09-2025
gemini-2.5-flash-lite-preview-09-2025in $0.10/M
out $0.40/M
ctx: 1,000,000
max out: 65,536
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gemini-2.5-flash-nothink
gemini-2.5-flash-nothinkin $0.30/M
out $2.50/M
ctx: 1,000,000
max out: 65,536
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gemini-2.5-flash-preview-09-2025
gemini-2.5-flash-preview-09-2025in $0.30/M
out $2.50/M
ctx: 1,000,000
max out: 65,536
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gemini-2.5-pro
gemini-2.5-proin $1.25/M
out $10.00/M
ctx: 1,000,000
max out: 65,536
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gemini-3-flash-preview
gemini-3-flash-previewin $0.50/M
out $3.00/M
ctx: 1,000,000
max out: 65,536
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gemini-3-pro-image-preview
gemini-3-pro-image-previewin $2.00/M
out $120.00/M
ctx: 32,768
max out: 64,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gemini-3-pro-preview
gemini-3-pro-previewin $2.00/M
out $12.00/M
ctx: 1,000,000
max out: 64,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gemini-3.1-flash-image-preview
gemini-3.1-flash-image-previewin $0.50/M
out $60.00/M
ctx: 131,072
max out: 32,768
in: text, image, pdf
out: text, image
reasoning
tools
vision
structured
temp
open weights
GLM-4.5
glm-4.5in $0.29/M
out $1.14/M
ctx: 131,072
max out: 98,304
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
glm-4.5-air
glm-4.5-airin $0.11/M
out $0.29/M
ctx: 131,072
max out: 98,304
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
glm-4.5-airx
glm-4.5-airxin $0.57/M
out $1.71/M
ctx: 128,000
max out: 16,384
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
glm-4.5-x
glm-4.5-xin $1.14/M
out $2.29/M
ctx: 128,000
max out: 16,384
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
GLM-4.5V
glm-4.5vin $0.29/M
out $0.86/M
ctx: 64,000
max out: 16,384
in: text, image, video
out: text
reasoning
tools
vision
structured
temp
open weights
glm-4.6
glm-4.6in $0.29/M
out $1.14/M
ctx: 204,800
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
GLM-4.6V
glm-4.6vin $0.14/M
out $0.43/M
ctx: 128,000
max out: 32,768
in: text, image, video
out: text
reasoning
tools
vision
structured
temp
open weights
glm-4.7
glm-4.7in $0.29/M
out $1.14/M
ctx: 204,800
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
glm-4.7-flashx
glm-4.7-flashxin $0.07/M
out $0.43/M
ctx: 200,000
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
glm-5
glm-5in $0.60/M
out $2.60/M
ctx: 204,800
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
glm-5-turbo
glm-5-turboin $0.72/M
out $3.20/M
ctx: 200,000
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
glm-5.1
glm-5.1in $0.86/M
out $3.50/M
ctx: 200,000
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
GLM-5V-Turbo
glm-5v-turboin $0.72/M
out $3.20/M
ctx: 200,000
max out: 131,072
in: text, image, video, audio, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
glm-for-coding
glm-for-codingin $0.09/M
out $0.34/M
ctx: 200,000
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
gpt-4.1
gpt-4.1in $2.00/M
out $8.00/M
ctx: 1,047,576
max out: 32,768
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
gpt-4.1-mini
gpt-4.1-miniin $0.40/M
out $1.60/M
ctx: 1,047,576
max out: 32,768
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
gpt-4.1-nano
gpt-4.1-nanoin $0.10/M
out $0.40/M
ctx: 1,047,576
max out: 32,768
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gpt-4o
gpt-4oin $2.50/M
out $10.00/M
ctx: 128,000
max out: 16,384
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
gpt-5
gpt-5in $1.25/M
out $10.00/M
ctx: 400,000
max out: 128,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gpt-5-mini
gpt-5-miniin $0.25/M
out $2.00/M
ctx: 400,000
max out: 128,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gpt-5-pro
gpt-5-proin $15.00/M
out $120.00/M
ctx: 400,000
max out: 272,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gpt-5-thinking
gpt-5-thinkingin $1.25/M
out $10.00/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.25/M
out $10.00/M
ctx: 400,000
max out: 128,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gpt-5.1-chat-latest
gpt-5.1-chat-latestin $1.25/M
out $10.00/M
ctx: 128,000
max out: 16,384
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
ctx: 400,000
max out: 128,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gpt-5.2-chat-latest
gpt-5.2-chat-latestin $1.75/M
out $14.00/M
ctx: 128,000
max out: 16,384
in: text, image
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
cache write $0.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.4-mini
gpt-5.4-miniin $0.75/M
out $4.50/M
ctx: 400,000
max out: 128,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gpt-5.4-mini-2026-03-17
gpt-5.4-mini-2026-03-17in $0.75/M
out $4.50/M
ctx: 400,000
max out: 128,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gpt-5.4-nano
gpt-5.4-nanoin $0.20/M
out $1.25/M
ctx: 400,000
max out: 128,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
gpt-5.4-nano-2026-03-17
gpt-5.4-nano-2026-03-17in $0.20/M
out $1.25/M
ctx: 400,000
max out: 128,000
in: text, image
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 $0.00/M
cache write $0.00/M
ctx: 1,050,000
max out: 128,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
grok-4-1-fast-non-reasoning
grok-4-1-fast-non-reasoningin $0.20/M
out $0.50/M
ctx: 2,000,000
max out: 30,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
grok-4-1-fast-reasoning
grok-4-1-fast-reasoningin $0.20/M
out $0.50/M
ctx: 2,000,000
max out: 30,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
grok-4-fast-non-reasoning
grok-4-fast-non-reasoningin $0.20/M
out $0.50/M
ctx: 2,000,000
max out: 30,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
grok-4-fast-reasoning
grok-4-fast-reasoningin $0.20/M
out $0.50/M
ctx: 2,000,000
max out: 30,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
grok-4.1
grok-4.1in $2.00/M
out $10.00/M
ctx: 200,000
max out: 64,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
grok-4.20-beta-0309-non-reasoning
grok-4.20-beta-0309-non-reasoningin $2.00/M
out $6.00/M
ctx: 2,000,000
max out: 30,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
grok-4.20-beta-0309-reasoning
grok-4.20-beta-0309-reasoningin $2.00/M
out $6.00/M
ctx: 2,000,000
max out: 30,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
grok-4.20-multi-agent-beta-0309
grok-4.20-multi-agent-beta-0309in $2.00/M
out $6.00/M
ctx: 2,000,000
max out: 30,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
kimi-k2-0905-preview
kimi-k2-0905-previewin $0.63/M
out $2.53/M
ctx: 262,144
max out: 262,144
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
kimi-k2-thinking
kimi-k2-thinkingin $0.57/M
out $2.30/M
ctx: 262,144
max out: 262,144
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
kimi-k2-thinking-turbo
kimi-k2-thinking-turboin $1.26/M
out $9.12/M
ctx: 262,144
max out: 262,144
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
MiniMax-M1
MiniMax-M1in $0.13/M
out $1.25/M
ctx: 1,000,000
max out: 128,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
MiniMax-M2
MiniMax-M2in $0.33/M
out $1.32/M
ctx: 1,000,000
max out: 128,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
MiniMax-M2.1
MiniMax-M2.1in $0.30/M
out $1.20/M
ctx: 1,000,000
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
MiniMax-M2.7
MiniMax-M2.7in $0.30/M
out $1.20/M
ctx: 204,800
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
MiniMax-M2.7-highspeed
MiniMax-M2.7-highspeedin $0.60/M
out $4.80/M
ctx: 204,800
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
ministral-14b-2512
ministral-14b-2512in $0.33/M
out $0.33/M
ctx: 128,000
max out: 128,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
mistral-large-2512
mistral-large-2512in $1.10/M
out $3.30/M
ctx: 128,000
max out: 262,144
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
Qwen-Flash
qwen-flashin $0.02/M
out $0.22/M
ctx: 1,000,000
max out: 32,768
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
Qwen-Max-Latest
qwen-max-latestin $0.34/M
out $1.37/M
ctx: 131,072
max out: 8,192
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
Qwen-Plus
qwen-plusin $0.12/M
out $1.20/M
ctx: 1,000,000
max out: 32,768
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
Qwen3-235B-A22B
qwen3-235b-a22bin $0.29/M
out $2.86/M
ctx: 128,000
max out: 16,384
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
qwen3-235b-a22b-instruct-2507
qwen3-235b-a22b-instruct-2507in $0.29/M
out $1.14/M
ctx: 128,000
max out: 65,536
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
Qwen3-30B-A3B
qwen3-30b-a3bin $0.11/M
out $1.08/M
ctx: 128,000
max out: 8,192
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
qwen3-coder-480b-a35b-instruct
qwen3-coder-480b-a35b-instructin $0.86/M
out $3.43/M
ctx: 262,144
max out: 65,536
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
qwen3-max-2025-09-23
qwen3-max-2025-09-23in $0.86/M
out $3.43/M
ctx: 258,048
max out: 65,536
in: text
out: text
reasoning
tools
vision
structured
temp
open weights