PriceIndex

AI model rankings · Code & SLMs

Coding AI Models with the Longest Context Window

GPT-6 Luna offers the largest context window of the 35 Code & SLMs models we track: 1.1M tokens.

The median context across this list is 400K. A large window lets you send whole documents or code repositories in one request, but every token you send is billed, so long prompts get expensive fast.

8 of the top 35 have no published AA Intelligence score; they show "—" and are never estimated. The list covers 9 providers.

Updated December 2026 · 35 models · 9 providers · prices per 1M tokens

Top 3 Code & SLMs Models

  1. #1OpenAI

    GPT-6 Luna

    1.1M

    Context window

    Input
    $0.1
    Context
    1.1M
  2. #2OpenAI

    GPT-5.6 Luna

    1.1M

    Context window

    Input
    $0.2
    Context
    1.1M
  3. #3OpenAI

    GPT-6 Sol

    1.1M

    Context window

    Input
    $2
    Context
    1.1M

Code & SLMs Models Ranking

35 of 35
Input /1M
$0.2
Output /1M
$1.2
Context
1.1M
AA Intelligence
37.3
DesignArena Elo
1229
Arena Elo
1189
MMLU-Pro
71.8
Blended
$0.45
Trend
0%
Input /1M
$5
Output /1M
$30
Context
1.1M
AA Intelligence
47
DesignArena Elo
1314
Arena Elo
1255
MMLU-Pro
82.8
Blended
$11.25
Trend
41%
Input /1M
$2
Output /1M
$12
Context
1.1M
AA Intelligence
42.1
DesignArena Elo
1240
Arena Elo
1233
MMLU-Pro
79.1
Blended
$4.50
Trend
0%
Input /1M
$10
Output /1M
$50
Context
1.1M
AA Intelligence
52.7
DesignArena Elo
1390
Arena Elo
1288
MMLU-Pro
88.3
Blended
$20.00
Trend
0%
Input /1M
$0.1
Output /1M
$0.5
Context
1.1M
AA Intelligence
38.1
DesignArena Elo
1265
Arena Elo
1211
MMLU-Pro
75.4
Blended
$0.20
Trend
0%
Input /1M
$2
Output /1M
$10
Context
1.1M
AA Intelligence
47.6
DesignArena Elo
1296
Arena Elo
1266
MMLU-Pro
84.6
Blended
$4.00
Trend
0%
Input /1M
$1.25
Output /1M
$10
Context
1M
AA Intelligence
16.1
DesignArena Elo
1151
Arena Elo
1255
MMLU-Pro
82.8
Blended
$3.44
Trend
-13%
Input /1M
$0.75
Output /1M
$3.75
Context
1M
AA Intelligence
39.1
DesignArena Elo
1306
Arena Elo
1228
MMLU-Pro
78.2
Blended
$1.50
Trend
0%
Input /1M
$0.825
Output /1M
$4.125
Context
1M
AA Intelligence
40.9
DesignArena Elo
1302
Arena Elo
1244
MMLU-Pro
81
Blended
$1.65
Trend
10%
Input /1M
$2
Output /1M
$8
Context
1M
AA Intelligence
12.7
DesignArena Elo
1024
Arena Elo
1200
MMLU-Pro
73.6
Blended
$3.50
Trend
-9%
Input /1M
$0.4
Output /1M
$1.6
Context
1M
AA Intelligence
10.2
DesignArena Elo
992
Arena Elo
1167
MMLU-Pro
68.1
Blended
$0.70
Trend
0%
Input /1M
$0.195
Output /1M
$0.975
Context
1M
AA Intelligence
—
DesignArena Elo
—
Arena Elo
—
MMLU-Pro
—
Blended
$0.39
Trend
0%
Input /1M
$0.65
Output /1M
$3.25
Context
1M
AA Intelligence
—
DesignArena Elo
—
Arena Elo
—
MMLU-Pro
—
Blended
$1.30
Trend
0%

Showing 15 of 35

Compare the leaders

How this ranking works

Benchmark is an aggregate 0–100 quality score. Blended price assumes a 3:1 input-to-output token mix. Trend compares the latest blended price with the oldest in our 6-month history.

This page sorts by context window. Use the panel on the right to switch ranking or category — every combination has its own page.

Frequently asked questions

By Artificial Analysis Intelligence Index, GPT-6 Astra from OpenAI ranks first with an AA Intelligence score of 52.7. It costs $10 per 1M input tokens.

Phi-4 is the cheapest at $0.07 per 1M input tokens and $0.14 per 1M output tokens.

GPT-6 Luna supports 1.1M tokens of context, the most in this category.

Dividing quality score by blended price, GPT-6 Luna gives the most quality per dollar (score 38.1 at $0.20 per 1M tokens).

Blended price assumes a typical 3:1 input-to-output token mix: 75% of the input price plus 25% of the output price, per 1M tokens.

Find models by API capability