modelgrep

Best OpenAI Models for RAG

Match · Updated July 2026

The best OpenAI model for RAG is GPT-5.6 Sol — 58.9 intelligence with 1.1M tokens of context for retrieved passages. GPT-5.6 Terra (55.0) and GPT-5.5 (54.8) round out the top three.

58.9Intelligence
74 t/sSpeed
$5.00Input /M
1.1MContext

The best AI models for retrieval-augmented generation, ranked by intelligence among models with at least 128K tokens of context — enough to hold retrieved passages plus conversation. RAG pipelines run at volume, so weigh the price and speed columns as hard as the score.

  1. 1openai logo
    gpt-5.6-sol
    ReasoningToolsJSON+158.9 intel · $5.00/M · 74 t/s
    58.9
    Intelligence
  2. 2openai logo
    gpt-5.6-terra
    ReasoningToolsJSON+155.0 intel · $2.50/M · 96 t/s
    55.0
    Intelligence
  3. 3openai logo
    gpt-5.5
    ReasoningToolsJSON+154.8 intel · $5.00/M · 100 t/s
    54.8
    Intelligence
  4. 4openai logo
    gpt-5.4
    ReasoningToolsJSON+151.4 intel · $2.50/M · 79 t/s
    51.4
    Intelligence
  5. 5openai logo
    gpt-5.6-luna
    ReasoningToolsJSON+151.2 intel · $1.00/M · 97 t/s
    51.2
    Intelligence
  6. 6openai logo
    gpt-5.3-codex
    ReasoningToolsJSON+144.3 intel · $1.75/M · 400K ctx
    44.3
    Intelligence
  7. 7openai logo
    gpt-5.2
    ReasoningToolsJSON+142.2 intel · $1.75/M · 71 t/s
    42.2
    Intelligence
  8. 8openai logo
    gpt-5.2-codex
    ReasoningToolsJSON+140.1 intel · $1.75/M · 400K ctx
    40.1
    Intelligence
  9. 9openai logo
    gpt-5.4-mini
    ReasoningToolsJSON+140.0 intel · $0.750/M · 124 t/s
    40.0
    Intelligence
  10. 10openai logo
    gpt-5.4-nano
    ReasoningToolsJSON+138.2 intel · $0.200/M · 50 t/s
    38.2
    Intelligence
  11. 11openai logo
    gpt-5.1
    ReasoningToolsJSON+136.9 intel · $1.25/M · 78 t/s
    36.9
    Intelligence
  12. 12openai logo
    gpt-5-codex
    ReasoningToolsJSON+136.1 intel · $1.25/M · 400K ctx
    36.1
    Intelligence
  13. 13openai logo
    gpt-5.1-codex
    ReasoningToolsJSON+134.7 intel · $1.25/M · 400K ctx
    34.7
    Intelligence
  14. 14openai logo
    gpt-5
    ReasoningToolsJSON+134.7 intel · $1.25/M · 400K ctx
    34.7
    Intelligence
  15. 15openai logo
    o3-pro
    ReasoningToolsJSON+132.5 intel · $20.00/M · 200K ctx
    32.5
    Intelligence
  16. 16openai logo
    gpt-5.1-codex-mini
    ReasoningToolsJSON+130.6 intel · $0.250/M · 400K ctx
    30.6
    Intelligence
  17. 17openai logo
    o3
    ReasoningToolsJSON+130.4 intel · $2.00/M · 200K ctx
    30.4
    Intelligence
  18. 18openai logo
    o4-mini-high
    ReasoningToolsJSON+125.6 intel · $1.10/M · 200K ctx
    25.6
    Intelligence
  19. 19openai logo
    o4-mini
    ReasoningToolsJSON+125.6 intel · $1.10/M · 200K ctx
    25.6
    Intelligence
  20. 20openai logo
    gpt-5-mini
    ReasoningToolsJSON+125.3 intel · $0.250/M · 107 t/s
    25.3
    Intelligence
  21. 21openai logo
    gpt-oss-120b
    ReasoningToolsJSON23.8 intel · $0.037/M · 131K ctx
    23.8
    Intelligence
  22. 22openai logo
    o1
    ReasoningToolsJSON+123.4 intel · $15.00/M · 200K ctx
    23.4
    Intelligence
  23. 23openai logo
    gpt-5-nano
    ReasoningToolsJSON+119.9 intel · $0.050/M · 181 t/s
    19.9
    Intelligence
  24. 24openai logo
    gpt-4.1
    ToolsJSONVision19.4 intel · $2.00/M · 61 t/s
    19.4
    Intelligence
  25. 25openai logo
    o3-mini
    ReasoningToolsJSON19.0 intel · $1.10/M · 200K ctx
    19.0
    Intelligence

Frequently asked

What is the best OpenAI model for RAG?

The best OpenAI model for RAG is GPT-5.6 Sol — 58.9 intelligence with 1.1M tokens of context for retrieved passages. GPT-5.6 Terra (55.0) and GPT-5.5 (54.8) round out the top three.

What's a good alternative to GPT-5.6 Sol?

GPT-5.6 Terra (55.0) is the closest alternative on this metric, followed by GPT-5.5 (54.8). See the full ranking above for the tradeoffs.

How many OpenAI models are there?

modelgrep tracks 67 OpenAI models with live benchmarks, speed, latency and per-provider pricing, led on intelligence by GPT-5.6 Sol. 25 of them qualify for this ranking.

More OpenAI rankings

All rankings