AI API cost calculator

Model category
Filter by provider

Official API prices

Sorted by input price

Sort prices by
Price chart
  1. 1
    GPT-5-nanoCheapestOpenAI
    VerifiedChat

    Input$0.05per 1M tokens

    Output$0.4per 1M tokens

    Cached $0.005 · per 1M tokens

    Official source ↗Verified 2026-08-07
  2. 2
    GLM-4.7-FlashXZ.ai
    VerifiedChat

    Input$0.07per 1M tokens

    Output$0.4per 1M tokens

    Cached $0.01 · per 1M tokens

    ×1.4 vs cheapest
    Official source ↗Verified 2026-10-01
  3. 3
    Claude Haiku 5.5Anthropic
    VerifiedChat

    Input$0.1per 1M tokens

    Output$0.5per 1M tokens

    Cached $0.01 · per 1M tokens

    ×2.0 vs cheapest
    Official source ↗Verified 2026-10-08
  4. 4
    Gemini 2.5 Flash-LiteGoogle Gemini
    VerifiedChat

    Input$0.1per 1M tokens

    Output$0.4per 1M tokens

    Cached $0.01 · per 1M tokens

    ×2.0 vs cheapest
    Official source ↗Verified 2026-08-07
  5. 5
    GPT-6 LunaOpenAI
    VerifiedChat

    Input$0.1per 1M tokens

    Output$0.5per 1M tokens

    Cached $0.01 · per 1M tokens

    ×2.0 vs cheapest
    Official source ↗Verified 2026-09-24
  6. 6
    Ministral 3 3BMistral
    VerifiedChat

    Input$0.1per 1M tokens

    Output$0.1per 1M tokens

    Cached $0.01 · per 1M tokens

    ×2.0 vs cheapest
    Official source ↗Verified 2026-10-31
  7. 7
    GLM-5.3-FlashZ.ai
    VerifiedChat

    Input$0.15per 1M tokens

    Output$0.5per 1M tokens

    Cached $0.03 · per 1M tokens

    ×3.0 vs cheapest
    Official source ↗Verified 2026-10-01
  8. 8
    GPT-4o miniOpenAI
    VerifiedChat

    Input$0.15per 1M tokens

    Output$0.6per 1M tokens

    Cached $0.075 · per 1M tokens

    ×3.0 vs cheapest
    Official source ↗Verified 2026-07-28
  9. 9
    Ministral 3 8BMistral
    VerifiedChat

    Input$0.15per 1M tokens

    Output$0.15per 1M tokens

    Cached $0.015 · per 1M tokens

    ×3.0 vs cheapest
    Official source ↗Verified 2026-10-31
  10. 10
    Mistral Small 4Mistral
    VerifiedChat

    Input$0.15per 1M tokens

    Output$0.6per 1M tokens

    Cached $0.015 · per 1M tokens

    ×3.0 vs cheapest
    Official source ↗Verified 2026-10-31
  11. 11
    GLM-4.5-AirZ.ai
    VerifiedChat

    Input$0.2per 1M tokens

    Output$1.1per 1M tokens

    Cached $0.03 · per 1M tokens

    ×4.0 vs cheapest
    Official source ↗Verified 2026-10-01
  12. 12
    GPT-5.4-nanoOpenAI
    VerifiedChat

    Input$0.2per 1M tokens

    Output$1.25per 1M tokens

    Cached $0.02 · per 1M tokens

    ×4.0 vs cheapest
    Official source ↗Verified 2026-07-28
  13. 13
    GPT-5.6-lunaOpenAI
    VerifiedChat

    Input$0.2per 1M tokens

    Output$1.2per 1M tokens

    Cached $0.02 · per 1M tokens

    ×4.0 vs cheapest
    Official source ↗Verified 2026-08-07
  14. 14
    Ministral 3 14BMistral
    VerifiedChat

    Input$0.2per 1M tokens

    Output$0.2per 1M tokens

    Cached $0.02 · per 1M tokens

    ×4.0 vs cheapest
    Official source ↗Verified 2026-10-31
  15. 15
    Gemini 3.1 Flash-LiteGoogle Gemini
    VerifiedChat

    Input$0.25per 1M tokens

    Output$1.5per 1M tokens

    Cached $0.025 · per 1M tokens

    ×5.0 vs cheapest
    Official source ↗Verified 2026-08-07
  16. 16
    GPT-5-miniOpenAI
    VerifiedChat

    Input$0.25per 1M tokens

    Output$2per 1M tokens

    Cached $0.025 · per 1M tokens

    ×5.0 vs cheapest
    Official source ↗Verified 2026-08-07
  17. 17
    DeepSeek-V4-FlashDeepSeek
    VerifiedChat

    Input$0.3per 1M tokens

    Output$1.2per 1M tokens

    Cached $0.006 · per 1M tokens

    ×6.0 vs cheapest
    Official source ↗Verified 2026-09-11
  18. 18
    DeepSeek-V4-Flash-Vision-ExpDeepSeek
    VerifiedChat

    Input$0.3per 1M tokens

    Output$1.2per 1M tokens

    Cached $0.006 · per 1M tokens

    ×6.0 vs cheapest
    Official source ↗Verified 2026-09-11
  19. 19
    Gemini 2.5 FlashGoogle Gemini
    VerifiedChat

    Input$0.3per 1M tokens

    Output$2.5per 1M tokens

    Cached $0.03 · per 1M tokens

    ×6.0 vs cheapest
    Official source ↗Verified 2026-08-07
  20. 20
    Gemini 3.5 Flash-LiteGoogle Gemini
    VerifiedChat

    Input$0.3per 1M tokens

    Output$2.5per 1M tokens

    ×6.0 vs cheapest
    Official source ↗Verified 2026-07-28
  21. 21
    GLM-5.3-FlashXZ.ai
    VerifiedChat

    Input$0.37per 1M tokens

    Output$1.25per 1M tokens

    Cached $0.075 · per 1M tokens

    ×7.4 vs cheapest
    Official source ↗Verified 2026-10-01
  22. 22
    GPT-4.1 miniOpenAI
    VerifiedChat

    Input$0.4per 1M tokens

    Output$1.6per 1M tokens

    Cached $0.1 · per 1M tokens

    ×8.0 vs cheapest
    Official source ↗Verified 2026-08-07
  23. 23
    Gemini 3 Flash PreviewGoogle Gemini
    PreviewChat

    Input$0.5per 1M tokens

    Output$3per 1M tokens

    Cached $0.05 · per 1M tokens

    ×10.0 vs cheapest
    Official source ↗Verified 2026-08-07
  24. 24
    GLM-4.7Z.ai
    VerifiedChat

    Input$0.6per 1M tokens

    Output$2.2per 1M tokens

    Cached $0.11 · per 1M tokens

    ×12.0 vs cheapest
    Official source ↗Verified 2026-10-01
  25. 25
    Gemini 3.6 FlashGoogle Gemini
    VerifiedChat

    Input$0.75per 1M tokens

    Output$3.75per 1M tokens

    Cached $0.075 · per 1M tokens

    ×15.0 vs cheapest
    Official source ↗Verified 2026-10-11

    Introductory prices through December 31, 2026. Future rates are listed on the comparison page; estimates do not switch automatically.

  26. 26
    Gemini 3.8 FlashGoogle Gemini
    VerifiedChat

    Input$0.75per 1M tokens

    Output$3.75per 1M tokens

    Cached $0.075 · per 1M tokens

    ×15.0 vs cheapest
    Official source ↗Verified 2026-09-03
  27. 27
    GPT-5.4-miniOpenAI
    VerifiedChat

    Input$0.75per 1M tokens

    Output$4.5per 1M tokens

    Cached $0.075 · per 1M tokens

    ×15.0 vs cheapest
    Official source ↗Verified 2026-07-28
  28. 28
    Kimi K2.6Kimi
    VerifiedChat

    Input$0.95per 1M tokens

    Output$4per 1M tokens

    Cached $0.16 · per 1M tokens

    ×19.0 vs cheapest
    Official source ↗Verified 2026-09-01
  29. 29
    Kimi K2.7 CodeKimi
    VerifiedChat

    Input$0.95per 1M tokens

    Output$4per 1M tokens

    Cached $0.19 · per 1M tokens

    ×19.0 vs cheapest
    Official source ↗Verified 2026-09-01
  30. 30
    Sakana Namazu V1.0Sakana AI
    VerifiedChat

    Input$0.95per 1M tokens

    Output$4per 1M tokens

    Cached $0.15 · per 1M tokens

    ×19.0 vs cheapest
    Official source ↗Verified 2026-08-04
  31. 31
    Claude Haiku 4.5Anthropic
    VerifiedChat

    Input$1per 1M tokens

    Output$5per 1M tokens

    Cached $0.1 · per 1M tokens

    ×20.0 vs cheapest
    Official source ↗Verified 2026-07-28
  32. 32
    GLM-5Z.ai
    VerifiedChat

    Input$1per 1M tokens

    Output$3.2per 1M tokens

    Cached $0.2 · per 1M tokens

    ×20.0 vs cheapest
    Official source ↗Verified 2026-10-01
  33. 33
    GPT-6.1 TerraOpenAI
    VerifiedChat

    Input$1per 1M tokens

    Output$5per 1M tokens

    Cached $0.05 · per 1M tokens

    ×20.0 vs cheapest
    Official source ↗Verified 2026-10-28
  34. 34
    Grok Build 0.1xAI
    VerifiedChat

    Input$1per 1M tokens

    Output$2per 1M tokens

    Cached $0.2 · per 1M tokens

    ×20.0 vs cheapest
    Official source ↗Verified 2026-07-28
  35. 35
    Gemini 2.5 ProGoogle Gemini
    VerifiedChat

    Input$1.25per 1M tokens

    Output$10per 1M tokens

    Cached $0.125 · per 1M tokens

    ×25.0 vs cheapest
    Official source ↗Verified 2026-08-07
  36. 36
    GPT-5OpenAI
    VerifiedChat

    Input$1.25per 1M tokens

    Output$10per 1M tokens

    Cached $0.125 · per 1M tokens

    ×25.0 vs cheapest
    Official source ↗Verified 2026-08-07
  37. 37
    GPT-5.1OpenAI
    VerifiedChat

    Input$1.25per 1M tokens

    Output$10per 1M tokens

    Cached $0.125 · per 1M tokens

    ×25.0 vs cheapest
    Official source ↗Verified 2026-08-07
  38. 38
    Grok 4.20 (non-reasoning)xAI
    VerifiedChat

    Input$1.25per 1M tokens

    Output$2.5per 1M tokens

    Cached $0.2 · per 1M tokens

    ×25.0 vs cheapest
    Official source ↗Verified 2026-08-07
  39. 39
    Grok 4.20 (reasoning)xAI
    VerifiedChat

    Input$1.25per 1M tokens

    Output$2.5per 1M tokens

    Cached $0.2 · per 1M tokens

    ×25.0 vs cheapest
    Official source ↗Verified 2026-07-28
  40. 40
    Grok 4.20 Multi-AgentxAI
    VerifiedChat

    Input$1.25per 1M tokens

    Output$2.5per 1M tokens

    Cached $0.2 · per 1M tokens

    ×25.0 vs cheapest
    Official source ↗Verified 2026-08-07
  41. 41
    Grok 4.3xAI
    VerifiedChat

    Input$1.25per 1M tokens

    Output$2.5per 1M tokens

    Cached $0.2 · per 1M tokens

    ×25.0 vs cheapest
    Official source ↗Verified 2026-07-28
  42. 42
    DeepSeek-V4-ProDeepSeek
    VerifiedChat

    Input$1.32per 1M tokens

    Output$3.96per 1M tokens

    Cached $0.044 · per 1M tokens

    ×26.4 vs cheapest
    Official source ↗Verified 2026-09-11
  43. 43
    GLM 5.3Mistral
    VerifiedChat

    Input$1.4per 1M tokens

    Output$4.4per 1M tokens

    Cached $0.14 · per 1M tokens

    ×28.0 vs cheapest
    Official source ↗Verified 2026-10-31
  44. 44
    GLM-5.1Z.ai
    VerifiedChat

    Input$1.4per 1M tokens

    Output$4.4per 1M tokens

    Cached $0.26 · per 1M tokens

    ×28.0 vs cheapest
    Official source ↗Verified 2026-10-01
  45. 45
    GLM-5.2Z.ai
    VerifiedChat

    Input$1.4per 1M tokens

    Output$4.4per 1M tokens

    Cached $0.26 · per 1M tokens

    ×28.0 vs cheapest
    Official source ↗Verified 2026-10-01
  46. 46
    GLM-5.3Z.ai
    VerifiedChat

    Input$1.4per 1M tokens

    Output$4.4per 1M tokens

    Cached $0.26 · per 1M tokens

    ×28.0 vs cheapest
    Official source ↗Verified 2026-10-01
  47. 47
    GPT-5.2OpenAI
    VerifiedChat

    Input$1.75per 1M tokens

    Output$14per 1M tokens

    Cached $0.175 · per 1M tokens

    ×35.0 vs cheapest
    Official source ↗Verified 2026-08-07
  48. 48
    Kimi K2.7 Code HighSpeedKimi
    VerifiedChat

    Input$1.9per 1M tokens

    Output$8per 1M tokens

    Cached $0.38 · per 1M tokens

    ×38.0 vs cheapest
    Official source ↗Verified 2026-09-01
  49. 49
    Claude Sonnet 5Anthropic
    VerifiedChat

    Input$2per 1M tokens

    Output$10per 1M tokens

    Cached $0.2 · per 1M tokens

    ×40.0 vs cheapest
    Official source ↗Verified 2026-10-01
  50. 50
    Claude Sonnet 5.5Anthropic
    VerifiedChat

    Input$2per 1M tokens

    Output$10per 1M tokens

    Cached $0.2 · per 1M tokens

    ×40.0 vs cheapest
    Official source ↗Verified 2026-10-01
  51. 51
    Gemini 3.1 Pro PreviewGoogle Gemini
    PreviewChat

    Input$2per 1M tokens

    Output$12per 1M tokens

    Cached $0.2 · per 1M tokens

    ×40.0 vs cheapest
    Official source ↗Verified 2026-07-28
  52. 52
    GPT-4.1OpenAI
    VerifiedChat

    Input$2per 1M tokens

    Output$8per 1M tokens

    Cached $0.5 · per 1M tokens

    ×40.0 vs cheapest
    Official source ↗Verified 2026-07-28
  53. 53
    GPT-5.6-terraOpenAI
    VerifiedChat

    Input$2per 1M tokens

    Output$12per 1M tokens

    Cached $0.2 · per 1M tokens

    ×40.0 vs cheapest
    Official source ↗Verified 2026-08-07
  54. 54
    GPT-6 SolOpenAI
    VerifiedChat

    Input$2per 1M tokens

    Output$10per 1M tokens

    Cached $0.2 · per 1M tokens

    ×40.0 vs cheapest
    Official source ↗Verified 2026-09-24
  55. 55
    GPT-6.1 SolOpenAI
    VerifiedChat

    Input$2per 1M tokens

    Output$10per 1M tokens

    Cached $0.1 · per 1M tokens

    ×40.0 vs cheapest
    Official source ↗Verified 2026-10-01
  56. 56
    Grok 4.5xAI
    VerifiedChat

    Input$2per 1M tokens

    Output$6per 1M tokens

    Cached $0.3 · per 1M tokens

    ×40.0 vs cheapest
    Official source ↗Verified 2026-07-28
  57. 57
    Grok 4.6xAI
    VerifiedChat

    Input$2per 1M tokens

    Output$6per 1M tokens

    Cached $0.5 · per 1M tokens

    ×40.0 vs cheapest
    Official source ↗Verified 2026-08-15
  58. 58
    Grok 4.7xAI
    VerifiedChat

    Input$2per 1M tokens

    Output$6per 1M tokens

    Cached $0.5 · per 1M tokens

    ×40.0 vs cheapest
    Official source ↗Verified 2026-09-24
  59. 59
    Kimi K3.1 ProKimi
    VerifiedChat

    Input$2per 1M tokens

    Output$10per 1M tokens

    Cached $0.2 · per 1M tokens

    ×40.0 vs cheapest
    Official source ↗Verified 2026-10-28
  60. 60
    GPT-4oOpenAI
    VerifiedChat

    Input$2.5per 1M tokens

    Output$10per 1M tokens

    Cached $1.25 · per 1M tokens

    ×50.0 vs cheapest
    Official source ↗Verified 2026-08-07
  61. 61
    GPT-5.4OpenAI
    VerifiedChat

    Input$2.5per 1M tokens

    Output$15per 1M tokens

    Cached $0.25 · per 1M tokens

    ×50.0 vs cheapest
    Official source ↗Verified 2026-07-28
  62. 62
    Claude Sonnet 4.5Anthropic
    VerifiedChat

    Input$3per 1M tokens

    Output$15per 1M tokens

    Cached $0.3 · per 1M tokens

    ×60.0 vs cheapest
    Official source ↗Verified 2026-08-07
  63. 63
    Claude Sonnet 4.6Anthropic
    VerifiedChat

    Input$3per 1M tokens

    Output$15per 1M tokens

    Cached $0.3 · per 1M tokens

    ×60.0 vs cheapest
    Official source ↗Verified 2026-07-28
  64. 64
    Kimi K3Kimi
    VerifiedChat

    Input$3per 1M tokens

    Output$15per 1M tokens

    Cached $0.3 · per 1M tokens

    ×60.0 vs cheapest
    Official source ↗Verified 2026-09-01
  65. 65
    Claude Opus 5.5Anthropic
    VerifiedChat

    Input$4per 1M tokens

    Output$20per 1M tokens

    Cached $0.2 · per 1M tokens

    ×80.0 vs cheapest
    Official source ↗Verified 2026-09-24
  66. 66
    GPT-5.6-solOpenAI
    VerifiedChat

    Input$4per 1M tokens

    Output$20per 1M tokens

    Cached $0.4 · per 1M tokens

    ×80.0 vs cheapest
    Official source ↗Verified 2026-10-21

    Standard promotional prices are available at least through November 21, 2026. Estimates use the up-to-272K tier only and exclude cache writes. Long-context rates are in the price reference. Later prices are unannounced; this calculator does not revert prices automatically.

  67. 67
    Kimi K3.1 Pro HighSpeedKimi
    VerifiedChat

    Input$4per 1M tokens

    Output$20per 1M tokens

    Cached $0.2 · per 1M tokens

    ×80.0 vs cheapest
    Official source ↗Verified 2026-10-28
  68. 68
    Claude Opus 4.5Anthropic
    VerifiedChat

    Input$5per 1M tokens

    Output$25per 1M tokens

    Cached $0.5 · per 1M tokens

    ×100.0 vs cheapest
    Official source ↗Verified 2026-08-07
  69. 69
    Claude Opus 4.6Anthropic
    VerifiedChat

    Input$5per 1M tokens

    Output$25per 1M tokens

    Cached $0.5 · per 1M tokens

    ×100.0 vs cheapest
    Official source ↗Verified 2026-08-07
  70. 70
    Claude Opus 4.7Anthropic
    VerifiedChat

    Input$5per 1M tokens

    Output$25per 1M tokens

    Cached $0.5 · per 1M tokens

    ×100.0 vs cheapest
    Official source ↗Verified 2026-08-07
  71. 71
    Claude Opus 4.8Anthropic
    VerifiedChat

    Input$5per 1M tokens

    Output$25per 1M tokens

    Cached $0.5 · per 1M tokens

    ×100.0 vs cheapest
    Official source ↗Verified 2026-08-07
  72. 72
    Claude Opus 5Anthropic
    VerifiedChat

    Input$5per 1M tokens

    Output$25per 1M tokens

    Cached $0.5 · per 1M tokens

    ×100.0 vs cheapest
    Official source ↗Verified 2026-07-28
  73. 73
    Fugu Ultra V1.1Sakana AI
    VerifiedChat

    Input$5per 1M tokens

    Output$30per 1M tokens

    Cached $0.5 · per 1M tokens

    ×100.0 vs cheapest
    Official source ↗Verified 2026-08-04
  74. 74
    GPT-5.5OpenAI
    VerifiedChat

    Input$5per 1M tokens

    Output$30per 1M tokens

    Cached $0.5 · per 1M tokens

    ×100.0 vs cheapest
    Official source ↗Verified 2026-08-07
  75. 75
    Claude Fable 5Anthropic
    VerifiedChat

    Input$10per 1M tokens

    Output$50per 1M tokens

    Cached $1 · per 1M tokens

    ×200.0 vs cheapest
    Official source ↗Verified 2026-07-28
  76. 76
    Claude Fable 5.1Anthropic
    VerifiedChat

    Input$10per 1M tokens

    Output$50per 1M tokens

    Cached $0.25 · per 1M tokens

    ×200.0 vs cheapest
    Official source ↗Verified 2026-09-17
  77. 77
    Claude Mythos 5Anthropic
    VerifiedChat

    Input$10per 1M tokens

    Output$50per 1M tokens

    Cached $1 · per 1M tokens

    ×200.0 vs cheapest
    Official source ↗Verified 2026-08-07
  78. 78
    GPT-6 AstraOpenAI
    VerifiedChat

    Input$10per 1M tokens

    Output$50per 1M tokens

    Cached $1 · per 1M tokens

    ×200.0 vs cheapest
    Official source ↗Verified 2026-09-17
  79. 79
    GPT-5.4 ProOpenAI
    VerifiedChat

    Input$30per 1M tokens

    Output$180per 1M tokens

    ×600.0 vs cheapest
    Official source ↗Verified 2026-08-15
  80. 80
    PLaMo 3.0 PrimePLaMo
    VerifiedChat

    Input¥60per 1M tokens

    Output¥250per 1M tokens

    Official source ↗Verified 2026-08-04

    Official pricing is JPY only — listed for reference, not ranked.

  81. 81
    PLaMo 3.1 PrimePLaMo
    VerifiedChat

    Input¥60per 1M tokens

    Output¥250per 1M tokens

    Official source ↗Verified 2026-10-28

    Official pricing is JPY only — listed for reference, not ranked.