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
    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
  4. 4
    GPT-4.1 nanoOpenAI
    VerifiedChat

    Input$0.1per 1M tokens

    Output$0.4per 1M tokens

    Cached $0.025 · 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-08-04
  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-08-04
  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-08-04
  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-08-04
  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
    Mistral Large 3Mistral
    VerifiedChat

    Input$0.5per 1M tokens

    Output$1.5per 1M tokens

    Cached $0.05 · per 1M tokens

    ×10.0 vs cheapest
    Official source ↗Verified 2026-08-04
  25. 25
    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
  26. 26
    Gemini 3.7 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-08-19
  27. 27
    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
  28. 28
    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
  29. 29
    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
  30. 30
    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
  31. 31
    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
  32. 32
    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
  33. 33
    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
  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-01
  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
    Gemini 3.5 FlashGoogle Gemini
    VerifiedChat

    Input$1.5per 1M tokens

    Output$9per 1M tokens

    Cached $0.15 · per 1M tokens

    ×30.0 vs cheapest
    Official source ↗Verified 2026-07-28
  48. 48
    Gemini 3.6 FlashGoogle Gemini
    VerifiedChat

    Input$1.5per 1M tokens

    Output$7.5per 1M tokens

    Cached $0.15 · per 1M tokens

    ×30.0 vs cheapest
    Official source ↗Verified 2026-07-28
  49. 49
    Mistral Medium 3.5Mistral
    VerifiedChat

    Input$1.5per 1M tokens

    Output$7.5per 1M tokens

    Cached $0.15 · per 1M tokens

    ×30.0 vs cheapest
    Official source ↗Verified 2026-08-04
  50. 50
    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
  51. 51
    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
  52. 52
    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
  53. 53
    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
  54. 54
    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
  55. 55
    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
  56. 56
    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
  57. 57
    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
  58. 58
    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
  59. 59
    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
  60. 60
    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
  61. 61
    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
  62. 62
    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
  63. 63
    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
  64. 64
    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
  65. 65
    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
  66. 66
    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
  67. 67
    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
  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
    GPT-5.6-solOpenAI
    VerifiedChat

    Input$5per 1M tokens

    Output$30per 1M tokens

    Cached $0.5 · per 1M tokens

    ×100.0 vs cheapest
    Official source ↗Verified 2026-07-28
  76. 76
    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
  77. 77
    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
  78. 78
    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
  79. 79
    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
  80. 80
    GPT-5.4 ProOpenAI
    VerifiedChat

    Input$30per 1M tokens

    Output$180per 1M tokens

    ×600.0 vs cheapest
    Official source ↗Verified 2026-08-15
  81. 81
    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.