302.AI

[PROVIDER]
id: 302ai
npm: @ai-sdk/openai-compatible
env: 302AI_API_KEY
api: https://api.302.ai/v1

Models

chatgpt-4o-latest

chatgpt-4o-latest
in $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-20241022
in $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-latest
in $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-5
in $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-20251001
in $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-20250805
in $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-thinking
in $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-20250514
in $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-5
in $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-20251101
in $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-thinking
in $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-6
in $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-thinking
in $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-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-sonnet-4-20250514

claude-sonnet-4-20250514
in $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-5
in $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-20250929
in $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-thinking
in $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-6
in $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-thinking
in $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-chat
in $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-reasoner
in $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.2
in $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-thinking
in $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-250715
in $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-250815
in $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-251215
in $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-251028
in $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-lite
in $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-flash
in $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-image
in $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-2025
in $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-nothink
in $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-2025
in $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-pro
in $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-preview
in $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-preview
in $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-preview
in $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-preview
in $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.5
in $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-air
in $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-airx
in $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-x
in $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.5v
in $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.6
in $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.6v
in $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.7
in $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-flashx
in $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-5
in $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-turbo
in $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.1
in $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-turbo
in $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-coding
in $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.1
in $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-mini
in $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-nano
in $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-4o
in $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-5
in $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-mini
in $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-pro
in $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-thinking
in $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.1
in $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-latest
in $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.2
in $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-latest
in $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.4
in $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-mini
in $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-17
in $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-nano
in $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-17
in $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-pro
in $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-reasoning
in $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-reasoning
in $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-reasoning
in $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-reasoning
in $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.1
in $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-reasoning
in $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-reasoning
in $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-0309
in $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-preview
in $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-thinking
in $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-turbo
in $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-M1
in $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-M2
in $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.1
in $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.7
in $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-highspeed
in $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-2512
in $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-2512
in $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-flash
in $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-latest
in $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-plus
in $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-a22b
in $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-2507
in $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-a3b
in $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-instruct
in $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-23
in $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