80trust / 100

Cheapest Million Token Context

by modelprices.xyz in AI models & inference

x402 APIPassing, checked 33 min ago

Cheapest million-token-context LLM leaderboard: every AI model with a 1,000,000-token context window or larger, ranked by inference cost per token — Gemini 3 Pro, Gemini 3 Flash, Llama 4 Scout, GPT-5 long-context tiers and more. Input, output and cache USD per 1M tokens with exact context window and max output joined in. Answers 'what is the cheapest model that fits my whole corpus?' Refreshed hourly.

GET https://modelprices.xyz/llm/cheapest/million-token-context

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
22 ms typical, 97 ms slowest 5%
Last check
33 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://modelprices.xyz/llm/cheapest/million-token-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%2Fmillion-token-context
const res = await pay("https://modelprices.xyz/llm/cheapest/million-token-context");
console.log(await res.json());

Example input

{}

Example output

{
  "board": "Cheapest 1M+ context models",
  "generated_at": "2026-07-14T02:00:00.000Z",
  "model_count": 24,
  "models": [
    {
      "context_window": 200000,
      "id": "gemini-3-flash",
      "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

WhenResultHTTPTimePrice
33 min agoPassed40297 ms$0.01
4 h agoPassed40223 ms$0.01
8 h agoPassed40223 ms$0.01
11 h agoPassed4025 ms$0.01
15 h agoPassed40220 ms$0.01
18 h agoPassed402119 ms$0.01
22 h agoPassed40264 ms$0.01
26 h agoPassed40222 ms$0.01
29 h agoPassed4026 ms$0.01
35 h agoPassed4023 ms$0.01