id: nearai
npm: @ai-sdk/openai-compatible
env: NEARAI_API_KEY
api: https://cloud-api.near.ai/v1
Models
Claude Haiku 4.5 (latest)
anthropic/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.6
anthropic/claude-opus-4-6in $5.00/M
out $25.00/M
cache read $0.50/M
cache write $6.25/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
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.5 (latest)
anthropic/claude-sonnet-4-5in $3.00/M
out $15.50/M
cache read $0.30/M
cache write $3.75/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
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
FLUX.2 Klein 4B
black-forest-labs/FLUX.2-klein-4Bin $1.00/M
out $1.00/M
ctx: 128,000
max out: 128,000
in: text, image
out: image
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 Flash-Lite
google/gemini-2.5-flash-litein $0.10/M
out $0.40/M
cache read $0.01/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 Pro Preview
google/gemini-3-proin $1.25/M
out $15.00/M
cache read $0.00/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 Flash Lite
google/gemini-3.1-flash-litein $0.25/M
out $1.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.5 Flash
google/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
Gemma 4 31B IT
google/gemma-4-31B-itin $0.13/M
out $0.40/M
cache read $0.03/M
ctx: 262,144
max out: 32,768
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
GLM-5.1 FP8
zai-org/GLM-5.1-FP8in $0.85/M
out $3.30/M
ctx: 202,752
max out: 131,072
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-4.1
openai/gpt-4.1in $2.00/M
out $8.00/M
cache read $0.50/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
openai/gpt-4.1-miniin $0.40/M
out $1.60/M
cache read $0.10/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
openai/gpt-4.1-nanoin $0.10/M
out $0.40/M
cache read $0.03/M
ctx: 1,047,576
max out: 32,768
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5
openai/gpt-5in $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 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 Nano
openai/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
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.80/M
out $15.50/M
cache read $0.18/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, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5.4 mini
openai/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
out: text
reasoning
tools
vision
structured
temp
open weights
GPT-5.4 nano
openai/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
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
GPT-OSS 120B
openai/gpt-oss-120bin $0.15/M
out $0.55/M
ctx: 131,000
max out: 32,768
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
o3
openai/o3in $2.00/M
out $8.00/M
cache read $0.50/M
ctx: 200,000
max out: 100,000
in: text, image, pdf
out: text
reasoning
tools
vision
structured
temp
open weights
o3-mini
openai/o3-miniin $1.10/M
out $4.40/M
cache read $0.55/M
ctx: 200,000
max out: 100,000
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
o4-mini
openai/o4-miniin $1.10/M
out $4.40/M
cache read $0.28/M
ctx: 200,000
max out: 100,000
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
Qwen 3.6 35B A3B FP8
Qwen/Qwen3.6-35B-A3B-FP8in $0.17/M
out $1.10/M
cache read $0.06/M
ctx: 262,144
max out: 32,768
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
Qwen3 30B-A3B Instruct 2507
Qwen/Qwen3-30B-A3B-Instruct-2507in $0.15/M
out $0.55/M
ctx: 262,144
max out: 32,768
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
Qwen3 Embedding 0.6B
Qwen/Qwen3-Embedding-0.6Bin $0.01/M
out $0.00/M
ctx: 40,960
max out: 1,024
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
Qwen3 Reranker 0.6B
Qwen/Qwen3-Reranker-0.6Bin $0.01/M
out $0.01/M
ctx: 40,960
max out: 1,024
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
Qwen3-VL 30B-A3B Instruct
Qwen/Qwen3-VL-30B-A3B-Instructin $0.15/M
out $0.55/M
ctx: 256,000
max out: 32,768
in: text, image
out: text
reasoning
tools
vision
structured
temp
open weights
Qwen3.5 122B-A10B
Qwen/Qwen3.5-122B-A10Bin $0.40/M
out $3.20/M
ctx: 131,072
max out: 32,768
in: text
out: text
reasoning
tools
vision
structured
temp
open weights
Whisper Large v3
openai/whisper-large-v3in $0.01/M
out $0.00/M
ctx: 448
max out: 448
in: audio
out: text
reasoning
tools
vision
structured
temp
open weights