{
  "_meta": {
    "generatedAt": 1774268550053,
    "providers": [
      "anthropic",
      "google",
      "moonshotai",
      "openai",
      "xai",
      "zai"
    ],
    "source": "https://models.dev/api.json",
    "units": "USD per 1M tokens"
  },
  "providers": {
    "anthropic": {
      "claude-3-5-haiku-20241022": {
        "input": 0.8,
        "output": 4,
        "cache_read": 0.08,
        "cache_write": 1
      },
      "claude-3-5-haiku-latest": {
        "input": 0.8,
        "output": 4,
        "cache_read": 0.08,
        "cache_write": 1
      },
      "claude-3-5-sonnet-20240620": {
        "input": 3,
        "output": 15,
        "cache_read": 0.3,
        "cache_write": 3.75
      },
      "claude-3-5-sonnet-20241022": {
        "input": 3,
        "output": 15,
        "cache_read": 0.3,
        "cache_write": 3.75
      },
      "claude-3-7-sonnet-20250219": {
        "input": 3,
        "output": 15,
        "cache_read": 0.3,
        "cache_write": 3.75
      },
      "claude-3-7-sonnet-latest": {
        "input": 3,
        "output": 15,
        "cache_read": 0.3,
        "cache_write": 3.75
      },
      "claude-3-haiku-20240307": {
        "input": 0.25,
        "output": 1.25,
        "cache_read": 0.03,
        "cache_write": 0.3
      },
      "claude-3-opus-20240229": {
        "input": 15,
        "output": 75,
        "cache_read": 1.5,
        "cache_write": 18.75
      },
      "claude-3-sonnet-20240229": {
        "input": 3,
        "output": 15,
        "cache_read": 0.3,
        "cache_write": 0.3
      },
      "claude-haiku-4-5": {
        "input": 1,
        "output": 5,
        "cache_read": 0.1,
        "cache_write": 1.25
      },
      "claude-haiku-4-5-20251001": {
        "input": 1,
        "output": 5,
        "cache_read": 0.1,
        "cache_write": 1.25
      },
      "claude-opus-4-0": {
        "input": 15,
        "output": 75,
        "cache_read": 1.5,
        "cache_write": 18.75
      },
      "claude-opus-4-1": {
        "input": 15,
        "output": 75,
        "cache_read": 1.5,
        "cache_write": 18.75
      },
      "claude-opus-4-1-20250805": {
        "input": 15,
        "output": 75,
        "cache_read": 1.5,
        "cache_write": 18.75
      },
      "claude-opus-4-20250514": {
        "input": 15,
        "output": 75,
        "cache_read": 1.5,
        "cache_write": 18.75
      },
      "claude-opus-4-5": {
        "input": 5,
        "output": 25,
        "cache_read": 0.5,
        "cache_write": 6.25
      },
      "claude-opus-4-5-20251101": {
        "input": 5,
        "output": 25,
        "cache_read": 0.5,
        "cache_write": 6.25
      },
      "claude-opus-4-6": {
        "input": 5,
        "output": 25,
        "cache_read": 0.5,
        "cache_write": 6.25
      },
      "claude-sonnet-4-0": {
        "input": 3,
        "output": 15,
        "cache_read": 0.3,
        "cache_write": 3.75
      },
      "claude-sonnet-4-20250514": {
        "input": 3,
        "output": 15,
        "cache_read": 0.3,
        "cache_write": 3.75
      },
      "claude-sonnet-4-5": {
        "input": 3,
        "output": 15,
        "cache_read": 0.3,
        "cache_write": 3.75
      },
      "claude-sonnet-4-5-20250929": {
        "input": 3,
        "output": 15,
        "cache_read": 0.3,
        "cache_write": 3.75
      },
      "claude-sonnet-4-6": {
        "input": 3,
        "output": 15,
        "cache_read": 0.3,
        "cache_write": 3.75
      }
    },
    "google": {
      "gemini-1.5-flash": {
        "input": 0.075,
        "output": 0.3,
        "cache_read": 0.01875
      },
      "gemini-1.5-flash-8b": {
        "input": 0.0375,
        "output": 0.15,
        "cache_read": 0.01
      },
      "gemini-1.5-pro": {
        "input": 1.25,
        "output": 5,
        "cache_read": 0.3125
      },
      "gemini-2.0-flash": {
        "input": 0.1,
        "output": 0.4,
        "cache_read": 0.025
      },
      "gemini-2.0-flash-lite": {
        "input": 0.075,
        "output": 0.3
      },
      "gemini-2.5-flash": {
        "input": 0.3,
        "output": 2.5,
        "cache_read": 0.075
      },
      "gemini-2.5-flash-image": {
        "input": 0.3,
        "output": 30,
        "cache_read": 0.075
      },
      "gemini-2.5-flash-image-preview": {
        "input": 0.3,
        "output": 30,
        "cache_read": 0.075
      },
      "gemini-2.5-flash-lite": {
        "input": 0.1,
        "output": 0.4,
        "cache_read": 0.025
      },
      "gemini-2.5-flash-lite-preview-06-17": {
        "input": 0.1,
        "output": 0.4,
        "cache_read": 0.025
      },
      "gemini-2.5-flash-lite-preview-09-2025": {
        "input": 0.1,
        "output": 0.4,
        "cache_read": 0.025
      },
      "gemini-2.5-flash-preview-04-17": {
        "input": 0.15,
        "output": 0.6,
        "cache_read": 0.0375
      },
      "gemini-2.5-flash-preview-05-20": {
        "input": 0.15,
        "output": 0.6,
        "cache_read": 0.0375
      },
      "gemini-2.5-flash-preview-09-2025": {
        "input": 0.3,
        "output": 2.5,
        "cache_read": 0.075
      },
      "gemini-2.5-flash-preview-tts": {
        "input": 0.5,
        "output": 10
      },
      "gemini-2.5-pro": {
        "input": 1.25,
        "output": 10,
        "cache_read": 0.31
      },
      "gemini-2.5-pro-preview-05-06": {
        "input": 1.25,
        "output": 10,
        "cache_read": 0.31
      },
      "gemini-2.5-pro-preview-06-05": {
        "input": 1.25,
        "output": 10,
        "cache_read": 0.31
      },
      "gemini-2.5-pro-preview-tts": {
        "input": 1,
        "output": 20
      },
      "gemini-3-flash-preview": {
        "input": 0.5,
        "output": 3,
        "cache_read": 0.05
      },
      "gemini-3-pro-preview": {
        "input": 2,
        "output": 12,
        "cache_read": 0.2
      },
      "gemini-3.1-flash-image-preview": {
        "input": 0.25,
        "output": 60
      },
      "gemini-3.1-flash-lite-preview": {
        "input": 0.25,
        "output": 1.5,
        "cache_read": 0.025,
        "cache_write": 1
      },
      "gemini-3.1-pro-preview": {
        "input": 2,
        "output": 12,
        "cache_read": 0.2
      },
      "gemini-3.1-pro-preview-customtools": {
        "input": 2,
        "output": 12,
        "cache_read": 0.2
      },
      "gemini-embedding-001": {
        "input": 0.15,
        "output": 0
      },
      "gemini-flash-latest": {
        "input": 0.3,
        "output": 2.5,
        "cache_read": 0.075
      },
      "gemini-flash-lite-latest": {
        "input": 0.1,
        "output": 0.4,
        "cache_read": 0.025
      },
      "gemini-live-2.5-flash": {
        "input": 0.5,
        "output": 2
      },
      "gemini-live-2.5-flash-preview-native-audio": {
        "input": 0.5,
        "output": 2
      }
    },
    "moonshotai": {
      "kimi-k2-0711-preview": {
        "input": 0.6,
        "output": 2.5,
        "cache_read": 0.15
      },
      "kimi-k2-0905-preview": {
        "input": 0.6,
        "output": 2.5,
        "cache_read": 0.15
      },
      "kimi-k2-thinking": {
        "input": 0.6,
        "output": 2.5,
        "cache_read": 0.15
      },
      "kimi-k2-thinking-turbo": {
        "input": 1.15,
        "output": 8,
        "cache_read": 0.15
      },
      "kimi-k2-turbo-preview": {
        "input": 2.4,
        "output": 10,
        "cache_read": 0.6
      },
      "kimi-k2.5": {
        "input": 0.6,
        "output": 3,
        "cache_read": 0.1
      }
    },
    "openai": {
      "codex-mini-latest": {
        "input": 1.5,
        "output": 6,
        "cache_read": 0.375
      },
      "gpt-3.5-turbo": {
        "input": 0.5,
        "output": 1.5,
        "cache_read": 1.25
      },
      "gpt-4": {
        "input": 30,
        "output": 60
      },
      "gpt-4-turbo": {
        "input": 10,
        "output": 30
      },
      "gpt-4.1": {
        "input": 2,
        "output": 8,
        "cache_read": 0.5
      },
      "gpt-4.1-mini": {
        "input": 0.4,
        "output": 1.6,
        "cache_read": 0.1
      },
      "gpt-4.1-nano": {
        "input": 0.1,
        "output": 0.4,
        "cache_read": 0.03
      },
      "gpt-4o": {
        "input": 2.5,
        "output": 10,
        "cache_read": 1.25
      },
      "gpt-4o-2024-05-13": {
        "input": 5,
        "output": 15
      },
      "gpt-4o-2024-08-06": {
        "input": 2.5,
        "output": 10,
        "cache_read": 1.25
      },
      "gpt-4o-2024-11-20": {
        "input": 2.5,
        "output": 10,
        "cache_read": 1.25
      },
      "gpt-4o-mini": {
        "input": 0.15,
        "output": 0.6,
        "cache_read": 0.08
      },
      "gpt-5": {
        "input": 1.25,
        "output": 10,
        "cache_read": 0.125
      },
      "gpt-5-chat-latest": {
        "input": 1.25,
        "output": 10
      },
      "gpt-5-codex": {
        "input": 1.25,
        "output": 10,
        "cache_read": 0.125
      },
      "gpt-5-mini": {
        "input": 0.25,
        "output": 2,
        "cache_read": 0.025
      },
      "gpt-5-nano": {
        "input": 0.05,
        "output": 0.4,
        "cache_read": 0.005
      },
      "gpt-5-pro": {
        "input": 15,
        "output": 120
      },
      "gpt-5.1": {
        "input": 1.25,
        "output": 10,
        "cache_read": 0.13
      },
      "gpt-5.1-chat-latest": {
        "input": 1.25,
        "output": 10,
        "cache_read": 0.125
      },
      "gpt-5.1-codex": {
        "input": 1.25,
        "output": 10,
        "cache_read": 0.125
      },
      "gpt-5.1-codex-max": {
        "input": 1.25,
        "output": 10,
        "cache_read": 0.125
      },
      "gpt-5.1-codex-mini": {
        "input": 0.25,
        "output": 2,
        "cache_read": 0.025
      },
      "gpt-5.2": {
        "input": 1.75,
        "output": 14,
        "cache_read": 0.175
      },
      "gpt-5.2-chat-latest": {
        "input": 1.75,
        "output": 14,
        "cache_read": 0.175
      },
      "gpt-5.2-codex": {
        "input": 1.75,
        "output": 14,
        "cache_read": 0.175
      },
      "gpt-5.2-pro": {
        "input": 21,
        "output": 168
      },
      "gpt-5.3-codex": {
        "input": 1.75,
        "output": 14,
        "cache_read": 0.175
      },
      "gpt-5.3-codex-spark": {
        "input": 1.75,
        "output": 14,
        "cache_read": 0.175
      },
      "gpt-5.4": {
        "input": 2.5,
        "output": 15,
        "cache_read": 0.25
      },
      "gpt-5.4-mini": {
        "input": 0.75,
        "output": 4.5,
        "cache_read": 0.075
      },
      "gpt-5.4-nano": {
        "input": 0.2,
        "output": 1.25,
        "cache_read": 0.02
      },
      "gpt-5.4-pro": {
        "input": 30,
        "output": 180
      },
      "o1": {
        "input": 15,
        "output": 60,
        "cache_read": 7.5
      },
      "o1-mini": {
        "input": 1.1,
        "output": 4.4,
        "cache_read": 0.55
      },
      "o1-preview": {
        "input": 15,
        "output": 60,
        "cache_read": 7.5
      },
      "o1-pro": {
        "input": 150,
        "output": 600
      },
      "o3": {
        "input": 2,
        "output": 8,
        "cache_read": 0.5
      },
      "o3-deep-research": {
        "input": 10,
        "output": 40,
        "cache_read": 2.5
      },
      "o3-mini": {
        "input": 1.1,
        "output": 4.4,
        "cache_read": 0.55
      },
      "o3-pro": {
        "input": 20,
        "output": 80
      },
      "o4-mini": {
        "input": 1.1,
        "output": 4.4,
        "cache_read": 0.28
      },
      "o4-mini-deep-research": {
        "input": 2,
        "output": 8,
        "cache_read": 0.5
      },
      "text-embedding-3-large": {
        "input": 0.13,
        "output": 0
      },
      "text-embedding-3-small": {
        "input": 0.02,
        "output": 0
      },
      "text-embedding-ada-002": {
        "input": 0.1,
        "output": 0
      }
    },
    "xai": {
      "grok-2": {
        "input": 2,
        "output": 10,
        "cache_read": 2
      },
      "grok-2-1212": {
        "input": 2,
        "output": 10,
        "cache_read": 2
      },
      "grok-2-latest": {
        "input": 2,
        "output": 10,
        "cache_read": 2
      },
      "grok-2-vision": {
        "input": 2,
        "output": 10,
        "cache_read": 2
      },
      "grok-2-vision-1212": {
        "input": 2,
        "output": 10,
        "cache_read": 2
      },
      "grok-2-vision-latest": {
        "input": 2,
        "output": 10,
        "cache_read": 2
      },
      "grok-3": {
        "input": 3,
        "output": 15,
        "cache_read": 0.75
      },
      "grok-3-fast": {
        "input": 5,
        "output": 25,
        "cache_read": 1.25
      },
      "grok-3-fast-latest": {
        "input": 5,
        "output": 25,
        "cache_read": 1.25
      },
      "grok-3-latest": {
        "input": 3,
        "output": 15,
        "cache_read": 0.75
      },
      "grok-3-mini": {
        "input": 0.3,
        "output": 0.5,
        "cache_read": 0.075
      },
      "grok-3-mini-fast": {
        "input": 0.6,
        "output": 4,
        "cache_read": 0.15
      },
      "grok-3-mini-fast-latest": {
        "input": 0.6,
        "output": 4,
        "cache_read": 0.15
      },
      "grok-3-mini-latest": {
        "input": 0.3,
        "output": 0.5,
        "cache_read": 0.075
      },
      "grok-4": {
        "input": 3,
        "output": 15,
        "cache_read": 0.75
      },
      "grok-4-1-fast": {
        "input": 0.2,
        "output": 0.5,
        "cache_read": 0.05
      },
      "grok-4-1-fast-non-reasoning": {
        "input": 0.2,
        "output": 0.5,
        "cache_read": 0.05
      },
      "grok-4-fast": {
        "input": 0.2,
        "output": 0.5,
        "cache_read": 0.05
      },
      "grok-4-fast-non-reasoning": {
        "input": 0.2,
        "output": 0.5,
        "cache_read": 0.05
      },
      "grok-4.20-0309-non-reasoning": {
        "input": 2,
        "output": 6,
        "cache_read": 0.2
      },
      "grok-4.20-0309-reasoning": {
        "input": 2,
        "output": 6,
        "cache_read": 0.2
      },
      "grok-4.20-multi-agent-0309": {
        "input": 2,
        "output": 6,
        "cache_read": 0.2
      },
      "grok-beta": {
        "input": 5,
        "output": 15,
        "cache_read": 5
      },
      "grok-code-fast-1": {
        "input": 0.2,
        "output": 1.5,
        "cache_read": 0.02
      },
      "grok-vision-beta": {
        "input": 5,
        "output": 15,
        "cache_read": 5
      }
    },
    "zai": {
      "glm-4.5": {
        "input": 0.6,
        "output": 2.2,
        "cache_read": 0.11,
        "cache_write": 0
      },
      "glm-4.5-air": {
        "input": 0.2,
        "output": 1.1,
        "cache_read": 0.03,
        "cache_write": 0
      },
      "glm-4.5-flash": {
        "input": 0,
        "output": 0,
        "cache_read": 0,
        "cache_write": 0
      },
      "glm-4.5v": {
        "input": 0.6,
        "output": 1.8
      },
      "glm-4.6": {
        "input": 0.6,
        "output": 2.2,
        "cache_read": 0.11,
        "cache_write": 0
      },
      "glm-4.6v": {
        "input": 0.3,
        "output": 0.9
      },
      "glm-4.7": {
        "input": 0.6,
        "output": 2.2,
        "cache_read": 0.11,
        "cache_write": 0
      },
      "glm-4.7-flash": {
        "input": 0,
        "output": 0,
        "cache_read": 0,
        "cache_write": 0
      },
      "glm-5": {
        "input": 1,
        "output": 3.2,
        "cache_read": 0.2,
        "cache_write": 0
      },
      "glm-5-turbo": {
        "input": 1.2,
        "output": 4,
        "cache_read": 0.24,
        "cache_write": 0
      }
    }
  }
}
