AI API cost calculator

Model category
Filter by provider

Official API prices

Sorted by input price

Sort prices by
Price chart
  1. 1
    GLM-4.7-FlashXCheapestZ.ai
    VerifiedChat

    Input$0.07per 1M tokens

    Output$0.4per 1M tokens

    Cached $0.01 · per 1M tokens

    Official sourceVerified 2026-08-04
  2. 2
    Gemini 2.5 Flash-LiteGoogle Gemini
    VerifiedChat

    Input$0.1per 1M tokens

    Output$0.4per 1M tokens

    ×1.4 vs cheapest
    Official sourceVerified 2026-07-28
  3. 3
    Ministral 3 3BMistral
    VerifiedChat

    Input$0.1per 1M tokens

    Output$0.1per 1M tokens

    Cached $0.01 · per 1M tokens

    ×1.4 vs cheapest
    Official sourceVerified 2026-08-04
  4. 4
    DeepSeek-V4-FlashDeepSeek
    VerifiedChat

    Input$0.14per 1M tokens

    Output$0.28per 1M tokens

    Cached $0.0028 · per 1M tokens

    ×2.0 vs cheapest
    Official sourceVerified 2026-07-28
  5. 5
    GPT-4o miniOpenAI
    VerifiedChat

    Input$0.15per 1M tokens

    Output$0.6per 1M tokens

    Cached $0.075 · per 1M tokens

    ×2.1 vs cheapest
    Official sourceVerified 2026-07-28
  6. 6
    Ministral 3 8BMistral
    VerifiedChat

    Input$0.15per 1M tokens

    Output$0.15per 1M tokens

    Cached $0.015 · per 1M tokens

    ×2.1 vs cheapest
    Official sourceVerified 2026-08-04
  7. 7
    Mistral Small 4Mistral
    VerifiedChat

    Input$0.15per 1M tokens

    Output$0.6per 1M tokens

    Cached $0.015 · per 1M tokens

    ×2.1 vs cheapest
    Official sourceVerified 2026-08-04
  8. 8
    GLM-4.5-AirZ.ai
    VerifiedChat

    Input$0.2per 1M tokens

    Output$1.1per 1M tokens

    Cached $0.03 · per 1M tokens

    ×2.9 vs cheapest
    Official sourceVerified 2026-08-04
  9. 9
    GPT-5.4-nanoOpenAI
    VerifiedChat

    Input$0.2per 1M tokens

    Output$1.25per 1M tokens

    Cached $0.02 · per 1M tokens

    ×2.9 vs cheapest
    Official sourceVerified 2026-07-28
  10. 10
    Ministral 3 14BMistral
    VerifiedChat

    Input$0.2per 1M tokens

    Output$0.2per 1M tokens

    Cached $0.02 · per 1M tokens

    ×2.9 vs cheapest
    Official sourceVerified 2026-08-04
  11. 11
    Gemini 2.5 FlashGoogle Gemini
    VerifiedChat

    Input$0.3per 1M tokens

    Output$2.5per 1M tokens

    ×4.3 vs cheapest
    Official sourceVerified 2026-07-28
  12. 12
    Gemini 3.5 Flash-LiteGoogle Gemini
    VerifiedChat

    Input$0.3per 1M tokens

    Output$2.5per 1M tokens

    ×4.3 vs cheapest
    Official sourceVerified 2026-07-28
  13. 13
    DeepSeek-V4-ProDeepSeek
    VerifiedChat

    Input$0.435per 1M tokens

    Output$0.87per 1M tokens

    Cached $0.003625 · per 1M tokens

    ×6.2 vs cheapest
    Official sourceVerified 2026-07-28
  14. 14
    Mistral Large 3Mistral
    VerifiedChat

    Input$0.5per 1M tokens

    Output$1.5per 1M tokens

    Cached $0.05 · per 1M tokens

    ×7.1 vs cheapest
    Official sourceVerified 2026-08-04
  15. 15
    GLM-4.7Z.ai
    VerifiedChat

    Input$0.6per 1M tokens

    Output$2.2per 1M tokens

    Cached $0.11 · per 1M tokens

    ×8.6 vs cheapest
    Official sourceVerified 2026-08-04
  16. 16
    GPT-5.4-miniOpenAI
    VerifiedChat

    Input$0.75per 1M tokens

    Output$4.5per 1M tokens

    Cached $0.075 · per 1M tokens

    ×10.7 vs cheapest
    Official sourceVerified 2026-07-28
  17. 17
    Kimi K2.6Kimi
    VerifiedChat

    Input$0.95per 1M tokens

    Output$4per 1M tokens

    Cached $0.16 · per 1M tokens

    ×13.6 vs cheapest
    Official sourceVerified 2026-08-04
  18. 18
    Sakana Namazu V1.0Sakana AI
    VerifiedChat

    Input$0.95per 1M tokens

    Output$4per 1M tokens

    Cached $0.15 · per 1M tokens

    ×13.6 vs cheapest
    Official sourceVerified 2026-08-04
  19. 19
    Claude Haiku 4.5Anthropic
    VerifiedChat

    Input$1per 1M tokens

    Output$5per 1M tokens

    Cached $0.1 · per 1M tokens

    ×14.3 vs cheapest
    Official sourceVerified 2026-07-28
  20. 20
    GLM-5Z.ai
    VerifiedChat

    Input$1per 1M tokens

    Output$3.2per 1M tokens

    Cached $0.2 · per 1M tokens

    ×14.3 vs cheapest
    Official sourceVerified 2026-08-04
  21. 21
    GPT-5.6-lunaOpenAI
    VerifiedChat

    Input$1per 1M tokens

    Output$6per 1M tokens

    Cached $0.1 · per 1M tokens

    ×14.3 vs cheapest
    Official sourceVerified 2026-07-28
  22. 22
    Grok Build 0.1xAI
    VerifiedChat

    Input$1per 1M tokens

    Output$2per 1M tokens

    Cached $0.2 · per 1M tokens

    ×14.3 vs cheapest
    Official sourceVerified 2026-07-28
  23. 23
    Gemini 2.5 ProGoogle Gemini
    VerifiedChat

    Input$1.25per 1M tokens

    Output$10per 1M tokens

    ×17.9 vs cheapest
    Official sourceVerified 2026-07-28
  24. 24
    Grok 4.20 (reasoning)xAI
    VerifiedChat

    Input$1.25per 1M tokens

    Output$2.5per 1M tokens

    Cached $0.2 · per 1M tokens

    ×17.9 vs cheapest
    Official sourceVerified 2026-07-28
  25. 25
    Grok 4.3xAI
    VerifiedChat

    Input$1.25per 1M tokens

    Output$2.5per 1M tokens

    Cached $0.2 · per 1M tokens

    ×17.9 vs cheapest
    Official sourceVerified 2026-07-28
  26. 26
    GLM-5.2Z.ai
    VerifiedChat

    Input$1.4per 1M tokens

    Output$4.4per 1M tokens

    Cached $0.26 · per 1M tokens

    ×20.0 vs cheapest
    Official sourceVerified 2026-08-04
  27. 27
    Gemini 3.5 FlashGoogle Gemini
    VerifiedChat

    Input$1.5per 1M tokens

    Output$9per 1M tokens

    Cached $0.15 · per 1M tokens

    ×21.4 vs cheapest
    Official sourceVerified 2026-07-28
  28. 28
    Gemini 3.6 FlashGoogle Gemini
    VerifiedChat

    Input$1.5per 1M tokens

    Output$7.5per 1M tokens

    Cached $0.15 · per 1M tokens

    ×21.4 vs cheapest
    Official sourceVerified 2026-07-28
  29. 29
    Mistral Medium 3.5Mistral
    VerifiedChat

    Input$1.5per 1M tokens

    Output$7.5per 1M tokens

    Cached $0.15 · per 1M tokens

    ×21.4 vs cheapest
    Official sourceVerified 2026-08-04
  30. 30
    Claude Sonnet 5Anthropic
    VerifiedChat

    Input$2per 1M tokens

    Output$10per 1M tokens

    Cached $0.2 · per 1M tokens

    ×28.6 vs cheapest
    Official sourceVerified 2026-07-28
  31. 31
    Gemini 3.1 Pro PreviewGoogle Gemini
    PreviewChat

    Input$2per 1M tokens

    Output$12per 1M tokens

    Cached $0.2 · per 1M tokens

    ×28.6 vs cheapest
    Official sourceVerified 2026-07-28
  32. 32
    GPT-4.1OpenAI
    VerifiedChat

    Input$2per 1M tokens

    Output$8per 1M tokens

    Cached $0.5 · per 1M tokens

    ×28.6 vs cheapest
    Official sourceVerified 2026-07-28
  33. 33
    Grok 4.5xAI
    VerifiedChat

    Input$2per 1M tokens

    Output$6per 1M tokens

    Cached $0.3 · per 1M tokens

    ×28.6 vs cheapest
    Official sourceVerified 2026-07-28
  34. 34
    GPT-5.4OpenAI
    VerifiedChat

    Input$2.5per 1M tokens

    Output$15per 1M tokens

    Cached $0.25 · per 1M tokens

    ×35.7 vs cheapest
    Official sourceVerified 2026-07-28
  35. 35
    GPT-5.6-terraOpenAI
    VerifiedChat

    Input$2.5per 1M tokens

    Output$15per 1M tokens

    Cached $0.25 · per 1M tokens

    ×35.7 vs cheapest
    Official sourceVerified 2026-07-28
  36. 36
    Claude Sonnet 4.6Anthropic
    VerifiedChat

    Input$3per 1M tokens

    Output$15per 1M tokens

    Cached $0.3 · per 1M tokens

    ×42.9 vs cheapest
    Official sourceVerified 2026-07-28
  37. 37
    Kimi K3Kimi
    VerifiedChat

    Input$3per 1M tokens

    Output$15per 1M tokens

    Cached $0.3 · per 1M tokens

    ×42.9 vs cheapest
    Official sourceVerified 2026-08-04
  38. 38
    Claude Opus 5Anthropic
    VerifiedChat

    Input$5per 1M tokens

    Output$25per 1M tokens

    Cached $0.5 · per 1M tokens

    ×71.4 vs cheapest
    Official sourceVerified 2026-07-28
  39. 39
    Fugu Ultra V1.1Sakana AI
    VerifiedChat

    Input$5per 1M tokens

    Output$30per 1M tokens

    Cached $0.5 · per 1M tokens

    ×71.4 vs cheapest
    Official sourceVerified 2026-08-04
  40. 40
    GPT-5.6-solOpenAI
    VerifiedChat

    Input$5per 1M tokens

    Output$30per 1M tokens

    Cached $0.5 · per 1M tokens

    ×71.4 vs cheapest
    Official sourceVerified 2026-07-28
  41. 41
    Claude Fable 5Anthropic
    VerifiedChat

    Input$10per 1M tokens

    Output$50per 1M tokens

    Cached $1 · per 1M tokens

    ×142.9 vs cheapest
    Official sourceVerified 2026-07-28