80trust / 100
Cheapest 128k Context
by modelprices.xyz in AI models & inference
x402 APIPassing, checked 29 min ago
Cheapest 128k-context LLM leaderboard: the 50 lowest-cost AI models with a 128,000-token context window or larger, ranked by inference cost per token across 70+ providers. Input, output and cache USD per 1M tokens with exact context window and capability flags joined in. The standard long-document tier, priced side-by-side. Refreshed hourly.
GET https://modelprices.xyz/llm/cheapest/128k-context
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 12 ms typical, 66 ms slowest 5%
- Last check
- 29 min ago
- Next check
- in 3 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://modelprices.xyz/llm/cheapest/128k-context"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fmodelprices.xyz%2Fllm%2Fcheapest%2F128k-context
const res = await pay("https://modelprices.xyz/llm/cheapest/128k-context");
console.log(await res.json());Example input
{}Example output
{
"board": "Cheapest 128k+ context models",
"generated_at": "2026-07-14T02:00:00.000Z",
"model_count": 24,
"models": [
{
"context_window": 200000,
"id": "llama-4-scout",
"input_per_mtok": 3,
"output_per_mtok": 15,
"provider": "anthropic"
}
]
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 29 min ago | Passed | 402 | 6 ms | $0.01 |
| 4 h ago | Passed | 402 | 91 ms | $0.01 |
| 8 h ago | Passed | 402 | 66 ms | $0.01 |
| 11 h ago | Passed | 402 | 5 ms | $0.01 |
| 15 h ago | Passed | 402 | 12 ms | $0.01 |
| 18 h ago | Passed | 402 | 5 ms | $0.01 |
| 22 h ago | Passed | 402 | 23 ms | $0.01 |
| 26 h ago | Passed | 402 | 19 ms | $0.01 |
| 29 h ago | Passed | 402 | 5 ms | $0.01 |
| 35 h ago | Passed | 402 | 13 ms | $0.01 |